Issued:
2008-07-16
Updated:
2008-07-16

RHSA-2008:0544 - 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 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.

It was discovered that the PHP escapeshellcmd() function did not properly escape multi-byte characters which are not valid in the locale used by the script. This could allow an attacker to bypass quoting restrictions imposed by escapeshellcmd() and execute arbitrary commands if the PHP script was using certain locales. Scripts using the default UTF-8 locale are not affected by this issue. (CVE-2008-2051)

PHP functions htmlentities() and htmlspecialchars() did not properly recognize partial multi-byte sequences. Certain sequences of bytes could be passed through these functions without being correctly HTML-escaped. Depending on the browser being used, an attacker could use this flaw to conduct cross-site scripting attacks. (CVE-2007-5898)

A PHP script which used the transparent session ID configuration option, or which used the output_add_rewrite_var() function, could leak session identifiers to external web sites. If a page included an HTML form with an ACTION attribute referencing a non-local URL, the user's session ID would be included in the form data passed to that URL. (CVE-2007-5899)

It was discovered that PHP fnmatch() function did not restrict the length of the string argument. An attacker could use this flaw to crash the PHP interpreter where a script used fnmatch() on untrusted input data. (CVE-2007-4782)

It was discovered that PHP did not properly seed its pseudo-random number generator used by functions such as rand() and mt_rand(), possibly allowing an attacker to easily predict the generated pseudo-random values. (CVE-2008-2107, CVE-2008-2108)

Users of PHP should upgrade to these updated packages, which contain backported patches to correct these issues.

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/FAQ_58_10188

Affected Products

ProductVersionArch
Red Hat Enterprise Linux for x86_64 - Extended Update Support5.2x86_64
Red Hat Enterprise Linux for x86_64 - Extended Update Support5.2ia64
Red Hat Enterprise Linux for x86_64 - Extended Update Support5.2i386
Red Hat Enterprise Linux for Power, big endian5ppc
Red Hat Enterprise Linux for Power, big endian3ppc
Red Hat Enterprise Linux for Power, big endian - Extended Update Support5.2ppc
Red Hat Enterprise Linux for IBM z Systems5s390x
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.2s390x
Red Hat Enterprise Linux Workstation5x86_64
Red Hat Enterprise Linux Workstation5i386
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 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 Desktop3x86_64
Red Hat Enterprise Linux Desktop3i386

Updated Packages

  • php-ldap-5.1.6-20.el5_2.1.ia64.rpm
  • php-xmlrpc-5.1.6-20.el5_2.1.ia64.rpm
  • php-devel-5.1.6-20.el5_2.1.ia64.rpm
  • php-mbstring-5.1.6-20.el5_2.1.s390x.rpm
  • php-dba-5.1.6-20.el5_2.1.i386.rpm
  • php-odbc-5.1.6-20.el5_2.1.x86_64.rpm
  • php-pdo-5.1.6-20.el5_2.1.s390x.rpm
  • php-ldap-5.1.6-20.el5_2.1.s390x.rpm
  • php-cli-5.1.6-20.el5_2.1.x86_64.rpm
  • php-mysql-5.1.6-20.el5_2.1.ppc.rpm
  • php-ncurses-5.1.6-20.el5_2.1.s390x.rpm
  • php-mbstring-5.1.6-20.el5_2.1.i386.rpm
  • php-pgsql-5.1.6-20.el5_2.1.ia64.rpm
  • php-devel-5.1.6-20.el5_2.1.ppc.rpm
  • php-mbstring-5.1.6-20.el5_2.1.x86_64.rpm
  • php-gd-5.1.6-20.el5_2.1.s390x.rpm
  • php-ncurses-5.1.6-20.el5_2.1.ppc.rpm
  • php-5.1.6-20.el5_2.1.i386.rpm
  • php-mysql-5.1.6-20.el5_2.1.i386.rpm
  • php-odbc-5.1.6-20.el5_2.1.i386.rpm
  • php-cli-5.1.6-20.el5_2.1.ppc.rpm
  • php-snmp-5.1.6-20.el5_2.1.s390x.rpm
  • php-pgsql-5.1.6-20.el5_2.1.i386.rpm
  • php-devel-5.1.6-20.el5_2.1.i386.rpm
  • php-gd-5.1.6-20.el5_2.1.ppc.rpm
  • php-mbstring-5.1.6-20.el5_2.1.ia64.rpm
  • php-imap-5.1.6-20.el5_2.1.x86_64.rpm
  • php-xml-5.1.6-20.el5_2.1.i386.rpm
  • php-imap-5.1.6-20.el5_2.1.ia64.rpm
  • php-mysql-5.1.6-20.el5_2.1.ia64.rpm
  • php-dba-5.1.6-20.el5_2.1.ppc.rpm
  • php-ldap-5.1.6-20.el5_2.1.x86_64.rpm
  • php-pdo-5.1.6-20.el5_2.1.ia64.rpm
  • php-dba-5.1.6-20.el5_2.1.ia64.rpm
  • php-bcmath-5.1.6-20.el5_2.1.ia64.rpm
  • php-pdo-5.1.6-20.el5_2.1.ppc.rpm
  • php-ldap-5.1.6-20.el5_2.1.i386.rpm
  • php-imap-5.1.6-20.el5_2.1.i386.rpm
  • php-pgsql-5.1.6-20.el5_2.1.s390x.rpm
  • php-snmp-5.1.6-20.el5_2.1.ppc.rpm
  • php-devel-5.1.6-20.el5_2.1.x86_64.rpm
  • php-pgsql-5.1.6-20.el5_2.1.ppc.rpm
  • php-gd-5.1.6-20.el5_2.1.i386.rpm
  • php-odbc-5.1.6-20.el5_2.1.ia64.rpm
  • php-soap-5.1.6-20.el5_2.1.ia64.rpm
  • php-snmp-5.1.6-20.el5_2.1.ia64.rpm
  • php-mysql-5.1.6-20.el5_2.1.s390x.rpm
  • php-soap-5.1.6-20.el5_2.1.ppc.rpm
  • php-soap-5.1.6-20.el5_2.1.x86_64.rpm
  • php-xml-5.1.6-20.el5_2.1.ppc.rpm
  • php-gd-5.1.6-20.el5_2.1.x86_64.rpm
  • php-gd-5.1.6-20.el5_2.1.ia64.rpm
  • php-odbc-5.1.6-20.el5_2.1.ppc.rpm
  • php-bcmath-5.1.6-20.el5_2.1.ppc.rpm
  • php-xmlrpc-5.1.6-20.el5_2.1.s390x.rpm
  • php-common-5.1.6-20.el5_2.1.i386.rpm
  • php-5.1.6-20.el5_2.1.ia64.rpm
  • php-cli-5.1.6-20.el5_2.1.s390x.rpm
  • php-xml-5.1.6-20.el5_2.1.s390x.rpm
  • php-odbc-5.1.6-20.el5_2.1.s390x.rpm
  • php-cli-5.1.6-20.el5_2.1.i386.rpm
  • php-pgsql-5.1.6-20.el5_2.1.x86_64.rpm
  • php-5.1.6-20.el5_2.1.x86_64.rpm
  • php-bcmath-5.1.6-20.el5_2.1.x86_64.rpm
  • php-soap-5.1.6-20.el5_2.1.s390x.rpm
  • php-xml-5.1.6-20.el5_2.1.x86_64.rpm
  • php-pdo-5.1.6-20.el5_2.1.i386.rpm
  • php-xmlrpc-5.1.6-20.el5_2.1.i386.rpm
  • php-snmp-5.1.6-20.el5_2.1.x86_64.rpm
  • php-xmlrpc-5.1.6-20.el5_2.1.ppc.rpm
  • php-pdo-5.1.6-20.el5_2.1.x86_64.rpm
  • php-common-5.1.6-20.el5_2.1.x86_64.rpm
  • php-5.1.6-20.el5_2.1.src.rpm
  • php-imap-5.1.6-20.el5_2.1.s390x.rpm
  • php-dba-5.1.6-20.el5_2.1.s390x.rpm
  • php-5.1.6-20.el5_2.1.s390x.rpm
  • php-snmp-5.1.6-20.el5_2.1.i386.rpm
  • php-common-5.1.6-20.el5_2.1.s390x.rpm
  • php-ldap-5.1.6-20.el5_2.1.ppc.rpm
  • php-bcmath-5.1.6-20.el5_2.1.i386.rpm
  • php-dba-5.1.6-20.el5_2.1.x86_64.rpm
  • php-bcmath-5.1.6-20.el5_2.1.s390x.rpm
  • php-cli-5.1.6-20.el5_2.1.ia64.rpm
  • php-devel-5.1.6-20.el5_2.1.s390x.rpm
  • php-xml-5.1.6-20.el5_2.1.ia64.rpm
  • php-imap-5.1.6-20.el5_2.1.ppc.rpm
  • php-common-5.1.6-20.el5_2.1.ia64.rpm
  • php-ncurses-5.1.6-20.el5_2.1.ia64.rpm
  • php-mysql-5.1.6-20.el5_2.1.x86_64.rpm
  • php-mbstring-5.1.6-20.el5_2.1.ppc.rpm
  • php-5.1.6-20.el5_2.1.ppc.rpm
  • php-common-5.1.6-20.el5_2.1.ppc.rpm
  • php-ncurses-5.1.6-20.el5_2.1.i386.rpm
  • php-ncurses-5.1.6-20.el5_2.1.x86_64.rpm
  • php-xmlrpc-5.1.6-20.el5_2.1.x86_64.rpm
  • php-soap-5.1.6-20.el5_2.1.i386.rpm

Fixes

CVEs

References


Additional information