CVE Vulnerabilities

CVE-2011-1072

Improper Link Resolution Before File Access ('Link Following')

Published: Mar 03, 2011 | Modified: Apr 11, 2025
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
3.3 LOW
AV:L/AC:M/Au:N/C:N/I:P/A:P
RedHat/V2
2.1 LOW
AV:L/AC:L/Au:N/C:N/I:P/A:N
RedHat/V3
Ubuntu
LOW
root.io logo minimus.io logo echo.ai logo

The installer in PEAR before 1.9.2 allows local users to overwrite arbitrary files via a symlink attack on the package.xml file, related to the (1) download_dir, (2) cache_dir, (3) tmp_dir, and (4) pear-build-download directories, a different vulnerability than CVE-2007-2519.

Weakness

The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.

Affected Software

NameVendorStart VersionEnd Version
PearPhp*1.9.1 (including)
PearPhp0.2.2 (including)0.2.2 (including)
PearPhp0.9 (including)0.9 (including)
PearPhp0.10 (including)0.10 (including)
PearPhp0.11 (including)0.11 (including)
PearPhp0.90 (including)0.90 (including)
PearPhp1.0 (including)1.0 (including)
PearPhp1.0.1 (including)1.0.1 (including)
PearPhp1.1 (including)1.1 (including)
PearPhp1.2 (including)1.2 (including)
PearPhp1.2.1 (including)1.2.1 (including)
PearPhp1.3 (including)1.3 (including)
PearPhp1.3.1 (including)1.3.1 (including)
PearPhp1.3.3 (including)1.3.3 (including)
PearPhp1.3.3.1 (including)1.3.3.1 (including)
PearPhp1.3.4 (including)1.3.4 (including)
PearPhp1.3.5 (including)1.3.5 (including)
PearPhp1.3.6 (including)1.3.6 (including)
PearPhp1.4.0 (including)1.4.0 (including)
PearPhp1.4.0-rc1 (including)1.4.0-rc1 (including)
PearPhp1.4.0-rc2 (including)1.4.0-rc2 (including)
PearPhp1.4.1 (including)1.4.1 (including)
PearPhp1.4.2 (including)1.4.2 (including)
PearPhp1.5.0 (including)1.5.0 (including)
PearPhp1.5.1 (including)1.5.1 (including)
PearPhp1.6.1 (including)1.6.1 (including)
Red Hat Enterprise Linux 6RedHatphp-pear-1:1.9.4-4.el6*
Php5Ubuntudapper*
Php5Ubuntuhardy*
Php5Ubuntukarmic*
Php5Ubuntulucid*
Php5Ubuntumaverick*
Php5Ubuntuupstream*

Potential Mitigations

  • Follow the principle of least privilege when assigning access rights to entities in a software system.
  • Denying access to a file can prevent an attacker from replacing that file with a link to a sensitive file. Ensure good compartmentalization in the system to provide protected areas that can be trusted.

References