PHP ZVAL reference counter code execution
| php-zval-code-execution (32796) |
Description:
PHP could allow a remote attacker to execute arbitrary code on the system, caused by an integer overflow in the ZVAL reference counter when handling strings from the unserialize function. By sending a specially-crafted request with an overly long string, a remote attacker could exploit this vulnerability to execute arbitrary code on the system or cause the application using the unserialize function to crash.
Platforms Affected:
- Debian, Debian Linux 3.1
- Debian, Debian Linux 4.0
- Gentoo, Linux
- HP, Internet Express 6.6
- HP, Secure Web Server for Tru64 6.6.4
- MandrakeSoft, Mandrake Linux Corporate Server 3.0
- MandrakeSoft, Mandrake Linux Corporate Server 3.0 X86_64
- MandrakeSoft, Mandrake Linux Corporate Server 4.0
- MandrakeSoft, Mandrake Linux Corporate Server 4.0 X86_64
- MandrakeSoft, Mandrake Multi Network Firewall 2.0
- PHP, PHP 4.0 RC2
- PHP, PHP 4.0 RC1
- PHP, PHP 4.0 Beta4
- PHP, PHP 4.0 Beta3
- PHP, PHP 4.0 Beta2
- PHP, PHP 4.0 Beta1
- PHP, PHP 4.0 Beta 4 Patch1
- PHP, PHP 4.0.0
- PHP, PHP 4.0.1
- PHP, PHP 4.0.2
- PHP, PHP 4.0.3
- PHP, PHP 4.0.4
- PHP, PHP 4.0.5
- PHP, PHP 4.0.6
- PHP, PHP 4.0.7
- PHP, PHP 4.1.0
- PHP, PHP 4.1.1
- PHP, PHP 4.1.2
- PHP, PHP 4.1.3
- PHP, PHP 4.2.0
- PHP, PHP 4.2.1
- PHP, PHP 4.2.2
- PHP, PHP 4.2.3
- PHP, PHP 4.2.4
- PHP, PHP 4.3.0
- PHP, PHP 4.3.1
- PHP, PHP 4.3.10
- PHP, PHP 4.3.11
- PHP, PHP 4.3.2
- PHP, PHP 4.3.3
- PHP, PHP 4.3.4
- PHP, PHP 4.3.5
- PHP, PHP 4.3.6
- PHP, PHP 4.3.7
- PHP, PHP 4.3.8
- PHP, PHP 4.3.9
- PHP, PHP 4.4.0
- PHP, PHP 4.4.1
- PHP, PHP 4.4.2
- PHP, PHP 4.4.3
- PHP, PHP 4.4.4
- RedHat, Enterprise Linux 2.1 AS
- RedHat, Enterprise Linux 2.1 ES
- RedHat, Enterprise Linux 2.1 WS
- RedHat, Enterprise Linux 3 WS
- RedHat, Enterprise Linux 3 ES
- RedHat, Enterprise Linux 3 AS
- RedHat, Enterprise Linux 3 Desktop
- RedHat, Enterprise Linux 4 ES
- RedHat, Enterprise Linux 4 WS
- RedHat, Enterprise Linux 4 AS
- RedHat, Enterprise Linux 4 Desktop
- RedHat, Linux Advanced Workstation 2.1 Itanium
- RedHat, Stronghold
- Turbolinux, Turbolinux 10 Desktop
- Turbolinux, Turbolinux 10 F...
- Turbolinux, Turbolinux 10 Server
- Turbolinux, Turbolinux 10 Server x64 Ed
- Turbolinux, Turbolinux 8 Server
- Turbolinux, Turbolinux Home
- Turbolinux, Turbolinux Multimedia
- Turbolinux, Turbolinux Personal
- Turbolinux, Turbolinux Appliance Server 1.0 Hosting Ed
- Turbolinux, Turbolinux Appliance Server 1.0 Workgroup Ed
- Turbolinux, Turbolinux Appliance Server 2.0
Remedy:
Upgrade to the latest version of PHP (4.4.5 or later), available from the PHP Web site. See References.
For Hewlett-Packard (PHP):
Refer to HPSBTU02232 SSRT071429 for patch, upgrade, or suggested workaround information. See References.
For Gentoo Linux (PHP):
Refer to GLSA 200705-19 for patch, upgrade, or suggested workaround information. See References.
For Debian GNU/Linux (PHP4):
Refer to DSA-1282-1 for patch, upgrade, or suggested workaround information. See References.
For Debian GNU/Linux (PHP5):
Refer to DSA-1283-1 for patch, upgrade, or suggested workaround information. See References.
For Turbolinux:
Refer to TLSA-2007-29 for patch, upgrade, or suggested workaround information. See References.
For other distributions:
Contact your vendor for upgrade or patch information.
Consequences:
Gain Access
References:
- HPSBTU02232 SSRT071429 , Secure Web Server for HP Tru64 UNIX Powered by Apache (SWS) or HP Internet Express for Tru64 UNIX running PHP, Remote Arbitrary Code Execution, Unauthorized Disclosure of Information, or Denial of Service (DoS) at http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&objectID=c01086137&jumpid=reg_R1002_USEN.
- MOPB-04-2007, PHP 4 unserialize() ZVAL Reference Counter Overflow at http://www.php-security.org/MOPB/MOPB-04-2007.html.
- PHP Web site, PHP: Hypertext Preprocessor at http://www.php.net/.
- ASA-2007-195: php security update (RHSA-2007-0154)
- ASA-2007-196: php security update (RHSA-2007-0155)
- BID-22765: PHP ZVAL Reference Counter Integer Overflow Vulnerability
- CVE-2007-1286: Integer overflow in PHP 4.4.4 and earlier allows remote context-dependent attackers to execute arbitrary code via a long string to the unserialize function, which triggers the overflow in the ZVAL reference counter.
- DSA-1282: php4 -- several vulnerabilities
- DSA-1283: php5 -- several vulnerabilities
- GLSA-200703-21: PHP: Multiple vulnerabilities
- GLSA-200705-19: PHP: Multiple vulnerabilities
- MDKSA-2007:087: Updated php packages fix multiple vulnerabilities
- MDKSA-2007:088: Updated php packages fix multiple vulnerabilities
- OSVDB ID: 32771: PHP unserialize() ZVAL Reference Counter Remote Overflow
- RHSA-2007-0154: Important: php security update
- RHSA-2007-0155: Important: php security update
- RHSA-2007-0163: Important: php security update for Stronghold
- SA25423: HP System Management Homepage PHP Multiple Vulnerabilities
- SA25850: HP Secure Web Server/Internet Express for Tru64 UNIX PHP Vulnerabilities
Reported:
Mar 02, 2007
The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
For corrections or additions please email xforce@iss.net
