====================================================================                   Red Hat Security Advisory

Synopsis:          Moderate: php security update
Advisory ID:       RHSA-2012:1046-01
Product:           Red Hat Enterprise Linux
Advisory URL:      https://access.redhat.com/errata/RHSA-2012:1046.html
Issue date:        2012-06-27
CVE Names:         CVE-2010-2950 CVE-2011-4153 CVE-2012-0057 
                   CVE-2012-0781 CVE-2012-0789 CVE-2012-1172 
                   CVE-2012-2143 CVE-2012-2336 CVE-2012-2386 
====================================================================
1. Summary:

Updated php packages that fix multiple security issues are now available
for Red Hat Enterprise Linux 6.

The Red Hat Security Response Team has rated this update as having moderate
security impact. Common Vulnerability Scoring System (CVSS) base scores,
which give detailed severity ratings, are available for each vulnerability
from the CVE links in the References section.

2. Relevant releases/architectures:

Red Hat Enterprise Linux Desktop Optional (v. 6) - i386, x86_64
Red Hat Enterprise Linux HPC Node (v. 6) - x86_64
Red Hat Enterprise Linux HPC Node Optional (v. 6) - x86_64
Red Hat Enterprise Linux Server (v. 6) - i386, ppc64, s390x, x86_64
Red Hat Enterprise Linux Server Optional (v. 6) - i386, ppc64, s390x, x86_64
Red Hat Enterprise Linux Workstation (v. 6) - i386, x86_64
Red Hat Enterprise Linux Workstation Optional (v. 6) - i386, x86_64

3. Description:

PHP is an HTML-embedded scripting language commonly used with the Apache
HTTP Server.

It was discovered that the PHP XSL extension did not restrict the file
writing capability of libxslt. A remote attacker could use this flaw to
create or overwrite an arbitrary file that is writable by the user running
PHP, if a PHP script processed untrusted eXtensible Style Sheet Language
Transformations (XSLT) content. (CVE-2012-0057)

Note: This update disables file writing by default. A new PHP configuration
directive, "xsl.security_prefs", can be used to enable file writing in
XSLT.

A flaw was found in the way PHP validated file names in file upload
requests. A remote attacker could possibly use this flaw to bypass the
sanitization of the uploaded file names, and cause a PHP script to store
the uploaded file in an unexpected directory, by using a directory
traversal attack. (CVE-2012-1172)

Multiple integer overflow flaws, leading to heap-based buffer overflows,
were found in the way the PHP phar extension processed certain fields of
tar archive files. A remote attacker could provide a specially-crafted tar
archive file that, when processed by a PHP application using the phar
extension, could cause the application to crash or, potentially, execute
arbitrary code with the privileges of the user running PHP. (CVE-2012-2386)

A format string flaw was found in the way the PHP phar extension processed
certain PHAR files. A remote attacker could provide a specially-crafted
PHAR file, which once processed in a PHP application using the phar
extension, could lead to information disclosure and possibly arbitrary code
execution via a crafted phar:// URI. (CVE-2010-2950)

A flaw was found in the DES algorithm implementation in the crypt()
password hashing function in PHP. If the password string to be hashed
contained certain characters, the remainder of the string was ignored when
calculating the hash, significantly reducing the password strength.
(CVE-2012-2143)

Note: With this update, passwords are no longer truncated when performing
DES hashing. Therefore, new hashes of the affected passwords will not match
stored hashes generated using vulnerable PHP versions, and will need to be
updated.

It was discovered that the fix for CVE-2012-1823, released via
RHSA-2012:0546, did not properly filter all php-cgi command line arguments.
A specially-crafted request to a PHP script could cause the PHP interpreter
to execute the script in a loop, or output usage information that triggersan Internal Server Error. (CVE-2012-2336)

A memory leak flaw was found in the PHP strtotime() function call. A remote
attacker could possibly use this flaw to cause excessive memory consumption
by triggering many strtotime() function calls. (CVE-2012-0789)

A NULL pointer dereference flaw was found in the PHP tidy_diagnose()
function. A remote attacker could use specially-crafted input to crash an
application that uses tidy::diagnose. (CVE-2012-0781)

It was found that PHP did not check the zend_strndup() function's return
value in certain cases. A remote attacker could possibly use this flaw to
crash a PHP application. (CVE-2011-4153)

Upstream acknowledges Rubin Xu and Joseph Bonneau as the original reportersof CVE-2012-2143.

All php users should upgrade to these updated packages, which contain
backported patches to resolve these issues. After installing the updated
packages, the httpd daemon must be restarted for the update to take effect.

4. Solution:

Before applying this update, make sure all previously-released errata
relevant to your system have been applied.

This update is available via the Red Hat Network. Details on how to
use the Red Hat Network to apply this update are available at
https://access.redhat.com/knowledge/articles/11258

5. Bugs fixed (http://bugzilla.redhat.com/):

782657 - CVE-2012-0057 php: XSLT file writing vulnerability
782943 - CVE-2011-4153 php: zend_strndup() NULL pointer dereference may cause DoS
782951 - CVE-2012-0781 php: tidy_diagnose() NULL pointer dereference may cause DoS
783609 - CVE-2012-0789 php: strtotime timezone memory leak
799187 - CVE-2012-1172 php: $_FILES array indexes corruption
816956 - CVE-2012-2143 BSD crypt(): DES encrypted password weakness
820708 - CVE-2012-2336 php: incomplete CVE-2012-1823 fix - missing filtering of -T and -h
823594 - CVE-2012-2386 php: Integer overflow leading to heap-buffer overflow in the Phar extension
835024 - CVE-2010-2950 php: Format string flaw in phar extension via phar_stream_flush() (MOPS-2010-024)

6. Package List:

Red Hat Enterprise Linux Desktop Optional (v. 6):

Source:

i386:
php-5.3.3-14.el6_3.i686.rpm
php-bcmath-5.3.3-14.el6_3.i686.rpm
php-cli-5.3.3-14.el6_3.i686.rpm
php-common-5.3.3-14.el6_3.i686.rpm
php-dba-5.3.3-14.el6_3.i686.rpm
php-debuginfo-5.3.3-14.el6_3.i686.rpm
php-devel-5.3.3-14.el6_3.i686.rpm
php-embedded-5.3.3-14.el6_3.i686.rpm
php-enchant-5.3.3-14.el6_3.i686.rpm
php-gd-5.3.3-14.el6_3.i686.rpm
php-imap-5.3.3-14.el6_3.i686.rpm
php-intl-5.3.3-14.el6_3.i686.rpm
php-ldap-5.3.3-14.el6_3.i686.rpm
php-mbstring-5.3.3-14.el6_3.i686.rpm
php-mysql-5.3.3-14.el6_3.i686.rpm
php-odbc-5.3.3-14.el6_3.i686.rpm
php-pdo-5.3.3-14.el6_3.i686.rpm
php-pgsql-5.3.3-14.el6_3.i686.rpm
php-process-5.3.3-14.el6_3.i686.rpm
php-pspell-5.3.3-14.el6_3.i686.rpm
php-recode-5.3.3-14.el6_3.i686.rpm
php-snmp-5.3.3-14.el6_3.i686.rpm
php-soap-5.3.3-14.el6_3.i686.rpm
php-tidy-5.3.3-14.el6_3.i686.rpm
php-xml-5.3.3-14.el6_3.i686.rpm
php-xmlrpc-5.3.3-14.el6_3.i686.rpm
php-zts-5.3.3-14.el6_3.i686.rpm

x86_64:
php-5.3.3-14.el6_3.x86_64.rpm
php-bcmath-5.3.3-14.el6_3.x86_64.rpm
php-cli-5.3.3-14.el6_3.x86_64.rpm
php-common-5.3.3-14.el6_3.x86_64.rpm
php-dba-5.3.3-14.el6_3.x86_64.rpm
php-debuginfo-5.3.3-14.el6_3.x86_64.rpm
php-devel-5.3.3-14.el6_3.x86_64.rpm
php-embedded-5.3.3-14.el6_3.x86_64.rpm
php-enchant-5.3.3-14.el6_3.x86_64.rpm
php-gd-5.3.3-14.el6_3.x86_64.rpm
php-imap-5.3.3-14.el6_3.x86_64.rpm
php-intl-5.3.3-14.el6_3.x86_64.rpm
php-ldap-5.3.3-14.el6_3.x86_64.rpm
php-mbstring-5.3.3-14.el6_3.x86_64.rpm
php-mysql-5.3.3-14.el6_3.x86_64.rpm
php-odbc-5.3.3-14.el6_3.x86_64.rpm
php-pdo-5.3.3-14.el6_3.x86_64.rpm
php-pgsql-5.3.3-14.el6_3.x86_64.rpm
php-process-5.3.3-14.el6_3.x86_64.rpm
php-pspell-5.3.3-14.el6_3.x86_64.rpm
php-recode-5.3.3-14.el6_3.x86_64.rpm
php-snmp-5.3.3-14.el6_3.x86_64.rpm
php-soap-5.3.3-14.el6_3.x86_64.rpm
php-tidy-5.3.3-14.el6_3.x86_64.rpm
php-xml-5.3.3-14.el6_3.x86_64.rpm
php-xmlrpc-5.3.3-14.el6_3.x86_64.rpm
php-zts-5.3.3-14.el6_3.x86_64.rpm

Red Hat Enterprise Linux HPC Node (v. 6):

Source:

x86_64:
php-cli-5.3.3-14.el6_3.x86_64.rpm
php-common-5.3.3-14.el6_3.x86_64.rpm
php-debuginfo-5.3.3-14.el6_3.x86_64.rpm

Red Hat Enterprise Linux HPC Node Optional (v. 6):

Source:

x86_64:
php-5.3.3-14.el6_3.x86_64.rpm
php-bcmath-5.3.3-14.el6_3.x86_64.rpm
php-dba-5.3.3-14.el6_3.x86_64.rpm
php-debuginfo-5.3.3-14.el6_3.x86_64.rpm
php-devel-5.3.3-14.el6_3.x86_64.rpm
php-embedded-5.3.3-14.el6_3.x86_64.rpm
php-enchant-5.3.3-14.el6_3.x86_64.rpm
php-gd-5.3.3-14.el6_3.x86_64.rpm
php-imap-5.3.3-14.el6_3.x86_64.rpm
php-intl-5.3.3-14.el6_3.x86_64.rpm
php-ldap-5.3.3-14.el6_3.x86_64.rpm
php-mbstring-5.3.3-14.el6_3.x86_64.rpm
php-mysql-5.3.3-14.el6_3.x86_64.rpm
php-odbc-5.3.3-14.el6_3.x86_64.rpm
php-pdo-5.3.3-14.el6_3.x86_64.rpm
php-pgsql-5.3.3-14.el6_3.x86_64.rpm
php-process-5.3.3-14.el6_3.x86_64.rpm
php-pspell-5.3.3-14.el6_3.x86_64.rpm
php-recode-5.3.3-14.el6_3.x86_64.rpm
php-snmp-5.3.3-14.el6_3.x86_64.rpm
php-soap-5.3.3-14.el6_3.x86_64.rpm
php-tidy-5.3.3-14.el6_3.x86_64.rpm
php-xml-5.3.3-14.el6_3.x86_64.rpm
php-xmlrpc-5.3.3-14.el6_3.x86_64.rpm
php-zts-5.3.3-14.el6_3.x86_64.rpm

Red Hat Enterprise Linux Server (v. 6):

Source:

i386:
php-5.3.3-14.el6_3.i686.rpm
php-cli-5.3.3-14.el6_3.i686.rpm
php-common-5.3.3-14.el6_3.i686.rpm
php-debuginfo-5.3.3-14.el6_3.i686.rpm
php-gd-5.3.3-14.el6_3.i686.rpm
php-ldap-5.3.3-14.el6_3.i686.rpm
php-mysql-5.3.3-14.el6_3.i686.rpm
php-odbc-5.3.3-14.el6_3.i686.rpm
php-pdo-5.3.3-14.el6_3.i686.rpm
php-pgsql-5.3.3-14.el6_3.i686.rpm
php-soap-5.3.3-14.el6_3.i686.rpm
php-xml-5.3.3-14.el6_3.i686.rpm
php-xmlrpc-5.3.3-14.el6_3.i686.rpm

ppc64:
php-5.3.3-14.el6_3.ppc64.rpm
php-cli-5.3.3-14.el6_3.ppc64.rpm
php-common-5.3.3-14.el6_3.ppc64.rpm
php-debuginfo-5.3.3-14.el6_3.ppc64.rpm
php-gd-5.3.3-14.el6_3.ppc64.rpm
php-ldap-5.3.3-14.el6_3.ppc64.rpm
php-mysql-5.3.3-14.el6_3.ppc64.rpm
php-odbc-5.3.3-14.el6_3.ppc64.rpm
php-pdo-5.3.3-14.el6_3.ppc64.rpm
php-pgsql-5.3.3-14.el6_3.ppc64.rpm
php-soap-5.3.3-14.el6_3.ppc64.rpm
php-xml-5.3.3-14.el6_3.ppc64.rpm
php-xmlrpc-5.3.3-14.el6_3.ppc64.rpm

s390x:
php-5.3.3-14.el6_3.s390x.rpm
php-cli-5.3.3-14.el6_3.s390x.rpm
php-common-5.3.3-14.el6_3.s390x.rpm
php-debuginfo-5.3.3-14.el6_3.s390x.rpm
php-gd-5.3.3-14.el6_3.s390x.rpm
php-ldap-5.3.3-14.el6_3.s390x.rpm
php-mysql-5.3.3-14.el6_3.s390x.rpm
php-odbc-5.3.3-14.el6_3.s390x.rpm
php-pdo-5.3.3-14.el6_3.s390x.rpm
php-pgsql-5.3.3-14.el6_3.s390x.rpm
php-soap-5.3.3-14.el6_3.s390x.rpm
php-xml-5.3.3-14.el6_3.s390x.rpm
php-xmlrpc-5.3.3-14.el6_3.s390x.rpm

x86_64:
php-5.3.3-14.el6_3.x86_64.rpm
php-cli-5.3.3-14.el6_3.x86_64.rpm
php-common-5.3.3-14.el6_3.x86_64.rpm
php-debuginfo-5.3.3-14.el6_3.x86_64.rpm
php-gd-5.3.3-14.el6_3.x86_64.rpm
php-ldap-5.3.3-14.el6_3.x86_64.rpm
php-mysql-5.3.3-14.el6_3.x86_64.rpm
php-odbc-5.3.3-14.el6_3.x86_64.rpm
php-pdo-5.3.3-14.el6_3.x86_64.rpm
php-pgsql-5.3.3-14.el6_3.x86_64.rpm
php-soap-5.3.3-14.el6_3.x86_64.rpm
php-xml-5.3.3-14.el6_3.x86_64.rpm
php-xmlrpc-5.3.3-14.el6_3.x86_64.rpm

Red Hat Enterprise Linux Server Optional (v. 6):

Source:

i386:
php-bcmath-5.3.3-14.el6_3.i686.rpm
php-dba-5.3.3-14.el6_3.i686.rpm
php-debuginfo-5.3.3-14.el6_3.i686.rpm
php-devel-5.3.3-14.el6_3.i686.rpm
php-embedded-5.3.3-14.el6_3.i686.rpm
php-enchant-5.3.3-14.el6_3.i686.rpm
php-imap-5.3.3-14.el6_3.i686.rpm
php-intl-5.3.3-14.el6_3.i686.rpm
php-mbstring-5.3.3-14.el6_3.i686.rpm
php-process-5.3.3-14.el6_3.i686.rpm
php-pspell-5.3.3-14.el6_3.i686.rpm
php-recode-5.3.3-14.el6_3.i686.rpm
php-snmp-5.3.3-14.el6_3.i686.rpm
php-tidy-5.3.3-14.el6_3.i686.rpm
php-zts-5.3.3-14.el6_3.i686.rpm

ppc64:
php-bcmath-5.3.3-14.el6_3.ppc64.rpm
php-dba-5.3.3-14.el6_3.ppc64.rpm
php-debuginfo-5.3.3-14.el6_3.ppc64.rpm
php-devel-5.3.3-14.el6_3.ppc64.rpm
php-embedded-5.3.3-14.el6_3.ppc64.rpm
php-enchant-5.3.3-14.el6_3.ppc64.rpm
php-imap-5.3.3-14.el6_3.ppc64.rpm
php-intl-5.3.3-14.el6_3.ppc64.rpm
php-mbstring-5.3.3-14.el6_3.ppc64.rpm
php-process-5.3.3-14.el6_3.ppc64.rpm
php-pspell-5.3.3-14.el6_3.ppc64.rpm
php-recode-5.3.3-14.el6_3.ppc64.rpm
php-snmp-5.3.3-14.el6_3.ppc64.rpm
php-tidy-5.3.3-14.el6_3.ppc64.rpm
php-zts-5.3.3-14.el6_3.ppc64.rpm

s390x:
php-bcmath-5.3.3-14.el6_3.s390x.rpm
php-dba-5.3.3-14.el6_3.s390x.rpm
php-debuginfo-5.3.3-14.el6_3.s390x.rpm
php-devel-5.3.3-14.el6_3.s390x.rpm
php-embedded-5.3.3-14.el6_3.s390x.rpm
php-enchant-5.3.3-14.el6_3.s390x.rpm
php-imap-5.3.3-14.el6_3.s390x.rpm
php-intl-5.3.3-14.el6_3.s390x.rpm
php-mbstring-5.3.3-14.el6_3.s390x.rpm
php-process-5.3.3-14.el6_3.s390x.rpm
php-pspell-5.3.3-14.el6_3.s390x.rpm
php-recode-5.3.3-14.el6_3.s390x.rpm
php-snmp-5.3.3-14.el6_3.s390x.rpm
php-tidy-5.3.3-14.el6_3.s390x.rpm
php-zts-5.3.3-14.el6_3.s390x.rpm

x86_64:
php-bcmath-5.3.3-14.el6_3.x86_64.rpm
php-dba-5.3.3-14.el6_3.x86_64.rpm
php-debuginfo-5.3.3-14.el6_3.x86_64.rpm
php-devel-5.3.3-14.el6_3.x86_64.rpm
php-embedded-5.3.3-14.el6_3.x86_64.rpm
php-enchant-5.3.3-14.el6_3.x86_64.rpm
php-imap-5.3.3-14.el6_3.x86_64.rpm
php-intl-5.3.3-14.el6_3.x86_64.rpm
php-mbstring-5.3.3-14.el6_3.x86_64.rpm
php-process-5.3.3-14.el6_3.x86_64.rpm
php-pspell-5.3.3-14.el6_3.x86_64.rpm
php-recode-5.3.3-14.el6_3.x86_64.rpm
php-snmp-5.3.3-14.el6_3.x86_64.rpm
php-tidy-5.3.3-14.el6_3.x86_64.rpm
php-zts-5.3.3-14.el6_3.x86_64.rpm

Red Hat Enterprise Linux Workstation (v. 6):

Source:

i386:
php-5.3.3-14.el6_3.i686.rpm
php-cli-5.3.3-14.el6_3.i686.rpm
php-common-5.3.3-14.el6_3.i686.rpm
php-debuginfo-5.3.3-14.el6_3.i686.rpm
php-gd-5.3.3-14.el6_3.i686.rpm
php-ldap-5.3.3-14.el6_3.i686.rpm
php-mysql-5.3.3-14.el6_3.i686.rpm
php-odbc-5.3.3-14.el6_3.i686.rpm
php-pdo-5.3.3-14.el6_3.i686.rpm
php-pgsql-5.3.3-14.el6_3.i686.rpm
php-soap-5.3.3-14.el6_3.i686.rpm
php-xml-5.3.3-14.el6_3.i686.rpm
php-xmlrpc-5.3.3-14.el6_3.i686.rpm

x86_64:
php-5.3.3-14.el6_3.x86_64.rpm
php-cli-5.3.3-14.el6_3.x86_64.rpm
php-common-5.3.3-14.el6_3.x86_64.rpm
php-debuginfo-5.3.3-14.el6_3.x86_64.rpm
php-gd-5.3.3-14.el6_3.x86_64.rpm
php-ldap-5.3.3-14.el6_3.x86_64.rpm
php-mysql-5.3.3-14.el6_3.x86_64.rpm
php-odbc-5.3.3-14.el6_3.x86_64.rpm
php-pdo-5.3.3-14.el6_3.x86_64.rpm
php-pgsql-5.3.3-14.el6_3.x86_64.rpm
php-soap-5.3.3-14.el6_3.x86_64.rpm
php-xml-5.3.3-14.el6_3.x86_64.rpm
php-xmlrpc-5.3.3-14.el6_3.x86_64.rpm

Red Hat Enterprise Linux Workstation Optional (v. 6):

Source:

i386:
php-bcmath-5.3.3-14.el6_3.i686.rpm
php-dba-5.3.3-14.el6_3.i686.rpm
php-debuginfo-5.3.3-14.el6_3.i686.rpm
php-devel-5.3.3-14.el6_3.i686.rpm
php-embedded-5.3.3-14.el6_3.i686.rpm
php-enchant-5.3.3-14.el6_3.i686.rpm
php-imap-5.3.3-14.el6_3.i686.rpm
php-intl-5.3.3-14.el6_3.i686.rpm
php-mbstring-5.3.3-14.el6_3.i686.rpm
php-process-5.3.3-14.el6_3.i686.rpm
php-pspell-5.3.3-14.el6_3.i686.rpm
php-recode-5.3.3-14.el6_3.i686.rpm
php-snmp-5.3.3-14.el6_3.i686.rpm
php-tidy-5.3.3-14.el6_3.i686.rpm
php-zts-5.3.3-14.el6_3.i686.rpm

x86_64:
php-bcmath-5.3.3-14.el6_3.x86_64.rpm
php-dba-5.3.3-14.el6_3.x86_64.rpm
php-debuginfo-5.3.3-14.el6_3.x86_64.rpm
php-devel-5.3.3-14.el6_3.x86_64.rpm
php-embedded-5.3.3-14.el6_3.x86_64.rpm
php-enchant-5.3.3-14.el6_3.x86_64.rpm
php-imap-5.3.3-14.el6_3.x86_64.rpm
php-intl-5.3.3-14.el6_3.x86_64.rpm
php-mbstring-5.3.3-14.el6_3.x86_64.rpm
php-process-5.3.3-14.el6_3.x86_64.rpm
php-pspell-5.3.3-14.el6_3.x86_64.rpm
php-recode-5.3.3-14.el6_3.x86_64.rpm
php-snmp-5.3.3-14.el6_3.x86_64.rpm
php-tidy-5.3.3-14.el6_3.x86_64.rpm
php-zts-5.3.3-14.el6_3.x86_64.rpm

These packages are GPG signed by Red Hat for security.  Our key and
details on how to verify the signature are available from
https://access.redhat.com/security/team/key/#package

7. References:

https://www.redhat.com/security/data/cve/CVE-2010-2950.html
https://www.redhat.com/security/data/cve/CVE-2011-4153.html
https://www.redhat.com/security/data/cve/CVE-2012-0057.html
https://www.redhat.com/security/data/cve/CVE-2012-0781.html
https://www.redhat.com/security/data/cve/CVE-2012-0789.html
https://www.redhat.com/security/data/cve/CVE-2012-1172.html
https://www.redhat.com/security/data/cve/CVE-2012-2143.html
https://www.redhat.com/security/data/cve/CVE-2012-2336.html
https://www.redhat.com/security/data/cve/CVE-2012-2386.html
https://access.redhat.com/security/updates/classification/#moderate
https://access.redhat.com/errata/RHSA-2012:0546.html

8. Contact:

The Red Hat security contact is .  More contact
details at https://access.redhat.com/security/team/contact/

Copyright 2012 Red Hat, Inc.

Red Hat: 2012:1046-01: php: Moderate Advisory

Updated php packages that fix multiple security issues are now available for Red Hat Enterprise Linux 6

Summary

PHP is an HTML-embedded scripting language commonly used with the Apache HTTP Server.
It was discovered that the PHP XSL extension did not restrict the file writing capability of libxslt. A remote attacker could use this flaw to create or overwrite an arbitrary file that is writable by the user running PHP, if a PHP script processed untrusted eXtensible Style Sheet Language Transformations (XSLT) content. (CVE-2012-0057)
Note: This update disables file writing by default. A new PHP configuration directive, "xsl.security_prefs", can be used to enable file writing in XSLT.
A flaw was found in the way PHP validated file names in file upload requests. A remote attacker could possibly use this flaw to bypass the sanitization of the uploaded file names, and cause a PHP script to store the uploaded file in an unexpected directory, by using a directory traversal attack. (CVE-2012-1172)
Multiple integer overflow flaws, leading to heap-based buffer overflows, were found in the way the PHP phar extension processed certain fields of tar archive files. A remote attacker could provide a specially-crafted tar archive file that, when processed by a PHP application using the phar extension, could cause the application to crash or, potentially, execute arbitrary code with the privileges of the user running PHP. (CVE-2012-2386)
A format string flaw was found in the way the PHP phar extension processed certain PHAR files. A remote attacker could provide a specially-crafted PHAR file, which once processed in a PHP application using the phar extension, could lead to information disclosure and possibly arbitrary code execution via a crafted phar:// URI. (CVE-2010-2950)
A flaw was found in the DES algorithm implementation in the crypt() password hashing function in PHP. If the password string to be hashed contained certain characters, the remainder of the string was ignored when calculating the hash, significantly reducing the password strength. (CVE-2012-2143)
Note: With this update, passwords are no longer truncated when performing DES hashing. Therefore, new hashes of the affected passwords will not match stored hashes generated using vulnerable PHP versions, and will need to be updated.
It was discovered that the fix for CVE-2012-1823, released via RHSA-2012:0546, did not properly filter all php-cgi command line arguments. A specially-crafted request to a PHP script could cause the PHP interpreter to execute the script in a loop, or output usage information that triggersan Internal Server Error. (CVE-2012-2336)
A memory leak flaw was found in the PHP strtotime() function call. A remote attacker could possibly use this flaw to cause excessive memory consumption by triggering many strtotime() function calls. (CVE-2012-0789)
A NULL pointer dereference flaw was found in the PHP tidy_diagnose() function. A remote attacker could use specially-crafted input to crash an application that uses tidy::diagnose. (CVE-2012-0781)
It was found that PHP did not check the zend_strndup() function's return value in certain cases. A remote attacker could possibly use this flaw to crash a PHP application. (CVE-2011-4153)
Upstream acknowledges Rubin Xu and Joseph Bonneau as the original reportersof CVE-2012-2143.
All php users should upgrade to these updated packages, which contain backported patches to resolve these issues. After installing the updated packages, the httpd daemon must be restarted for the update to take effect.



Summary


Solution

Before applying this update, make sure all previously-released errata relevant to your system have been applied.
This update is available via the Red Hat Network. Details on how to use the Red Hat Network to apply this update are available at https://access.redhat.com/knowledge/articles/11258

References

https://www.redhat.com/security/data/cve/CVE-2010-2950.html https://www.redhat.com/security/data/cve/CVE-2011-4153.html https://www.redhat.com/security/data/cve/CVE-2012-0057.html https://www.redhat.com/security/data/cve/CVE-2012-0781.html https://www.redhat.com/security/data/cve/CVE-2012-0789.html https://www.redhat.com/security/data/cve/CVE-2012-1172.html https://www.redhat.com/security/data/cve/CVE-2012-2143.html https://www.redhat.com/security/data/cve/CVE-2012-2336.html https://www.redhat.com/security/data/cve/CVE-2012-2386.html https://access.redhat.com/security/updates/classification/#moderate https://access.redhat.com/errata/RHSA-2012:0546.html

Package List

Red Hat Enterprise Linux Desktop Optional (v. 6):
Source:
i386: php-5.3.3-14.el6_3.i686.rpm php-bcmath-5.3.3-14.el6_3.i686.rpm php-cli-5.3.3-14.el6_3.i686.rpm php-common-5.3.3-14.el6_3.i686.rpm php-dba-5.3.3-14.el6_3.i686.rpm php-debuginfo-5.3.3-14.el6_3.i686.rpm php-devel-5.3.3-14.el6_3.i686.rpm php-embedded-5.3.3-14.el6_3.i686.rpm php-enchant-5.3.3-14.el6_3.i686.rpm php-gd-5.3.3-14.el6_3.i686.rpm php-imap-5.3.3-14.el6_3.i686.rpm php-intl-5.3.3-14.el6_3.i686.rpm php-ldap-5.3.3-14.el6_3.i686.rpm php-mbstring-5.3.3-14.el6_3.i686.rpm php-mysql-5.3.3-14.el6_3.i686.rpm php-odbc-5.3.3-14.el6_3.i686.rpm php-pdo-5.3.3-14.el6_3.i686.rpm php-pgsql-5.3.3-14.el6_3.i686.rpm php-process-5.3.3-14.el6_3.i686.rpm php-pspell-5.3.3-14.el6_3.i686.rpm php-recode-5.3.3-14.el6_3.i686.rpm php-snmp-5.3.3-14.el6_3.i686.rpm php-soap-5.3.3-14.el6_3.i686.rpm php-tidy-5.3.3-14.el6_3.i686.rpm php-xml-5.3.3-14.el6_3.i686.rpm php-xmlrpc-5.3.3-14.el6_3.i686.rpm php-zts-5.3.3-14.el6_3.i686.rpm
x86_64: php-5.3.3-14.el6_3.x86_64.rpm php-bcmath-5.3.3-14.el6_3.x86_64.rpm php-cli-5.3.3-14.el6_3.x86_64.rpm php-common-5.3.3-14.el6_3.x86_64.rpm php-dba-5.3.3-14.el6_3.x86_64.rpm php-debuginfo-5.3.3-14.el6_3.x86_64.rpm php-devel-5.3.3-14.el6_3.x86_64.rpm php-embedded-5.3.3-14.el6_3.x86_64.rpm php-enchant-5.3.3-14.el6_3.x86_64.rpm php-gd-5.3.3-14.el6_3.x86_64.rpm php-imap-5.3.3-14.el6_3.x86_64.rpm php-intl-5.3.3-14.el6_3.x86_64.rpm php-ldap-5.3.3-14.el6_3.x86_64.rpm php-mbstring-5.3.3-14.el6_3.x86_64.rpm php-mysql-5.3.3-14.el6_3.x86_64.rpm php-odbc-5.3.3-14.el6_3.x86_64.rpm php-pdo-5.3.3-14.el6_3.x86_64.rpm php-pgsql-5.3.3-14.el6_3.x86_64.rpm php-process-5.3.3-14.el6_3.x86_64.rpm php-pspell-5.3.3-14.el6_3.x86_64.rpm php-recode-5.3.3-14.el6_3.x86_64.rpm php-snmp-5.3.3-14.el6_3.x86_64.rpm php-soap-5.3.3-14.el6_3.x86_64.rpm php-tidy-5.3.3-14.el6_3.x86_64.rpm php-xml-5.3.3-14.el6_3.x86_64.rpm php-xmlrpc-5.3.3-14.el6_3.x86_64.rpm php-zts-5.3.3-14.el6_3.x86_64.rpm
Red Hat Enterprise Linux HPC Node (v. 6):
Source:
x86_64: php-cli-5.3.3-14.el6_3.x86_64.rpm php-common-5.3.3-14.el6_3.x86_64.rpm php-debuginfo-5.3.3-14.el6_3.x86_64.rpm
Red Hat Enterprise Linux HPC Node Optional (v. 6):
Source:
x86_64: php-5.3.3-14.el6_3.x86_64.rpm php-bcmath-5.3.3-14.el6_3.x86_64.rpm php-dba-5.3.3-14.el6_3.x86_64.rpm php-debuginfo-5.3.3-14.el6_3.x86_64.rpm php-devel-5.3.3-14.el6_3.x86_64.rpm php-embedded-5.3.3-14.el6_3.x86_64.rpm php-enchant-5.3.3-14.el6_3.x86_64.rpm php-gd-5.3.3-14.el6_3.x86_64.rpm php-imap-5.3.3-14.el6_3.x86_64.rpm php-intl-5.3.3-14.el6_3.x86_64.rpm php-ldap-5.3.3-14.el6_3.x86_64.rpm php-mbstring-5.3.3-14.el6_3.x86_64.rpm php-mysql-5.3.3-14.el6_3.x86_64.rpm php-odbc-5.3.3-14.el6_3.x86_64.rpm php-pdo-5.3.3-14.el6_3.x86_64.rpm php-pgsql-5.3.3-14.el6_3.x86_64.rpm php-process-5.3.3-14.el6_3.x86_64.rpm php-pspell-5.3.3-14.el6_3.x86_64.rpm php-recode-5.3.3-14.el6_3.x86_64.rpm php-snmp-5.3.3-14.el6_3.x86_64.rpm php-soap-5.3.3-14.el6_3.x86_64.rpm php-tidy-5.3.3-14.el6_3.x86_64.rpm php-xml-5.3.3-14.el6_3.x86_64.rpm php-xmlrpc-5.3.3-14.el6_3.x86_64.rpm php-zts-5.3.3-14.el6_3.x86_64.rpm
Red Hat Enterprise Linux Server (v. 6):
Source:
i386: php-5.3.3-14.el6_3.i686.rpm php-cli-5.3.3-14.el6_3.i686.rpm php-common-5.3.3-14.el6_3.i686.rpm php-debuginfo-5.3.3-14.el6_3.i686.rpm php-gd-5.3.3-14.el6_3.i686.rpm php-ldap-5.3.3-14.el6_3.i686.rpm php-mysql-5.3.3-14.el6_3.i686.rpm php-odbc-5.3.3-14.el6_3.i686.rpm php-pdo-5.3.3-14.el6_3.i686.rpm php-pgsql-5.3.3-14.el6_3.i686.rpm php-soap-5.3.3-14.el6_3.i686.rpm php-xml-5.3.3-14.el6_3.i686.rpm php-xmlrpc-5.3.3-14.el6_3.i686.rpm
ppc64: php-5.3.3-14.el6_3.ppc64.rpm php-cli-5.3.3-14.el6_3.ppc64.rpm php-common-5.3.3-14.el6_3.ppc64.rpm php-debuginfo-5.3.3-14.el6_3.ppc64.rpm php-gd-5.3.3-14.el6_3.ppc64.rpm php-ldap-5.3.3-14.el6_3.ppc64.rpm php-mysql-5.3.3-14.el6_3.ppc64.rpm php-odbc-5.3.3-14.el6_3.ppc64.rpm php-pdo-5.3.3-14.el6_3.ppc64.rpm php-pgsql-5.3.3-14.el6_3.ppc64.rpm php-soap-5.3.3-14.el6_3.ppc64.rpm php-xml-5.3.3-14.el6_3.ppc64.rpm php-xmlrpc-5.3.3-14.el6_3.ppc64.rpm
s390x: php-5.3.3-14.el6_3.s390x.rpm php-cli-5.3.3-14.el6_3.s390x.rpm php-common-5.3.3-14.el6_3.s390x.rpm php-debuginfo-5.3.3-14.el6_3.s390x.rpm php-gd-5.3.3-14.el6_3.s390x.rpm php-ldap-5.3.3-14.el6_3.s390x.rpm php-mysql-5.3.3-14.el6_3.s390x.rpm php-odbc-5.3.3-14.el6_3.s390x.rpm php-pdo-5.3.3-14.el6_3.s390x.rpm php-pgsql-5.3.3-14.el6_3.s390x.rpm php-soap-5.3.3-14.el6_3.s390x.rpm php-xml-5.3.3-14.el6_3.s390x.rpm php-xmlrpc-5.3.3-14.el6_3.s390x.rpm
x86_64: php-5.3.3-14.el6_3.x86_64.rpm php-cli-5.3.3-14.el6_3.x86_64.rpm php-common-5.3.3-14.el6_3.x86_64.rpm php-debuginfo-5.3.3-14.el6_3.x86_64.rpm php-gd-5.3.3-14.el6_3.x86_64.rpm php-ldap-5.3.3-14.el6_3.x86_64.rpm php-mysql-5.3.3-14.el6_3.x86_64.rpm php-odbc-5.3.3-14.el6_3.x86_64.rpm php-pdo-5.3.3-14.el6_3.x86_64.rpm php-pgsql-5.3.3-14.el6_3.x86_64.rpm php-soap-5.3.3-14.el6_3.x86_64.rpm php-xml-5.3.3-14.el6_3.x86_64.rpm php-xmlrpc-5.3.3-14.el6_3.x86_64.rpm
Red Hat Enterprise Linux Server Optional (v. 6):
Source:
i386: php-bcmath-5.3.3-14.el6_3.i686.rpm php-dba-5.3.3-14.el6_3.i686.rpm php-debuginfo-5.3.3-14.el6_3.i686.rpm php-devel-5.3.3-14.el6_3.i686.rpm php-embedded-5.3.3-14.el6_3.i686.rpm php-enchant-5.3.3-14.el6_3.i686.rpm php-imap-5.3.3-14.el6_3.i686.rpm php-intl-5.3.3-14.el6_3.i686.rpm php-mbstring-5.3.3-14.el6_3.i686.rpm php-process-5.3.3-14.el6_3.i686.rpm php-pspell-5.3.3-14.el6_3.i686.rpm php-recode-5.3.3-14.el6_3.i686.rpm php-snmp-5.3.3-14.el6_3.i686.rpm php-tidy-5.3.3-14.el6_3.i686.rpm php-zts-5.3.3-14.el6_3.i686.rpm
ppc64: php-bcmath-5.3.3-14.el6_3.ppc64.rpm php-dba-5.3.3-14.el6_3.ppc64.rpm php-debuginfo-5.3.3-14.el6_3.ppc64.rpm php-devel-5.3.3-14.el6_3.ppc64.rpm php-embedded-5.3.3-14.el6_3.ppc64.rpm php-enchant-5.3.3-14.el6_3.ppc64.rpm php-imap-5.3.3-14.el6_3.ppc64.rpm php-intl-5.3.3-14.el6_3.ppc64.rpm php-mbstring-5.3.3-14.el6_3.ppc64.rpm php-process-5.3.3-14.el6_3.ppc64.rpm php-pspell-5.3.3-14.el6_3.ppc64.rpm php-recode-5.3.3-14.el6_3.ppc64.rpm php-snmp-5.3.3-14.el6_3.ppc64.rpm php-tidy-5.3.3-14.el6_3.ppc64.rpm php-zts-5.3.3-14.el6_3.ppc64.rpm
s390x: php-bcmath-5.3.3-14.el6_3.s390x.rpm php-dba-5.3.3-14.el6_3.s390x.rpm php-debuginfo-5.3.3-14.el6_3.s390x.rpm php-devel-5.3.3-14.el6_3.s390x.rpm php-embedded-5.3.3-14.el6_3.s390x.rpm php-enchant-5.3.3-14.el6_3.s390x.rpm php-imap-5.3.3-14.el6_3.s390x.rpm php-intl-5.3.3-14.el6_3.s390x.rpm php-mbstring-5.3.3-14.el6_3.s390x.rpm php-process-5.3.3-14.el6_3.s390x.rpm php-pspell-5.3.3-14.el6_3.s390x.rpm php-recode-5.3.3-14.el6_3.s390x.rpm php-snmp-5.3.3-14.el6_3.s390x.rpm php-tidy-5.3.3-14.el6_3.s390x.rpm php-zts-5.3.3-14.el6_3.s390x.rpm
x86_64: php-bcmath-5.3.3-14.el6_3.x86_64.rpm php-dba-5.3.3-14.el6_3.x86_64.rpm php-debuginfo-5.3.3-14.el6_3.x86_64.rpm php-devel-5.3.3-14.el6_3.x86_64.rpm php-embedded-5.3.3-14.el6_3.x86_64.rpm php-enchant-5.3.3-14.el6_3.x86_64.rpm php-imap-5.3.3-14.el6_3.x86_64.rpm php-intl-5.3.3-14.el6_3.x86_64.rpm php-mbstring-5.3.3-14.el6_3.x86_64.rpm php-process-5.3.3-14.el6_3.x86_64.rpm php-pspell-5.3.3-14.el6_3.x86_64.rpm php-recode-5.3.3-14.el6_3.x86_64.rpm php-snmp-5.3.3-14.el6_3.x86_64.rpm php-tidy-5.3.3-14.el6_3.x86_64.rpm php-zts-5.3.3-14.el6_3.x86_64.rpm
Red Hat Enterprise Linux Workstation (v. 6):
Source:
i386: php-5.3.3-14.el6_3.i686.rpm php-cli-5.3.3-14.el6_3.i686.rpm php-common-5.3.3-14.el6_3.i686.rpm php-debuginfo-5.3.3-14.el6_3.i686.rpm php-gd-5.3.3-14.el6_3.i686.rpm php-ldap-5.3.3-14.el6_3.i686.rpm php-mysql-5.3.3-14.el6_3.i686.rpm php-odbc-5.3.3-14.el6_3.i686.rpm php-pdo-5.3.3-14.el6_3.i686.rpm php-pgsql-5.3.3-14.el6_3.i686.rpm php-soap-5.3.3-14.el6_3.i686.rpm php-xml-5.3.3-14.el6_3.i686.rpm php-xmlrpc-5.3.3-14.el6_3.i686.rpm
x86_64: php-5.3.3-14.el6_3.x86_64.rpm php-cli-5.3.3-14.el6_3.x86_64.rpm php-common-5.3.3-14.el6_3.x86_64.rpm php-debuginfo-5.3.3-14.el6_3.x86_64.rpm php-gd-5.3.3-14.el6_3.x86_64.rpm php-ldap-5.3.3-14.el6_3.x86_64.rpm php-mysql-5.3.3-14.el6_3.x86_64.rpm php-odbc-5.3.3-14.el6_3.x86_64.rpm php-pdo-5.3.3-14.el6_3.x86_64.rpm php-pgsql-5.3.3-14.el6_3.x86_64.rpm php-soap-5.3.3-14.el6_3.x86_64.rpm php-xml-5.3.3-14.el6_3.x86_64.rpm php-xmlrpc-5.3.3-14.el6_3.x86_64.rpm
Red Hat Enterprise Linux Workstation Optional (v. 6):
Source:
i386: php-bcmath-5.3.3-14.el6_3.i686.rpm php-dba-5.3.3-14.el6_3.i686.rpm php-debuginfo-5.3.3-14.el6_3.i686.rpm php-devel-5.3.3-14.el6_3.i686.rpm php-embedded-5.3.3-14.el6_3.i686.rpm php-enchant-5.3.3-14.el6_3.i686.rpm php-imap-5.3.3-14.el6_3.i686.rpm php-intl-5.3.3-14.el6_3.i686.rpm php-mbstring-5.3.3-14.el6_3.i686.rpm php-process-5.3.3-14.el6_3.i686.rpm php-pspell-5.3.3-14.el6_3.i686.rpm php-recode-5.3.3-14.el6_3.i686.rpm php-snmp-5.3.3-14.el6_3.i686.rpm php-tidy-5.3.3-14.el6_3.i686.rpm php-zts-5.3.3-14.el6_3.i686.rpm
x86_64: php-bcmath-5.3.3-14.el6_3.x86_64.rpm php-dba-5.3.3-14.el6_3.x86_64.rpm php-debuginfo-5.3.3-14.el6_3.x86_64.rpm php-devel-5.3.3-14.el6_3.x86_64.rpm php-embedded-5.3.3-14.el6_3.x86_64.rpm php-enchant-5.3.3-14.el6_3.x86_64.rpm php-imap-5.3.3-14.el6_3.x86_64.rpm php-intl-5.3.3-14.el6_3.x86_64.rpm php-mbstring-5.3.3-14.el6_3.x86_64.rpm php-process-5.3.3-14.el6_3.x86_64.rpm php-pspell-5.3.3-14.el6_3.x86_64.rpm php-recode-5.3.3-14.el6_3.x86_64.rpm php-snmp-5.3.3-14.el6_3.x86_64.rpm php-tidy-5.3.3-14.el6_3.x86_64.rpm php-zts-5.3.3-14.el6_3.x86_64.rpm
These packages are GPG signed by Red Hat for security. Our key and details on how to verify the signature are available from https://access.redhat.com/security/team/key/#package


Severity
Advisory ID: RHSA-2012:1046-01
Product: Red Hat Enterprise Linux
Advisory URL: https://access.redhat.com/errata/RHSA-2012:1046.html
Issued Date: : 2012-06-27
CVE Names: CVE-2010-2950 CVE-2011-4153 CVE-2012-0057 CVE-2012-0781 CVE-2012-0789 CVE-2012-1172 CVE-2012-2143 CVE-2012-2336 CVE-2012-2386

Topic

Updated php packages that fix multiple security issues are now availablefor Red Hat Enterprise Linux 6.The Red Hat Security Response Team has rated this update as having moderatesecurity impact. Common Vulnerability Scoring System (CVSS) base scores,which give detailed severity ratings, are available for each vulnerabilityfrom the CVE links in the References section.


Topic


 

Relevant Releases Architectures

Red Hat Enterprise Linux Desktop Optional (v. 6) - i386, x86_64

Red Hat Enterprise Linux HPC Node (v. 6) - x86_64

Red Hat Enterprise Linux HPC Node Optional (v. 6) - x86_64

Red Hat Enterprise Linux Server (v. 6) - i386, ppc64, s390x, x86_64

Red Hat Enterprise Linux Server Optional (v. 6) - i386, ppc64, s390x, x86_64

Red Hat Enterprise Linux Workstation (v. 6) - i386, x86_64

Red Hat Enterprise Linux Workstation Optional (v. 6) - i386, x86_64


Bugs Fixed

782657 - CVE-2012-0057 php: XSLT file writing vulnerability

782943 - CVE-2011-4153 php: zend_strndup() NULL pointer dereference may cause DoS

782951 - CVE-2012-0781 php: tidy_diagnose() NULL pointer dereference may cause DoS

783609 - CVE-2012-0789 php: strtotime timezone memory leak

799187 - CVE-2012-1172 php: $_FILES array indexes corruption

816956 - CVE-2012-2143 BSD crypt(): DES encrypted password weakness

820708 - CVE-2012-2336 php: incomplete CVE-2012-1823 fix - missing filtering of -T and -h

823594 - CVE-2012-2386 php: Integer overflow leading to heap-buffer overflow in the Phar extension

835024 - CVE-2010-2950 php: Format string flaw in phar extension via phar_stream_flush() (MOPS-2010-024)


Related News