Red Hat: php security issues and bugs fix
Summary
Summary
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 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://access.redhat.com 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: 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: 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: 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: 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
Solution
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
Package List
Topic
Topic
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
Bugs Fixed