Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 681982 - (CVE-2011-1072, CVE-2011-1144) CVE-2011-1072 php-pear: symlink vulnerability in PEAR installer
CVE-2011-1072 php-pear: symlink vulnerability in PEAR installer
Status: CLOSED NOTABUG
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
low Severity low
: ---
: ---
Assigned To: Red Hat Product Security
public=20101114,reported=20110228,sou...
: Security
Depends On: 681983 750438
Blocks: 734217
  Show dependency treegraph
 
Reported: 2011-03-03 14:05 EST by Vincent Danen
Modified: 2012-10-04 11:14 EDT (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2011-12-07 04:04:11 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2011:1741 normal SHIPPED_LIVE Low: php-pear security and bug fix update 2011-12-05 20:01:50 EST

  None (edit)
Description Vincent Danen 2011-03-03 14:05:25 EST
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) download_dir, (2) cache_dir, (3) tmp_dir, 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) download_dir, (2) cache_dir, (3) tmp_dir, 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 (download_dir, temp_dir), and the default cache directory is /var/cache/php-pear which is owned root:root and mode 0755 (not a world-writable /tmp).
Comment 1 Vincent Danen 2011-03-03 14:09:31 EST
Created php-pear tracking bugs for this issue

Affects: fedora-all [bug 681983]
Comment 2 Vincent Danen 2011-03-11 19:11:22 EST
This has been further fixed upstream (so this would be the fix for CVE-2011-1144):

http://svn.php.net/viewvc?view=revision&revision=309042

This, in addition to the previous changes, would be required to fully fix CVE-2011-1072.
Comment 8 errata-xmlrpc 2011-12-06 13:43:54 EST
This issue has been addressed in following products:

  Red Hat Enterprise Linux 6

Via RHSA-2011:1741 https://rhn.redhat.com/errata/RHSA-2011-1741.html

Note You need to log in before you can comment on or make changes to this bug.