Overly broad permissions can turn one compromised account into a much larger security problem. Learn how to reduce unnecessary access, review privileges, and apply least privilege across modern Linux systems. Review Linux Privileges×

Alerts This Week
Warning Icon 1 491
Alerts This Week
Warning Icon 1 491

Red Hat Enterprise Linux 6: RHSA-2013:0514-02 Moderate: PHP Risk

red hat
Calendar Grey February 21, 2013
Scroller Redhat
Latest PHP updates address significant security vulnerabilities and introduce new features for Red Hat Enterprise Linux 6. An upgrade is advised.
Updated php packages that fix three security issues, several bugs, and add various enhancements are now available for Red Hat Enterprise Linux 6

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 found that PHP did not check for carriage returns in HTTP headers, allowing intended HTTP response splitting protections to be bypassed. Depending on the web browser the victim is using, a remote attacker could use this flaw to perform HTTP response splitting attacks. (CVE-2011-1398)
An integer signedness issue, leading to a heap-based buffer underflow, was found in the PHP scandir() function. If a remote attacker could upload an excessively large number of files to a directory the scandir() function runs on, it could cause the PHP interpreter to crash or, possibly, execute arbitrary code. (CVE-2012-2688)
It was found that PHP did not correctly handle the magic_quotes_gpc configuration directive. This could result in magic_quotes_gpc input escaping not being applied in all cases, possibly making it easier for a remote attacker to perform SQL injection attacks. (CVE-2012-0831)
These updated php packages also include numerous bug fixes and enhancements. Space precludes documenting all of these changes in this advisory. Users are directed to the Red Hat Enterprise Linux 6.4 Technical Notes, linked to in the References, for information on the most significant of these changes.
All users of php are advised to upgrade to these updated packages, which fix these issues and add these enhancements. 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-1398 https://access.redhat.com/security/cve/CVE-2012-0831 https://access.redhat.com/security/cve/CVE-2012-2688 https://access.redhat.com/security/updates/classification#moderate

Package List

Red Hat Enterprise Linux Desktop Optional (v. 6):
Source:
i386: php-5.3.3-22.el6.i686.rpm php-bcmath-5.3.3-22.el6.i686.rpm php-cli-5.3.3-22.el6.i686.rpm php-common-5.3.3-22.el6.i686.rpm php-dba-5.3.3-22.el6.i686.rpm php-debuginfo-5.3.3-22.el6.i686.rpm php-devel-5.3.3-22.el6.i686.rpm php-embedded-5.3.3-22.el6.i686.rpm php-enchant-5.3.3-22.el6.i686.rpm php-fpm-5.3.3-22.el6.i686.rpm php-gd-5.3.3-22.el6.i686.rpm php-imap-5.3.3-22.el6.i686.rpm php-intl-5.3.3-22.el6.i686.rpm php-ldap-5.3.3-22.el6.i686.rpm php-mbstring-5.3.3-22.el6.i686.rpm php-mysql-5.3.3-22.el6.i686.rpm php-odbc-5.3.3-22.el6.i686.rpm php-pdo-5.3.3-22.el6.i686.rpm php-pgsql-5.3.3-22.el6.i686.rpm php-process-5.3.3-22.el6.i686.rpm php-pspell-5.3.3-22.el6.i686.rpm php-recode-5.3.3-22.el6.i686.rpm php-snmp-5.3.3-22.el6.i686.rpm php-soap-5.3.3-22.el6.i686.rpm php-tidy-5.3.3-22.el6.i686.rpm php-xml-5.3.3-22.el6.i686.rpm php-xmlrpc-5.3.3-22.el6.i686.rpm php-zts-5.3.3-22.el6.i686.rpm
x86_64: php-5.3.3-22.el6.x86_64.rpm php-bcmath-5.3.3-22.el6.x86_64.rpm php-cli-5.3.3-22.el6.x86_64.rpm php-common-5.3.3-22.el6.x86_64.rpm php-dba-5.3.3-22.el6.x86_64.rpm php-debuginfo-5.3.3-22.el6.x86_64.rpm php-devel-5.3.3-22.el6.x86_64.rpm php-embedded-5.3.3-22.el6.x86_64.rpm php-enchant-5.3.3-22.el6.x86_64.rpm

Read the Full Advisory


Advisory ID: RHSA-2013:0514-02
Product: Red Hat Enterprise Linux
Issue date: 2013-02-21

Topic

Updated php packages that fix three security issues, several bugs, and addvarious enhancements are now available for 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.

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

771738 - var_export on negative array indexes returns unsigned index id

789468 - CVE-2012-0831 php: PG(magic_quote_gpc) was not restored on shutdown

812819 - setDate, setISODate, setTime works wrong when DateTime created from timestamp

824199 - PDOStatement execute segfaults for pdo_mysql driver

824293 - Include php-fpm in php build

828051 - CVE-2012-2688 php: Integer Signedness issues in _php_stream_scandir

833545 - dependencies on php-common are not arch-specific.

837042 - add php(language) virtual provide

853329 - CVE-2011-1398 PHP: sapi_header_op() %0D sequence handling security bypass

858653 - fileinfo extension: use stat function from stream wrapper

868375 - $this becomes a non-object

874987 - Missing provides in php-xml

Get the latest News and Insights

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