Red Hat 8846 Published by

Updated php packages are available for Red Hat enterprise Linux 3

----------------------------------------------------------------------
Red Hat Security Advisory

Synopsis: Updated php packages fix security issues and bugs
Advisory ID: RHSA-2004:687-01
Advisory URL: https://rhn.redhat.com/errata/RHSA-2004-687.html
Issue date: 2004-12-21
Updated on: 2004-12-21
Product: Red Hat Enterprise Linux
Keywords: PHP
Obsoletes: RHBA-2004:272
CVE Names: CAN-2004-0958 CAN-2004-0959 CAN-2004-1018 CAN-2004-1019 CAN-2004-1065
----------------------------------------------------------------------

1. Summary:

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

2. Relevant releases/architectures:

Red Hat Enterprise Linux AS version 3 - i386, ia64, ppc, s390, s390x, x86_64
Red Hat Desktop version 3 - i386, x86_64
Red Hat Enterprise Linux ES version 3 - i386, ia64, x86_64
Red Hat Enterprise Linux WS version 3 - i386, ia64, x86_64



3. Problem description:

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.

4. 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

5. Bug IDs fixed (http://bugzilla.redhat.com/):

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

6. RPMs required:

Red Hat Enterprise Linux AS version 3:

SRPMS:
ftp://updates.redhat.com/enterprise/3AS/en/os/SRPMS/php-4.3.2-19.ent.src.rpm
818b43822465cab8f3b8b937883e83e8 php-4.3.2-19.ent.src.rpm

i386:
7596bef3a34d0e536bf7d928d4e4fe72 php-4.3.2-19.ent.i386.rpm
7d1621e13be8c768862c7046bcdf6091 php-devel-4.3.2-19.ent.i386.rpm
daaa408d09844d147921c64cadef6ef6 php-imap-4.3.2-19.ent.i386.rpm
c2cde45149b04ff57cdb992ee238b557 php-ldap-4.3.2-19.ent.i386.rpm
ebf63e54f3db6155fc3849002d6e885b php-mysql-4.3.2-19.ent.i386.rpm
c21f48ea272bdd76d3c3029d20aace8e php-odbc-4.3.2-19.ent.i386.rpm
d9194ed4e9a76384769f4b4912088581 php-pgsql-4.3.2-19.ent.i386.rpm

ia64:
1bc4b9a171005daa9949aa7ce6867819 php-4.3.2-19.ent.ia64.rpm
fae7fb7a8293664d432045261317afa4 php-devel-4.3.2-19.ent.ia64.rpm
6cb195cabe3d74e815991f5a7e3e8ea1 php-imap-4.3.2-19.ent.ia64.rpm
3f3a407d55367e36d8ebe092c4350e13 php-ldap-4.3.2-19.ent.ia64.rpm
308e1ea8b4e0719ee72040238b70cdbf php-mysql-4.3.2-19.ent.ia64.rpm
eb92dbb86507aced5740249b9e5b68a7 php-odbc-4.3.2-19.ent.ia64.rpm
05e2049de5a83c0623948393e456e40c php-pgsql-4.3.2-19.ent.ia64.rpm

ppc:
0d40de309a5aa22aa60149deb559c53f php-4.3.2-19.ent.ppc.rpm
054f2b454915f3047e767d5252b6aec7 php-devel-4.3.2-19.ent.ppc.rpm
26721fd754dfad6e073fccc547658f65 php-imap-4.3.2-19.ent.ppc.rpm
623869a31a37e12b272540ddf43f861e php-ldap-4.3.2-19.ent.ppc.rpm
c33a16d7156099928a6dea43f8c061df php-mysql-4.3.2-19.ent.ppc.rpm
9ede40b3ff4b81e12a0cb40716f34be2 php-odbc-4.3.2-19.ent.ppc.rpm
a6478adc86f7db4dc024882e87867f8f php-pgsql-4.3.2-19.ent.ppc.rpm

s390:
0744c5e1769500c2b1424d7209706ead php-4.3.2-19.ent.s390.rpm
72908159538cda4b990d192e6ca01b1f php-devel-4.3.2-19.ent.s390.rpm
2857829a93acce499f818e07b76e0469 php-imap-4.3.2-19.ent.s390.rpm
c77376b41640c71be9357f556412976d php-ldap-4.3.2-19.ent.s390.rpm
05b74e8ee2cae91805522699cf9d33e7 php-mysql-4.3.2-19.ent.s390.rpm
b1d9f1d36729dc1363553520a7890c1f php-odbc-4.3.2-19.ent.s390.rpm
41f1fc3eeaf2571c2db5914f2d6e8f00 php-pgsql-4.3.2-19.ent.s390.rpm

s390x:
f178c09d8f93b6c7262e199dab05d784 php-4.3.2-19.ent.s390x.rpm
a505a1cdae83a43a6df6ec4d390bcb80 php-devel-4.3.2-19.ent.s390x.rpm
a3a5bd4ab76905d9cae865639913af5b php-imap-4.3.2-19.ent.s390x.rpm
c9bfb9232175774fb5e5ffee4182d7a2 php-ldap-4.3.2-19.ent.s390x.rpm
dec4437d24529ace7f71c4cae547443d php-mysql-4.3.2-19.ent.s390x.rpm
6d151320f28aea5ce22e2ab21f9bbb3d php-odbc-4.3.2-19.ent.s390x.rpm
806f436ec7d4bed6ef7f2347b3d22cd8 php-pgsql-4.3.2-19.ent.s390x.rpm

x86_64:
9eed133c39c848b5b9cf30bd0f0e41a3 php-4.3.2-19.ent.x86_64.rpm
31b3d22d09049c688e05c19b91a5343d php-devel-4.3.2-19.ent.x86_64.rpm
57910471f09de36603c2b6b89bf9a079 php-imap-4.3.2-19.ent.x86_64.rpm
851b437d1adbdcf8a7e4f9dd0f47ccbd php-ldap-4.3.2-19.ent.x86_64.rpm
a4db3d9d4572d8c9fd3cf88d370d9196 php-mysql-4.3.2-19.ent.x86_64.rpm
a7aef84e839ee4339e8307256a1da32d php-odbc-4.3.2-19.ent.x86_64.rpm
11e8e9e2d0cc9a2fba2b6c01787a8752 php-pgsql-4.3.2-19.ent.x86_64.rpm

Red Hat Desktop version 3:

SRPMS:
ftp://updates.redhat.com/enterprise/3desktop/en/os/SRPMS/php-4.3.2-19.ent.src.rpm
818b43822465cab8f3b8b937883e83e8 php-4.3.2-19.ent.src.rpm

i386:
7596bef3a34d0e536bf7d928d4e4fe72 php-4.3.2-19.ent.i386.rpm
7d1621e13be8c768862c7046bcdf6091 php-devel-4.3.2-19.ent.i386.rpm
daaa408d09844d147921c64cadef6ef6 php-imap-4.3.2-19.ent.i386.rpm
c2cde45149b04ff57cdb992ee238b557 php-ldap-4.3.2-19.ent.i386.rpm
ebf63e54f3db6155fc3849002d6e885b php-mysql-4.3.2-19.ent.i386.rpm
c21f48ea272bdd76d3c3029d20aace8e php-odbc-4.3.2-19.ent.i386.rpm
d9194ed4e9a76384769f4b4912088581 php-pgsql-4.3.2-19.ent.i386.rpm

x86_64:
9eed133c39c848b5b9cf30bd0f0e41a3 php-4.3.2-19.ent.x86_64.rpm
31b3d22d09049c688e05c19b91a5343d php-devel-4.3.2-19.ent.x86_64.rpm
57910471f09de36603c2b6b89bf9a079 php-imap-4.3.2-19.ent.x86_64.rpm
851b437d1adbdcf8a7e4f9dd0f47ccbd php-ldap-4.3.2-19.ent.x86_64.rpm
a4db3d9d4572d8c9fd3cf88d370d9196 php-mysql-4.3.2-19.ent.x86_64.rpm
a7aef84e839ee4339e8307256a1da32d php-odbc-4.3.2-19.ent.x86_64.rpm
11e8e9e2d0cc9a2fba2b6c01787a8752 php-pgsql-4.3.2-19.ent.x86_64.rpm

Red Hat Enterprise Linux ES version 3:

SRPMS:
ftp://updates.redhat.com/enterprise/3ES/en/os/SRPMS/php-4.3.2-19.ent.src.rpm
818b43822465cab8f3b8b937883e83e8 php-4.3.2-19.ent.src.rpm

i386:
7596bef3a34d0e536bf7d928d4e4fe72 php-4.3.2-19.ent.i386.rpm
7d1621e13be8c768862c7046bcdf6091 php-devel-4.3.2-19.ent.i386.rpm
daaa408d09844d147921c64cadef6ef6 php-imap-4.3.2-19.ent.i386.rpm
c2cde45149b04ff57cdb992ee238b557 php-ldap-4.3.2-19.ent.i386.rpm
ebf63e54f3db6155fc3849002d6e885b php-mysql-4.3.2-19.ent.i386.rpm
c21f48ea272bdd76d3c3029d20aace8e php-odbc-4.3.2-19.ent.i386.rpm
d9194ed4e9a76384769f4b4912088581 php-pgsql-4.3.2-19.ent.i386.rpm

ia64:
1bc4b9a171005daa9949aa7ce6867819 php-4.3.2-19.ent.ia64.rpm
fae7fb7a8293664d432045261317afa4 php-devel-4.3.2-19.ent.ia64.rpm
6cb195cabe3d74e815991f5a7e3e8ea1 php-imap-4.3.2-19.ent.ia64.rpm
3f3a407d55367e36d8ebe092c4350e13 php-ldap-4.3.2-19.ent.ia64.rpm
308e1ea8b4e0719ee72040238b70cdbf php-mysql-4.3.2-19.ent.ia64.rpm
eb92dbb86507aced5740249b9e5b68a7 php-odbc-4.3.2-19.ent.ia64.rpm
05e2049de5a83c0623948393e456e40c php-pgsql-4.3.2-19.ent.ia64.rpm

x86_64:
9eed133c39c848b5b9cf30bd0f0e41a3 php-4.3.2-19.ent.x86_64.rpm
31b3d22d09049c688e05c19b91a5343d php-devel-4.3.2-19.ent.x86_64.rpm
57910471f09de36603c2b6b89bf9a079 php-imap-4.3.2-19.ent.x86_64.rpm
851b437d1adbdcf8a7e4f9dd0f47ccbd php-ldap-4.3.2-19.ent.x86_64.rpm
a4db3d9d4572d8c9fd3cf88d370d9196 php-mysql-4.3.2-19.ent.x86_64.rpm
a7aef84e839ee4339e8307256a1da32d php-odbc-4.3.2-19.ent.x86_64.rpm
11e8e9e2d0cc9a2fba2b6c01787a8752 php-pgsql-4.3.2-19.ent.x86_64.rpm

Red Hat Enterprise Linux WS version 3:

SRPMS:
ftp://updates.redhat.com/enterprise/3WS/en/os/SRPMS/php-4.3.2-19.ent.src.rpm
818b43822465cab8f3b8b937883e83e8 php-4.3.2-19.ent.src.rpm

i386:
7596bef3a34d0e536bf7d928d4e4fe72 php-4.3.2-19.ent.i386.rpm
7d1621e13be8c768862c7046bcdf6091 php-devel-4.3.2-19.ent.i386.rpm
daaa408d09844d147921c64cadef6ef6 php-imap-4.3.2-19.ent.i386.rpm
c2cde45149b04ff57cdb992ee238b557 php-ldap-4.3.2-19.ent.i386.rpm
ebf63e54f3db6155fc3849002d6e885b php-mysql-4.3.2-19.ent.i386.rpm
c21f48ea272bdd76d3c3029d20aace8e php-odbc-4.3.2-19.ent.i386.rpm
d9194ed4e9a76384769f4b4912088581 php-pgsql-4.3.2-19.ent.i386.rpm

ia64:
1bc4b9a171005daa9949aa7ce6867819 php-4.3.2-19.ent.ia64.rpm
fae7fb7a8293664d432045261317afa4 php-devel-4.3.2-19.ent.ia64.rpm
6cb195cabe3d74e815991f5a7e3e8ea1 php-imap-4.3.2-19.ent.ia64.rpm
3f3a407d55367e36d8ebe092c4350e13 php-ldap-4.3.2-19.ent.ia64.rpm
308e1ea8b4e0719ee72040238b70cdbf php-mysql-4.3.2-19.ent.ia64.rpm
eb92dbb86507aced5740249b9e5b68a7 php-odbc-4.3.2-19.ent.ia64.rpm
05e2049de5a83c0623948393e456e40c php-pgsql-4.3.2-19.ent.ia64.rpm

x86_64:
9eed133c39c848b5b9cf30bd0f0e41a3 php-4.3.2-19.ent.x86_64.rpm
31b3d22d09049c688e05c19b91a5343d php-devel-4.3.2-19.ent.x86_64.rpm
57910471f09de36603c2b6b89bf9a079 php-imap-4.3.2-19.ent.x86_64.rpm
851b437d1adbdcf8a7e4f9dd0f47ccbd php-ldap-4.3.2-19.ent.x86_64.rpm
a4db3d9d4572d8c9fd3cf88d370d9196 php-mysql-4.3.2-19.ent.x86_64.rpm
a7aef84e839ee4339e8307256a1da32d php-odbc-4.3.2-19.ent.x86_64.rpm
11e8e9e2d0cc9a2fba2b6c01787a8752 php-pgsql-4.3.2-19.ent.x86_64.rpm

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

7. References:

http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0958
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0959
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-1018
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-1019
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-1065

8. Contact:

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

Copyright 2004 Red Hat, Inc.