PHP unserialize code execution
| php-unserialize-code-execution (18514) |
Description:
PHP could allow remote attacker to supply specially-crafted strings to the unserialize function to obtain sensitive information or execute arbitrary code on the system.
Platforms Affected:
- Canonical, Ubuntu 4.10
- FedoraProject, Fedora Core 2
- Gentoo, Linux
- MandrakeSoft, Mandrake Linux 10.0 AMD64
- MandrakeSoft, Mandrake Linux 10.0
- MandrakeSoft, Mandrake Linux 10.1
- MandrakeSoft, Mandrake Linux 10.1 X86_64
- MandrakeSoft, Mandrake Linux 9.2 AMD64
- MandrakeSoft, Mandrake Linux 9.2
- MandrakeSoft, Mandrake Linux Corporate Server 2.1 X86_64
- MandrakeSoft, Mandrake Linux Corporate Server 2.1
- OpenPKG, OpenPKG 2.1
- OpenPKG, OpenPKG 2.2
- OpenPKG, OpenPKG CURRENT
- 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.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 5.0.0 Beta1
- PHP, PHP 5.0.0 RC2
- PHP, PHP 5.0.0 RC1
- PHP, PHP 5.0.0 Beta4
- PHP, PHP 5.0.0
- PHP, PHP 5.0.0 Beta3
- PHP, PHP 5.0.0 RC3
- PHP, PHP 5.0.0 Beta2
- PHP, PHP 5.0.1
- PHP, PHP 5.0.2
- RedHat, Enterprise Linux 2.1 AS
- RedHat, Enterprise Linux 2.1 WS
- RedHat, Enterprise Linux 2.1 ES
- RedHat, Enterprise Linux 3 Desktop
- RedHat, Enterprise Linux 3 AS
- RedHat, Enterprise Linux 3 ES
- RedHat, Enterprise Linux 3 WS
- RedHat, Enterprise Linux 4 WS
- RedHat, Enterprise Linux 4 ES
- RedHat, Enterprise Linux 4 AS
- RedHat, Enterprise Linux 4 Desktop
- RedHat, Linux Advanced Workstation 2.1 Itanium
- RedHat, Stronghold
- SuSE, SuSE Linux 8.1
- SuSE, SuSE Linux 8.2
- SuSE, SuSE Linux 9.0
- SuSE, SuSE Linux 9.1
- SuSE, SuSE Linux 9.2
- SuSE, SuSE Linux Enterprise Server 8.0
- Turbolinux, Turbolinux 10 Desktop
- Turbolinux, Turbolinux 10 F...
- Turbolinux, Turbolinux 10 Server
- Turbolinux, Turbolinux 7 Server
- Turbolinux, Turbolinux 7 Workstation
- Turbolinux, Turbolinux 8 Server
- Turbolinux, Turbolinux 8 Workstation
- Turbolinux, Turbolinux Home
- Turbolinux, Turbolinux Appliance Server 1.0 Hosting Ed
- Turbolinux, Turbolinux Appliance Server 1.0 Workgroup Ed
Remedy:
For PHP4:
Upgrade to the latest version of PHP4 (4.3.10 or later), available from the PHP Web site. See References.
For PHP5:
Upgrade to the latest version of PHP5 (5.0.3 or later), available from the PHP Web site. See References.
For Mandrake Linux:
Upgrade to the latest php package as listed below. Refer to Mandrakesoft Security Advisory MDKSA-2004:151 . See References.
Mandrake Linux 9.2: 4.3.3-2.3.92mdk or later
Mandrake Linux 9.2/AMD64: 4.3.3-2.3.92mdk or later
Mandrake Linux 10.0: 4.3.4-4.3.100mdk or later
Mandrake Linux 10.0/AMD64: 4.3.4-4.3.100mdk or later
Mandrake Linux 10.1: 4.3.8-3.2.101mdk or later
Mandrake Linux 10.1/X86_64: 4.3.8-3.2.101mdk or later
Corporate Server 2.1: 4.2.3-4.3.C21mdk or later
Corporate Server 2.1/X86_64: .2.3-4.3.C21mdk or later
For Trustix Secure Linux:
Upgrade to the latest php package. Refer to Trustix Secure Linux Security Advisory #2004-0066 for more information. See References.
For Ubuntu Linux:
Upgrade to the latest libapache2-mod-php4, php4 or php4-cgi package (4:4.3.8-3ubuntu7.1 or later), as listed in USN-40-1 December 16, 2004 for more information. See References.
For Gentoo Linux:
Upgrade to the latest version of php (4.3.10 or later), as listed in GLSA 200412-14. See References.
For Fedora Core 2:
Upgrade to the latest php package (4.3.10-2.4 or later), as listed in Fedora Update Notification FEDORA-2004-567. See References.
For TurboLinux:
Upgrade to the latest PHP package (4.3.8-11 or later), as listed in Turbolinux Security Advisory TLSA-2005-1. See References.
For SUSE Linux:
Upgrade to latest mod_php4 or php4 package, as listed below. Refer to SUSE Security Announcement SUSE-SA:2005:002. See References.
x86:
SUSE 9.2 and 9.1: php4-4.3.8-8.3 or later
SUSE 9.0: mod_php4-4.3.3-183 or later
SUSE 8.2: mod_php4-4.3.1-174 or later
SUSE 8.1: mod_php4-4.2.2-485 or later
For Red Hat Linux:
Refer to RHSA-2005:032-06 or RHSA-2005:031-08 for patch, upgrade, or suggested workaround information. See References.
For Red Hat Linux Stronghold:
Refer to RHSA-2005:816-10 for patch, upgrade, or suggested workaround information. See References.
For OpenPKG:
Refer to OpenPKG Security Advisory OpenPKG-SA-2004.053 for patch, upgrade, or suggested workaround information. See References.
For other distributions:
Contact your vendor for upgrade or patch information.
Consequences:
Gain Access
References:
- BugTraq Mailing List, Fri Dec 17 2004 - 11:20:23 CST, phphpbb2 + php version < 4.3.10 unserialize() memory dump sql password from config.php exploit at http://archives.neohapsis.com/archives/bugtraq/2004-12/0221.html.
- BugTraq Mailing List, Wed Dec 15 2004 - 12:46:20 CST , Advisory 01/2004: Multiple vulnerabilities in PHP 4/5 at http://archives.neohapsis.com/archives/bugtraq/2004-12/0173.html.
- CIAC Information Bulletin P-067, PHP Multiple Vulnerabilities at http://www.ciac.org/ciac/bulletins/p-067.shtml.
- CIAC Information Bulletin P-116, Apple Security Update 2005-001 for Mac OS X at http://www.ciac.org/ciac/bulletins/p-116.shtml.
- Fedora Update Notification FEDORA-2004-567, Fedora: php-4.3.10-2.4 update at http://www.linuxsecurity.com/content/view/117629/102/.
- PHP Web site, PHP 4.3.10 Release Announcement at http://www.php.net/release_4_3_10.php.
- BID-11964: PHP Multiple Local And Remote Vulnerabilities
- CVE-2004-1019: The deserialization code in PHP before 4.3.10 and PHP 5.x up to 5.0.2 allows remote attackers to cause a denial of service and execute arbitrary code via untrusted data to the unserialize function that may trigger information disclosure
- GLSA-200412-14: PHP: Multiple vulnerabilities
- MDKSA-2004:151: Updated php packages fix multiple vulnerabilities
- OpenPKG-SA-2004.053: PHP
- RHSA-2004-687: php security update
- RHSA-2005-031: php security update
- RHSA-2005-032: php security update
- RHSA-2005-816: apache
- SUSE-SA:2005:002: php4/mod_php4: remote code execution
Reported:
Dec 15, 2004
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 (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.
Copyright (c) 1994-2008 Internet Security Systems, Inc. All rights reserved worldwide.
For corrections or additions please email xforce@iss.net
