Common Vulnerabilities and Exposures assigned an identifier CVE-2011-1072 to the following vulnerability:
Name: CVE-2011-1072 URL: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-1072 Assigned: 20110224 Reference: http://openwall.com/lists/oss-security/2011/02/28/3 Reference: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=546164 Reference: http://news.php.net/php.pear.cvs/61264 Reference: http://pear.php.net/advisory-20110228.txt Reference: http://pear.php.net/bugs/bug.php?id=18056 Reference: http://security-tracker.debian.org/tracker/CVE-2011-1072 Reference: http://svn.php.net/viewvc?view=revision&revision=308687 Reference: http://www.securityfocus.com/bid/46605 Reference: http://secunia.com/advisories/43533 Reference: http://xforce.iss.net/xforce/xfdb/65721
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) downloaddir, (2) cachedir, (3) tmpdir, and (4) pear-build-download directories, a different vulnerability than CVE-2007-2519.
Note that PEAR 1.9.2 did not fully correct the issue, and MITRE assigned CVE-2011-1144 to that:
The installer in PEAR 1.9.2 and earlier allows local users to overwrite arbitrary files via a symlink attack on the package.xml file, related to the (1) downloaddir, (2) cachedir, (3) tmpdir, and (4) pear-build-download directories. NOTE: this vulnerability exists because of an incomplete fix for CVE-2011-1072.
References to the incomplete fix:
http://openwall.com/lists/oss-security/2011/03/01/9
So if we do update to 1.9.2 without the full fix, then CVE-2011-1144 applies as 1.9.2 contains an incomplete fix.
It also does not look like older versions of PEAR (e.g. 1.4.9 as found in Red Hat Enterprise Linux 5) are vulnerable as there is no specific download directory or temporary directory specifications used (downloaddir, tempdir), and the default cache directory is /var/cache/php-pear which is owned root:root and mode 0755 (not a world-writable /tmp).
Unspecified vulnerability in PEAR installer 1.4.2 and earlier allows user-assisted attackers to execute arbitrary code via a crafted package that can execute code when the pear command is executed or when the Web/Gtk frontend is loaded.
The installer in PEAR 1.9.2 and earlier allows local users to overwrite arbitrary files via a symlink attack on the package.xml file, related to the (1) downloaddir, (2) cachedir, (3) tmpdir, and (4) pear-build-download directories. NOTE: this vulnerability exists because of an incomplete fix for CVE-2011-1072.