Alerts This Week
Warning Icon 1 916
Alerts This Week
Warning Icon 1 916

Red Hat Enterprise Linux: RHSA-2012:1045-01 Moderate: PHP Threats

red hat
Calendar Grey June 27, 2012
Dist Redhat Esm H88
Explore the ways new PHP packages for Red Hat Linux tackle intermediate security issues and improve overall system protection.
Updated php packages that fix multiple security issues are now available for Red Hat Enterprise Linux 5

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/articles/11258

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)
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 output usage information that triggers an 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)
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)
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.

References

https://access.redhat.com/security/cve/CVE-2011-4153 https://access.redhat.com/security/cve/CVE-2012-0057 https://access.redhat.com/security/cve/CVE-2012-0789 https://access.redhat.com/security/cve/CVE-2012-1172 https://access.redhat.com/security/cve/CVE-2012-2336 https://access.redhat.com/security/updates/classification#moderate https://access.redhat.com/errata/RHSA-2012:0546.html

Package List

RHEL Desktop Workstation (v. 5 client):
Source:
i386: php-5.1.6-39.el5_8.i386.rpm php-bcmath-5.1.6-39.el5_8.i386.rpm php-cli-5.1.6-39.el5_8.i386.rpm php-common-5.1.6-39.el5_8.i386.rpm php-dba-5.1.6-39.el5_8.i386.rpm php-debuginfo-5.1.6-39.el5_8.i386.rpm php-devel-5.1.6-39.el5_8.i386.rpm php-gd-5.1.6-39.el5_8.i386.rpm php-imap-5.1.6-39.el5_8.i386.rpm php-ldap-5.1.6-39.el5_8.i386.rpm php-mbstring-5.1.6-39.el5_8.i386.rpm php-mysql-5.1.6-39.el5_8.i386.rpm php-ncurses-5.1.6-39.el5_8.i386.rpm php-odbc-5.1.6-39.el5_8.i386.rpm php-pdo-5.1.6-39.el5_8.i386.rpm php-pgsql-5.1.6-39.el5_8.i386.rpm php-snmp-5.1.6-39.el5_8.i386.rpm php-soap-5.1.6-39.el5_8.i386.rpm php-xml-5.1.6-39.el5_8.i386.rpm php-xmlrpc-5.1.6-39.el5_8.i386.rpm
x86_64: php-5.1.6-39.el5_8.x86_64.rpm php-bcmath-5.1.6-39.el5_8.x86_64.rpm php-cli-5.1.6-39.el5_8.x86_64.rpm php-common-5.1.6-39.el5_8.x86_64.rpm php-dba-5.1.6-39.el5_8.x86_64.rpm php-debuginfo-5.1.6-39.el5_8.x86_64.rpm php-devel-5.1.6-39.el5_8.x86_64.rpm php-gd-5.1.6-39.el5_8.x86_64.rpm php-imap-5.1.6-39.el5_8.x86_64.rpm php-ldap-5.1.6-39.el5_8.x86_64.rpm php-mbstring-5.1.6-39.el5_8.x86_64.rpm php-mysql-5.1.6-39.el5_8.x86_64.rpm php-ncurses-5.1.6-39.el5_8.x86_64.rpm php-odbc-5.1.6-39.el5_8.x86_64.rpm php-pdo-5.1.6-39.el5_8.x86_64.rpm

Read the Full Advisory


Advisory ID: RHSA-2012:1045-01
Product: Red Hat Enterprise Linux
Issue date: 2012-06-27

Topic

Updated php packages that fix multiple security issues are now availablefor Red Hat Enterprise Linux 5.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.

Relevant Releases Architectures

RHEL Desktop Workstation (v. 5 client) - i386, x86_64

Red Hat Enterprise Linux (v. 5 server) - i386, ia64, ppc, s390x, 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

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

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

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

Get the latest News and Insights

Get the latest Linux and open source security news straight to your inbox.

Your message here