Skip to navigation

Security Advisory php security update

Advisory: RHSA-2004:687-05
Type: Security Advisory
Severity: Important
Issued on: 2004-12-21
Last updated on: 2004-12-21
Affected Products: Red Hat Desktop (v. 3)
Red Hat Enterprise Linux AS (v. 3)
Red Hat Enterprise Linux ES (v. 3)
Red Hat Enterprise Linux WS (v. 3)
CVEs (cve.mitre.org): CVE-2004-0958
CVE-2004-0959
CVE-2004-1018
CVE-2004-1019
CVE-2004-1065

Details

Updated php packages that fix various security issues and bugs are now
available for Red Hat Enterprise Linux 3.

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

Flaws including possible information disclosure, double free, and negative
reference index array underflow were found in the deserialization code of
PHP. PHP applications may use the unserialize function on untrusted user
data, which could allow a remote attacker to gain access to memory or
potentially execute arbitrary code. The Common Vulnerabilities and
Exposures project (cve.mitre.org) has assigned the name CAN-2004-1019 to
this issue.

A flaw in the exif extension of PHP was found which lead to a stack
overflow. An attacker could create a carefully crafted image file in such
a way that if parsed by a PHP script using the exif extension it could
cause a crash or potentially execute arbitrary code. The Common
Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name
CAN-2004-1065 to this issue.

An information disclosure bug was discovered in the parsing of "GPC"
variables in PHP (query strings or cookies, and POST form data). If
particular scripts used the values of the GPC variables, portions of the
memory space of an httpd child process could be revealed to the client.
The Common Vulnerabilities and Exposures project (cve.mitre.org) has
assigned the name CAN-2004-0958 to this issue.

A file access bug was discovered in the parsing of "multipart/form-data"
forms, used by PHP scripts which allow file uploads. In particular
configurations, some scripts could allow a malicious client to upload files
to an arbitrary directory where the "apache" user has write access. The
Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned
the name CAN-2004-0959 to this issue.

Flaws were found in shmop_write, pack, and unpack PHP functions. These
functions are not normally passed user supplied data, so would require a
malicious PHP script to be exploited. The Common Vulnerabilities and
Exposures project (cve.mitre.org) has assigned the name CAN-2004-1018 to
this issue.

Various issues were discovered in the use of the "select" system call in
PHP, which could be triggered if PHP is used in an Apache configuration
where the number of open files (such as virtual host log files) exceeds the
default process limit of 1024. Workarounds are now included for some of
these issues.

The "phpize" shell script included in PHP can be used to build third-party
extension modules. A build issue was discovered in the "phpize" script on
some 64-bit platforms which prevented correct operation.

The "pcntl" extension module is now enabled in the command line PHP
interpreter, /usr/bin/php. This module enables process control features
such as "fork" and "kill" from PHP scripts.

Users of PHP should upgrade to these updated packages, which contain fixes
for these issues.


Solution

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

To update all RPMs for your particular architecture, run:

rpm -Fvh [filenames]

where [filenames] is a list of the RPMs you wish to upgrade. Only those
RPMs which are currently installed will be updated. Those RPMs which are
not installed but included in the list will not be updated. Note that you
can also use wildcards (*.rpm) if your current directory *only* contains the
desired RPMs.

Please note that this update is also available via Red Hat Network. Many
people find this an easier way to apply updates. To use Red Hat Network,
launch the Red Hat Update Agent with the following command:

up2date

This will start an interactive process that will result in the appropriate
RPMs being upgraded on your system.

If up2date fails to connect to Red Hat Network due to SSL
Certificate Errors, you need to install a version of the
up2date client with an updated certificate. The latest version of
up2date is available from the Red Hat FTP site and may also be
downloaded directly from the RHN website:

https://rhn.redhat.com/help/latest-up2date.pxt

Updated packages

Red Hat Desktop (v. 3)

IA-32:
php-4.3.2-19.ent.i386.rpm
File outdated by:  RHSA-2010:0040
    MD5: 7596bef3a34d0e536bf7d928d4e4fe72
php-devel-4.3.2-19.ent.i386.rpm
File outdated by:  RHSA-2010:0040
    MD5: 7d1621e13be8c768862c7046bcdf6091
php-imap-4.3.2-19.ent.i386.rpm
File outdated by:  RHSA-2010:0040
    MD5: daaa408d09844d147921c64cadef6ef6
php-ldap-4.3.2-19.ent.i386.rpm
File outdated by:  RHSA-2010:0040
    MD5: c2cde45149b04ff57cdb992ee238b557
php-mysql-4.3.2-19.ent.i386.rpm
File outdated by:  RHSA-2010:0040
    MD5: ebf63e54f3db6155fc3849002d6e885b
php-odbc-4.3.2-19.ent.i386.rpm
File outdated by:  RHSA-2010:0040
    MD5: c21f48ea272bdd76d3c3029d20aace8e
php-pgsql-4.3.2-19.ent.i386.rpm
File outdated by:  RHSA-2010:0040
    MD5: d9194ed4e9a76384769f4b4912088581
 
x86_64:
php-4.3.2-19.ent.x86_64.rpm
File outdated by:  RHSA-2010:0040
    MD5: 9eed133c39c848b5b9cf30bd0f0e41a3
php-devel-4.3.2-19.ent.x86_64.rpm
File outdated by:  RHSA-2010:0040
    MD5: 31b3d22d09049c688e05c19b91a5343d
php-imap-4.3.2-19.ent.x86_64.rpm
File outdated by:  RHSA-2010:0040
    MD5: 57910471f09de36603c2b6b89bf9a079
php-ldap-4.3.2-19.ent.x86_64.rpm
File outdated by:  RHSA-2010:0040
    MD5: 851b437d1adbdcf8a7e4f9dd0f47ccbd
php-mysql-4.3.2-19.ent.x86_64.rpm
File outdated by:  RHSA-2010:0040
    MD5: a4db3d9d4572d8c9fd3cf88d370d9196
php-odbc-4.3.2-19.ent.x86_64.rpm
File outdated by:  RHSA-2010:0040
    MD5: a7aef84e839ee4339e8307256a1da32d
php-pgsql-4.3.2-19.ent.x86_64.rpm
File outdated by:  RHSA-2010:0040
    MD5: 11e8e9e2d0cc9a2fba2b6c01787a8752
 
Red Hat Enterprise Linux AS (v. 3)

IA-32:
php-4.3.2-19.ent.i386.rpm
File outdated by:  RHSA-2010:0040
    MD5: 7596bef3a34d0e536bf7d928d4e4fe72
php-devel-4.3.2-19.ent.i386.rpm
File outdated by:  RHSA-2010:0040
    MD5: 7d1621e13be8c768862c7046bcdf6091
php-imap-4.3.2-19.ent.i386.rpm
File outdated by:  RHSA-2010:0040
    MD5: daaa408d09844d147921c64cadef6ef6
php-ldap-4.3.2-19.ent.i386.rpm
File outdated by:  RHSA-2010:0040
    MD5: c2cde45149b04ff57cdb992ee238b557
php-mysql-4.3.2-19.ent.i386.rpm
File outdated by:  RHSA-2010:0040
    MD5: ebf63e54f3db6155fc3849002d6e885b
php-odbc-4.3.2-19.ent.i386.rpm
File outdated by:  RHSA-2010:0040
    MD5: c21f48ea272bdd76d3c3029d20aace8e
php-pgsql-4.3.2-19.ent.i386.rpm
File outdated by:  RHSA-2010:0040
    MD5: d9194ed4e9a76384769f4b4912088581
 
IA-64:
php-4.3.2-19.ent.ia64.rpm
File outdated by:  RHSA-2010:0040
    MD5: 1bc4b9a171005daa9949aa7ce6867819
php-devel-4.3.2-19.ent.ia64.rpm
File outdated by:  RHSA-2010:0040
    MD5: fae7fb7a8293664d432045261317afa4
php-imap-4.3.2-19.ent.ia64.rpm
File outdated by:  RHSA-2010:0040
    MD5: 6cb195cabe3d74e815991f5a7e3e8ea1
php-ldap-4.3.2-19.ent.ia64.rpm
File outdated by:  RHSA-2010:0040
    MD5: 3f3a407d55367e36d8ebe092c4350e13
php-mysql-4.3.2-19.ent.ia64.rpm
File outdated by:  RHSA-2010:0040
    MD5: 308e1ea8b4e0719ee72040238b70cdbf
php-odbc-4.3.2-19.ent.ia64.rpm
File outdated by:  RHSA-2010:0040
    MD5: eb92dbb86507aced5740249b9e5b68a7
php-pgsql-4.3.2-19.ent.ia64.rpm
File outdated by:  RHSA-2010:0040
    MD5: 05e2049de5a83c0623948393e456e40c
 
PPC:
php-4.3.2-19.ent.ppc.rpm
File outdated by:  RHSA-2010:0040
    MD5: 0d40de309a5aa22aa60149deb559c53f
php-devel-4.3.2-19.ent.ppc.rpm
File outdated by:  RHSA-2010:0040
    MD5: 054f2b454915f3047e767d5252b6aec7
php-imap-4.3.2-19.ent.ppc.rpm
File outdated by:  RHSA-2010:0040
    MD5: 26721fd754dfad6e073fccc547658f65
php-ldap-4.3.2-19.ent.ppc.rpm
File outdated by:  RHSA-2010:0040
    MD5: 623869a31a37e12b272540ddf43f861e
php-mysql-4.3.2-19.ent.ppc.rpm
File outdated by:  RHSA-2010:0040
    MD5: c33a16d7156099928a6dea43f8c061df
php-odbc-4.3.2-19.ent.ppc.rpm
File outdated by:  RHSA-2010:0040
    MD5: 9ede40b3ff4b81e12a0cb40716f34be2
php-pgsql-4.3.2-19.ent.ppc.rpm
File outdated by:  RHSA-2010:0040
    MD5: a6478adc86f7db4dc024882e87867f8f
 
s390:
php-4.3.2-19.ent.s390.rpm
File outdated by:  RHSA-2010:0040
    MD5: 0744c5e1769500c2b1424d7209706ead
php-devel-4.3.2-19.ent.s390.rpm
File outdated by:  RHSA-2010:0040
    MD5: 72908159538cda4b990d192e6ca01b1f
php-imap-4.3.2-19.ent.s390.rpm
File outdated by:  RHSA-2010:0040
    MD5: 2857829a93acce499f818e07b76e0469
php-ldap-4.3.2-19.ent.s390.rpm
File outdated by:  RHSA-2010:0040
    MD5: c77376b41640c71be9357f556412976d
php-mysql-4.3.2-19.ent.s390.rpm
File outdated by:  RHSA-2010:0040
    MD5: 05b74e8ee2cae91805522699cf9d33e7
php-odbc-4.3.2-19.ent.s390.rpm
File outdated by:  RHSA-2010:0040
    MD5: b1d9f1d36729dc1363553520a7890c1f
php-pgsql-4.3.2-19.ent.s390.rpm
File outdated by:  RHSA-2010:0040
    MD5: 41f1fc3eeaf2571c2db5914f2d6e8f00
 
s390x:
php-4.3.2-19.ent.s390x.rpm
File outdated by:  RHSA-2010:0040
    MD5: f178c09d8f93b6c7262e199dab05d784
php-devel-4.3.2-19.ent.s390x.rpm
File outdated by:  RHSA-2010:0040
    MD5: a505a1cdae83a43a6df6ec4d390bcb80
php-imap-4.3.2-19.ent.s390x.rpm
File outdated by:  RHSA-2010:0040
    MD5: a3a5bd4ab76905d9cae865639913af5b
php-ldap-4.3.2-19.ent.s390x.rpm
File outdated by:  RHSA-2010:0040
    MD5: c9bfb9232175774fb5e5ffee4182d7a2
php-mysql-4.3.2-19.ent.s390x.rpm
File outdated by:  RHSA-2010:0040
    MD5: dec4437d24529ace7f71c4cae547443d
php-odbc-4.3.2-19.ent.s390x.rpm
File outdated by:  RHSA-2010:0040
    MD5: 6d151320f28aea5ce22e2ab21f9bbb3d
php-pgsql-4.3.2-19.ent.s390x.rpm
File outdated by:  RHSA-2010:0040
    MD5: 806f436ec7d4bed6ef7f2347b3d22cd8
 
x86_64:
php-4.3.2-19.ent.x86_64.rpm
File outdated by:  RHSA-2010:0040
    MD5: 9eed133c39c848b5b9cf30bd0f0e41a3
php-devel-4.3.2-19.ent.x86_64.rpm
File outdated by:  RHSA-2010:0040
    MD5: 31b3d22d09049c688e05c19b91a5343d
php-imap-4.3.2-19.ent.x86_64.rpm
File outdated by:  RHSA-2010:0040
    MD5: 57910471f09de36603c2b6b89bf9a079
php-ldap-4.3.2-19.ent.x86_64.rpm
File outdated by:  RHSA-2010:0040
    MD5: 851b437d1adbdcf8a7e4f9dd0f47ccbd
php-mysql-4.3.2-19.ent.x86_64.rpm
File outdated by:  RHSA-2010:0040
    MD5: a4db3d9d4572d8c9fd3cf88d370d9196
php-odbc-4.3.2-19.ent.x86_64.rpm
File outdated by:  RHSA-2010:0040
    MD5: a7aef84e839ee4339e8307256a1da32d
php-pgsql-4.3.2-19.ent.x86_64.rpm
File outdated by:  RHSA-2010:0040
    MD5: 11e8e9e2d0cc9a2fba2b6c01787a8752
 
Red Hat Enterprise Linux ES (v. 3)

IA-32:
php-4.3.2-19.ent.i386.rpm
File outdated by:  RHSA-2010:0040
    MD5: 7596bef3a34d0e536bf7d928d4e4fe72
php-devel-4.3.2-19.ent.i386.rpm
File outdated by:  RHSA-2010:0040
    MD5: 7d1621e13be8c768862c7046bcdf6091
php-imap-4.3.2-19.ent.i386.rpm
File outdated by:  RHSA-2010:0040
    MD5: daaa408d09844d147921c64cadef6ef6
php-ldap-4.3.2-19.ent.i386.rpm
File outdated by:  RHSA-2010:0040
    MD5: c2cde45149b04ff57cdb992ee238b557
php-mysql-4.3.2-19.ent.i386.rpm
File outdated by:  RHSA-2010:0040
    MD5: ebf63e54f3db6155fc3849002d6e885b
php-odbc-4.3.2-19.ent.i386.rpm
File outdated by:  RHSA-2010:0040
    MD5: c21f48ea272bdd76d3c3029d20aace8e
php-pgsql-4.3.2-19.ent.i386.rpm
File outdated by:  RHSA-2010:0040
    MD5: d9194ed4e9a76384769f4b4912088581
 
IA-64:
php-4.3.2-19.ent.ia64.rpm
File outdated by:  RHSA-2010:0040
    MD5: 1bc4b9a171005daa9949aa7ce6867819
php-devel-4.3.2-19.ent.ia64.rpm
File outdated by:  RHSA-2010:0040
    MD5: fae7fb7a8293664d432045261317afa4
php-imap-4.3.2-19.ent.ia64.rpm
File outdated by:  RHSA-2010:0040
    MD5: 6cb195cabe3d74e815991f5a7e3e8ea1
php-ldap-4.3.2-19.ent.ia64.rpm
File outdated by:  RHSA-2010:0040
    MD5: 3f3a407d55367e36d8ebe092c4350e13
php-mysql-4.3.2-19.ent.ia64.rpm
File outdated by:  RHSA-2010:0040
    MD5: 308e1ea8b4e0719ee72040238b70cdbf
php-odbc-4.3.2-19.ent.ia64.rpm
File outdated by:  RHSA-2010:0040
    MD5: eb92dbb86507aced5740249b9e5b68a7
php-pgsql-4.3.2-19.ent.ia64.rpm
File outdated by:  RHSA-2010:0040
    MD5: 05e2049de5a83c0623948393e456e40c
 
x86_64:
php-4.3.2-19.ent.x86_64.rpm
File outdated by:  RHSA-2010:0040
    MD5: 9eed133c39c848b5b9cf30bd0f0e41a3
php-devel-4.3.2-19.ent.x86_64.rpm
File outdated by:  RHSA-2010:0040
    MD5: 31b3d22d09049c688e05c19b91a5343d
php-imap-4.3.2-19.ent.x86_64.rpm
File outdated by:  RHSA-2010:0040
    MD5: 57910471f09de36603c2b6b89bf9a079
php-ldap-4.3.2-19.ent.x86_64.rpm
File outdated by:  RHSA-2010:0040
    MD5: 851b437d1adbdcf8a7e4f9dd0f47ccbd
php-mysql-4.3.2-19.ent.x86_64.rpm
File outdated by:  RHSA-2010:0040
    MD5: a4db3d9d4572d8c9fd3cf88d370d9196
php-odbc-4.3.2-19.ent.x86_64.rpm
File outdated by:  RHSA-2010:0040
    MD5: a7aef84e839ee4339e8307256a1da32d
php-pgsql-4.3.2-19.ent.x86_64.rpm
File outdated by:  RHSA-2010:0040
    MD5: 11e8e9e2d0cc9a2fba2b6c01787a8752
 
Red Hat Enterprise Linux WS (v. 3)

IA-32:
php-4.3.2-19.ent.i386.rpm
File outdated by:  RHSA-2010:0040
    MD5: 7596bef3a34d0e536bf7d928d4e4fe72
php-devel-4.3.2-19.ent.i386.rpm
File outdated by:  RHSA-2010:0040
    MD5: 7d1621e13be8c768862c7046bcdf6091
php-imap-4.3.2-19.ent.i386.rpm
File outdated by:  RHSA-2010:0040
    MD5: daaa408d09844d147921c64cadef6ef6
php-ldap-4.3.2-19.ent.i386.rpm
File outdated by:  RHSA-2010:0040
    MD5: c2cde45149b04ff57cdb992ee238b557
php-mysql-4.3.2-19.ent.i386.rpm
File outdated by:  RHSA-2010:0040
    MD5: ebf63e54f3db6155fc3849002d6e885b
php-odbc-4.3.2-19.ent.i386.rpm
File outdated by:  RHSA-2010:0040
    MD5: c21f48ea272bdd76d3c3029d20aace8e
php-pgsql-4.3.2-19.ent.i386.rpm
File outdated by:  RHSA-2010:0040
    MD5: d9194ed4e9a76384769f4b4912088581
 
IA-64:
php-4.3.2-19.ent.ia64.rpm
File outdated by:  RHSA-2010:0040
    MD5: 1bc4b9a171005daa9949aa7ce6867819
php-devel-4.3.2-19.ent.ia64.rpm
File outdated by:  RHSA-2010:0040
    MD5: fae7fb7a8293664d432045261317afa4
php-imap-4.3.2-19.ent.ia64.rpm
File outdated by:  RHSA-2010:0040
    MD5: 6cb195cabe3d74e815991f5a7e3e8ea1
php-ldap-4.3.2-19.ent.ia64.rpm
File outdated by:  RHSA-2010:0040
    MD5: 3f3a407d55367e36d8ebe092c4350e13
php-mysql-4.3.2-19.ent.ia64.rpm
File outdated by:  RHSA-2010:0040
    MD5: 308e1ea8b4e0719ee72040238b70cdbf
php-odbc-4.3.2-19.ent.ia64.rpm
File outdated by:  RHSA-2010:0040
    MD5: eb92dbb86507aced5740249b9e5b68a7
php-pgsql-4.3.2-19.ent.ia64.rpm
File outdated by:  RHSA-2010:0040
    MD5: 05e2049de5a83c0623948393e456e40c
 
x86_64:
php-4.3.2-19.ent.x86_64.rpm
File outdated by:  RHSA-2010:0040
    MD5: 9eed133c39c848b5b9cf30bd0f0e41a3
php-devel-4.3.2-19.ent.x86_64.rpm
File outdated by:  RHSA-2010:0040
    MD5: 31b3d22d09049c688e05c19b91a5343d
php-imap-4.3.2-19.ent.x86_64.rpm
File outdated by:  RHSA-2010:0040
    MD5: 57910471f09de36603c2b6b89bf9a079
php-ldap-4.3.2-19.ent.x86_64.rpm
File outdated by:  RHSA-2010:0040
    MD5: 851b437d1adbdcf8a7e4f9dd0f47ccbd
php-mysql-4.3.2-19.ent.x86_64.rpm
File outdated by:  RHSA-2010:0040
    MD5: a4db3d9d4572d8c9fd3cf88d370d9196
php-odbc-4.3.2-19.ent.x86_64.rpm
File outdated by:  RHSA-2010:0040
    MD5: a7aef84e839ee4339e8307256a1da32d
php-pgsql-4.3.2-19.ent.x86_64.rpm
File outdated by:  RHSA-2010:0040
    MD5: 11e8e9e2d0cc9a2fba2b6c01787a8752
 

Bugs fixed (see bugzilla for more information)

131412 - Include process control extension, pcntl
131562 - phpize is broken on x86_64
132003 - fopen doesn't work across remote connections while under Apache
134971 - CAN-2004-0958 PHP variable parsing
134975 - CAN-2004-0959 PHP arbitrary file creation
141132 - CAN-2004-1019 information disclosure issues
142056 - CAN-2004-1065 ext/exif/exif.c - exif_read_data() overflow on long sectionname


References


Keywords

PHP


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

The Red Hat security contact is secalert@redhat.com. More contact details at http://www.redhat.com/security/team/contact/