Issued:
2010-01-13
Updated:
2010-01-13

RHSA-2010:0040 - Moderate: php security update


Synopsis

Moderate: php security update

Type/Severity

Security Advisory Moderate

Topic

Updated php packages that fix several security issues are now available for Red Hat Enterprise Linux 3, 4, and 5.

This update has been rated as having moderate security impact by the Red Hat Security Response Team.

Description

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

Multiple missing input sanitization flaws were discovered in PHP's exif extension. A specially-crafted image file could cause the PHP interpreter to crash or, possibly, disclose portions of its memory when a PHP script tried to extract Exchangeable image file format (Exif) metadata from the image file. (CVE-2009-2687, CVE-2009-3292)

A missing input sanitization flaw, leading to a buffer overflow, was discovered in PHP's gd library. A specially-crafted GD image file could cause the PHP interpreter to crash or, possibly, execute arbitrary code when opened. (CVE-2009-3546)

It was discovered that PHP did not limit the maximum number of files that can be uploaded in one request. A remote attacker could use this flaw to instigate a denial of service by causing the PHP interpreter to use lots of system resources dealing with requests containing large amounts of files to be uploaded. This vulnerability depends on file uploads being enabled (which it is, in the default PHP configuration). (CVE-2009-4017)

Note: This update introduces a new configuration option, max_file_uploads, used for limiting the number of files that can be uploaded in one request. By default, the limit is 20 files per request.

It was discovered that PHP was affected by the previously published "null prefix attack", caused by incorrect handling of NUL characters in X.509 certificates. If an attacker is able to get a carefully-crafted certificate signed by a trusted Certificate Authority, the attacker could use the certificate during a man-in-the-middle attack and potentially confuse PHP into accepting it by mistake. (CVE-2009-3291)

It was discovered that PHP's htmlspecialchars() function did not properly recognize partial multi-byte sequences for some multi-byte encodings, sending them to output without them being escaped. An attacker could use this flaw to perform a cross-site scripting attack. (CVE-2009-4142)

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.

Solution

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

This update is available via Red Hat Network. Details on how to use the Red Hat Network to apply this update are available at This content is not included.http://kbase.redhat.com/faq/docs/DOC-11259

Affected Products

ProductVersionArch
Red Hat Enterprise Linux for x86_64 - Extended Update Support5.4x86_64
Red Hat Enterprise Linux for x86_64 - Extended Update Support5.4ia64
Red Hat Enterprise Linux for x86_64 - Extended Update Support5.4i386
Red Hat Enterprise Linux for x86_64 - Extended Update Support4.8x86_64
Red Hat Enterprise Linux for x86_64 - Extended Update Support4.8ia64
Red Hat Enterprise Linux for x86_64 - Extended Update Support4.8i386
Red Hat Enterprise Linux for Power, big endian5ppc
Red Hat Enterprise Linux for Power, big endian4ppc
Red Hat Enterprise Linux for Power, big endian3ppc
Red Hat Enterprise Linux for Power, big endian - Extended Update Support5.4ppc
Red Hat Enterprise Linux for Power, big endian - Extended Update Support4.8ppc
Red Hat Enterprise Linux for IBM z Systems5s390x
Red Hat Enterprise Linux for IBM z Systems4s390x
Red Hat Enterprise Linux for IBM z Systems4s390
Red Hat Enterprise Linux for IBM z Systems3s390x
Red Hat Enterprise Linux for IBM z Systems3s390
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support5.4s390x
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support4.8s390x
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support4.8s390
Red Hat Enterprise Linux Workstation5x86_64
Red Hat Enterprise Linux Workstation5i386
Red Hat Enterprise Linux Workstation4x86_64
Red Hat Enterprise Linux Workstation4ia64
Red Hat Enterprise Linux Workstation4i386
Red Hat Enterprise Linux Workstation3x86_64
Red Hat Enterprise Linux Workstation3ia64
Red Hat Enterprise Linux Workstation3i386
Red Hat Enterprise Linux Server5x86_64
Red Hat Enterprise Linux Server5ia64
Red Hat Enterprise Linux Server5i386
Red Hat Enterprise Linux Server4x86_64
Red Hat Enterprise Linux Server4ia64
Red Hat Enterprise Linux Server4i386
Red Hat Enterprise Linux Server3x86_64
Red Hat Enterprise Linux Server3ia64
Red Hat Enterprise Linux Server3i386
Red Hat Enterprise Linux Server from RHUI5x86_64
Red Hat Enterprise Linux Server from RHUI5i386
Red Hat Enterprise Linux Desktop4x86_64
Red Hat Enterprise Linux Desktop4i386
Red Hat Enterprise Linux Desktop3x86_64
Red Hat Enterprise Linux Desktop3i386

Updated Packages

  • php-xmlrpc-4.3.9-3.29.ppc.rpm
  • php-cli-5.1.6-24.el5_4.5.ia64.rpm
  • php-mbstring-4.3.9-3.29.ppc.rpm
  • php-ldap-4.3.9-3.29.ia64.rpm
  • php-mbstring-4.3.9-3.29.ia64.rpm
  • php-devel-5.1.6-24.el5_4.5.ia64.rpm
  • php-mysql-4.3.9-3.29.x86_64.rpm
  • php-ncurses-4.3.9-3.29.x86_64.rpm
  • php-xml-5.1.6-24.el5_4.5.ppc.rpm
  • php-gd-5.1.6-24.el5_4.5.i386.rpm
  • php-pgsql-5.1.6-24.el5_4.5.x86_64.rpm
  • php-bcmath-5.1.6-24.el5_4.5.ia64.rpm
  • php-xmlrpc-4.3.9-3.29.ia64.rpm
  • php-xmlrpc-4.3.9-3.29.s390x.rpm
  • php-mbstring-5.1.6-24.el5_4.5.ppc.rpm
  • php-pear-4.3.9-3.29.ia64.rpm
  • php-mbstring-4.3.9-3.29.s390.rpm
  • php-xml-5.1.6-24.el5_4.5.ia64.rpm
  • php-bcmath-5.1.6-24.el5_4.5.i386.rpm
  • php-snmp-5.1.6-24.el5_4.5.ia64.rpm
  • php-common-5.1.6-24.el5_4.5.i386.rpm
  • php-devel-4.3.9-3.29.s390x.rpm
  • php-domxml-4.3.9-3.29.s390x.rpm
  • php-ncurses-5.1.6-24.el5_4.5.s390x.rpm
  • php-gd-5.1.6-24.el5_4.5.ia64.rpm
  • php-odbc-4.3.9-3.29.ppc.rpm
  • php-pear-4.3.9-3.29.ppc.rpm
  • php-pgsql-4.3.9-3.29.x86_64.rpm
  • php-snmp-4.3.9-3.29.s390.rpm
  • php-snmp-4.3.9-3.29.ppc.rpm
  • php-ldap-4.3.9-3.29.ppc.rpm
  • php-odbc-5.1.6-24.el5_4.5.s390x.rpm
  • php-devel-5.1.6-24.el5_4.5.i386.rpm
  • php-4.3.9-3.29.s390.rpm
  • php-pgsql-5.1.6-24.el5_4.5.ppc.rpm
  • php-ldap-5.1.6-24.el5_4.5.i386.rpm
  • php-4.3.9-3.29.src.rpm
  • php-odbc-5.1.6-24.el5_4.5.x86_64.rpm
  • php-common-5.1.6-24.el5_4.5.ia64.rpm
  • php-xml-5.1.6-24.el5_4.5.i386.rpm
  • php-odbc-4.3.9-3.29.i386.rpm
  • php-5.1.6-24.el5_4.5.ia64.rpm
  • php-pdo-5.1.6-24.el5_4.5.ia64.rpm
  • php-ncurses-5.1.6-24.el5_4.5.ia64.rpm
  • php-mysql-5.1.6-24.el5_4.5.ia64.rpm
  • php-mysql-5.1.6-24.el5_4.5.i386.rpm
  • php-odbc-5.1.6-24.el5_4.5.ia64.rpm
  • php-ncurses-4.3.9-3.29.i386.rpm
  • php-odbc-4.3.9-3.29.s390.rpm
  • php-4.3.9-3.29.x86_64.rpm
  • php-xmlrpc-5.1.6-24.el5_4.5.ia64.rpm
  • php-imap-4.3.9-3.29.ppc.rpm
  • php-ldap-4.3.9-3.29.s390.rpm
  • php-cli-5.1.6-24.el5_4.5.s390x.rpm
  • php-pdo-5.1.6-24.el5_4.5.s390x.rpm
  • php-domxml-4.3.9-3.29.x86_64.rpm
  • php-gd-4.3.9-3.29.s390.rpm
  • php-imap-5.1.6-24.el5_4.5.s390x.rpm
  • php-cli-5.1.6-24.el5_4.5.x86_64.rpm
  • php-5.1.6-24.el5_4.5.s390x.rpm
  • php-pear-4.3.9-3.29.i386.rpm
  • php-xmlrpc-4.3.9-3.29.i386.rpm
  • php-bcmath-5.1.6-24.el5_4.5.ppc.rpm
  • php-gd-4.3.9-3.29.i386.rpm
  • php-ldap-4.3.9-3.29.x86_64.rpm
  • php-xmlrpc-4.3.9-3.29.s390.rpm
  • php-odbc-4.3.9-3.29.x86_64.rpm
  • php-domxml-4.3.9-3.29.ppc.rpm
  • php-5.1.6-24.el5_4.5.src.rpm
  • php-gd-4.3.9-3.29.ia64.rpm
  • php-devel-4.3.9-3.29.x86_64.rpm
  • php-imap-4.3.9-3.29.ia64.rpm
  • php-devel-4.3.9-3.29.ia64.rpm
  • php-imap-4.3.9-3.29.x86_64.rpm
  • php-gd-4.3.9-3.29.s390x.rpm
  • php-xmlrpc-5.1.6-24.el5_4.5.ppc.rpm
  • php-4.3.9-3.29.ppc.rpm
  • php-xmlrpc-5.1.6-24.el5_4.5.i386.rpm
  • php-imap-4.3.9-3.29.s390.rpm
  • php-common-5.1.6-24.el5_4.5.ppc.rpm
  • php-ncurses-5.1.6-24.el5_4.5.x86_64.rpm
  • php-odbc-5.1.6-24.el5_4.5.i386.rpm
  • php-soap-5.1.6-24.el5_4.5.ia64.rpm
  • php-gd-4.3.9-3.29.ppc.rpm
  • php-mbstring-5.1.6-24.el5_4.5.s390x.rpm
  • php-odbc-4.3.9-3.29.s390x.rpm
  • php-soap-5.1.6-24.el5_4.5.i386.rpm
  • php-mysql-4.3.9-3.29.i386.rpm
  • php-5.1.6-24.el5_4.5.x86_64.rpm
  • php-pear-4.3.9-3.29.s390x.rpm
  • php-mysql-5.1.6-24.el5_4.5.ppc.rpm
  • php-soap-5.1.6-24.el5_4.5.x86_64.rpm
  • php-xml-5.1.6-24.el5_4.5.x86_64.rpm
  • php-devel-4.3.9-3.29.i386.rpm
  • php-ldap-5.1.6-24.el5_4.5.ppc.rpm
  • php-pear-4.3.9-3.29.x86_64.rpm
  • php-ncurses-4.3.9-3.29.s390x.rpm
  • php-snmp-5.1.6-24.el5_4.5.i386.rpm
  • php-gd-5.1.6-24.el5_4.5.x86_64.rpm
  • php-ldap-4.3.9-3.29.i386.rpm
  • php-mysql-4.3.9-3.29.s390x.rpm
  • php-snmp-4.3.9-3.29.ia64.rpm
  • php-domxml-4.3.9-3.29.s390.rpm
  • php-mbstring-4.3.9-3.29.s390x.rpm
  • php-bcmath-5.1.6-24.el5_4.5.s390x.rpm
  • php-ldap-5.1.6-24.el5_4.5.s390x.rpm
  • php-imap-5.1.6-24.el5_4.5.ia64.rpm
  • php-pgsql-4.3.9-3.29.i386.rpm
  • php-mysql-5.1.6-24.el5_4.5.s390x.rpm
  • php-dba-5.1.6-24.el5_4.5.ia64.rpm
  • php-mbstring-5.1.6-24.el5_4.5.ia64.rpm
  • php-imap-4.3.9-3.29.i386.rpm
  • php-bcmath-5.1.6-24.el5_4.5.x86_64.rpm
  • php-5.1.6-24.el5_4.5.i386.rpm
  • php-mbstring-4.3.9-3.29.i386.rpm
  • php-devel-5.1.6-24.el5_4.5.s390x.rpm
  • php-pgsql-4.3.9-3.29.ia64.rpm
  • php-dba-5.1.6-24.el5_4.5.x86_64.rpm
  • php-pdo-5.1.6-24.el5_4.5.ppc.rpm
  • php-ldap-5.1.6-24.el5_4.5.ia64.rpm
  • php-4.3.9-3.29.i386.rpm
  • php-mysql-4.3.9-3.29.ppc.rpm
  • php-common-5.1.6-24.el5_4.5.x86_64.rpm
  • php-xml-5.1.6-24.el5_4.5.s390x.rpm
  • php-gd-4.3.9-3.29.x86_64.rpm
  • php-snmp-5.1.6-24.el5_4.5.ppc.rpm
  • php-dba-5.1.6-24.el5_4.5.s390x.rpm
  • php-xmlrpc-4.3.9-3.29.x86_64.rpm
  • php-pdo-5.1.6-24.el5_4.5.i386.rpm
  • php-pear-4.3.9-3.29.s390.rpm
  • php-4.3.9-3.29.s390x.rpm
  • php-snmp-5.1.6-24.el5_4.5.x86_64.rpm
  • php-mysql-5.1.6-24.el5_4.5.x86_64.rpm
  • php-snmp-4.3.9-3.29.i386.rpm
  • php-gd-5.1.6-24.el5_4.5.ppc.rpm
  • php-xmlrpc-5.1.6-24.el5_4.5.s390x.rpm
  • php-pgsql-4.3.9-3.29.ppc.rpm
  • php-imap-5.1.6-24.el5_4.5.ppc.rpm
  • php-5.1.6-24.el5_4.5.ppc.rpm
  • php-common-5.1.6-24.el5_4.5.s390x.rpm
  • php-devel-5.1.6-24.el5_4.5.x86_64.rpm
  • php-mbstring-5.1.6-24.el5_4.5.x86_64.rpm
  • php-cli-5.1.6-24.el5_4.5.i386.rpm
  • php-mysql-4.3.9-3.29.s390.rpm
  • php-ncurses-4.3.9-3.29.s390.rpm
  • php-dba-5.1.6-24.el5_4.5.ppc.rpm
  • php-mysql-4.3.9-3.29.ia64.rpm
  • php-soap-5.1.6-24.el5_4.5.ppc.rpm
  • php-gd-5.1.6-24.el5_4.5.s390x.rpm
  • php-ncurses-4.3.9-3.29.ppc.rpm
  • php-odbc-4.3.9-3.29.ia64.rpm
  • php-devel-4.3.9-3.29.ppc.rpm
  • php-imap-4.3.9-3.29.s390x.rpm
  • php-ncurses-5.1.6-24.el5_4.5.i386.rpm
  • php-4.3.9-3.29.ia64.rpm
  • php-snmp-5.1.6-24.el5_4.5.s390x.rpm
  • php-dba-5.1.6-24.el5_4.5.i386.rpm
  • php-pdo-5.1.6-24.el5_4.5.x86_64.rpm
  • php-xmlrpc-5.1.6-24.el5_4.5.x86_64.rpm
  • php-ldap-5.1.6-24.el5_4.5.x86_64.rpm
  • php-pgsql-4.3.9-3.29.s390x.rpm
  • php-ldap-4.3.9-3.29.s390x.rpm
  • php-cli-5.1.6-24.el5_4.5.ppc.rpm
  • php-pgsql-4.3.9-3.29.s390.rpm
  • php-snmp-4.3.9-3.29.x86_64.rpm
  • php-ncurses-4.3.9-3.29.ia64.rpm
  • php-odbc-5.1.6-24.el5_4.5.ppc.rpm
  • php-pgsql-5.1.6-24.el5_4.5.i386.rpm
  • php-ncurses-5.1.6-24.el5_4.5.ppc.rpm
  • php-imap-5.1.6-24.el5_4.5.i386.rpm
  • php-imap-5.1.6-24.el5_4.5.x86_64.rpm
  • php-pgsql-5.1.6-24.el5_4.5.ia64.rpm
  • php-pgsql-5.1.6-24.el5_4.5.s390x.rpm
  • php-domxml-4.3.9-3.29.i386.rpm
  • php-mbstring-4.3.9-3.29.x86_64.rpm
  • php-snmp-4.3.9-3.29.s390x.rpm
  • php-soap-5.1.6-24.el5_4.5.s390x.rpm
  • php-domxml-4.3.9-3.29.ia64.rpm
  • php-devel-5.1.6-24.el5_4.5.ppc.rpm
  • php-mbstring-5.1.6-24.el5_4.5.i386.rpm
  • php-devel-4.3.9-3.29.s390.rpm

Fixes

CVEs

References


Additional information