PHP wordwrap() long string buffer overflow
| php-wordwrap-string-bo (26001) |
Description:
PHP is vulnerable to a heap-based buffer overflow in the wordwrap() function. By passing an overly long string to the wordwrap() function via a PHP script that uses the affected function, a remote attacker could overflow a buffer and execute arbitrary commands on the system or cause a denial of service.
*CVSS:
| Base Score: | 10 |
| Access Vector: | Remote |
| Access Complexity: | Low |
| Authentication: | Not Required |
| Confidentiality Impact: | Complete |
| Integrity Impact: | Complete |
| Availability Impact: | Complete |
| Temporal Score: | 7.8 |
| Exploitability: | Proof-Of-Concept |
| Remediation Level: | Official-Fix |
| Report Confidence: | Confirmed |
Consequences:
Gain Access
Remedy:
Apply Apple Security Update 2006-007, available from the Apple Web site. See References.
Upgrade to the latest version of PHP (5.1.3 or later) or (4.4.3 or later), available from The PHP Group Web site. See References.
For Gentoo Linux:
Refer to Gentoo Linux Security Announcement GLSA 2006-05-08 for patch, upgrade, or suggested workaround information. See References.
For Red Hat Linux (php):
Refer to RHSA-2006:0501-6 or RHSA-2006:0568-8 for patch, upgrade, or suggested workaround information. See References.
For Turbolinux:
Refer to Turbolinux Security Advisory TLSA-2006-38 for patch, upgrade, or suggested workaround information. See References.
References:
- Apple Security Update 2006-007: About the security content of Security Update 2006-007.
- INFIGO IS Security Advisory #ADV-2006-04-02: Multiple PHP4/PHP5 vulnerabilities.
- The PHP Group Web site: PHP 4.4.3. Release Announcement.
- The PHP Group Web site: PHP: Hypertext Preprocessor.
- The PHP Group Web site: PHP 5.1.3. Release Announcement.
- ASA-2006-160: php security update (RHSA-2006-0501)
- ASA-2006-175: php security update (RHSA-2006-0568)
- CVE-2006-1990: Integer overflow in the wordwrap function in string.c in PHP 4.4.2 and 5.1.2 might allow context-dependent attackers to execute arbitrary code via certain long arguments that cause a small buffer to be allocated, which triggers a heap-based buffer overflow in a memcpy function call, a different vulnerability than CVE-2002-1396.
- GLSA-200605-08: PHP: Multiple vulnerabilities
- MDKSA-2006:091: Updated php packages fix vulnerabilities
- MDKSA-2006:122: Updated php packages fix multiple vulnerabilities
- RHSA-2006-0501: php security update
- RHSA-2006-0549: php security update for Stronghold
- RHSA-2006-0568: php security update
- SA19803: PHP "wordwrap()" Buffer Overflow Vulnerability
- SA21564: Avaya Products PHP Multiple Vulnerabilities
- SA21723: Avaya Products PHP Multiple Vulnerabilities
- SA23155: Mac OS X Security Update Fixes Multiple Vulnerabilities
- SECTRACK ID: 1015979: PHP wordwrap(), array_fill(), and substr_compare() Bugs Let Remote Users Deny Service or Execute Arbitrary Code
- SUSE-SA:2006:031: php4php5 security problems
Platforms Affected:
- Apple Mac OS X 10.3.9
- Apple Mac OS X 10.4.8
- Apple Mac OS X Server 10.3.9
- Apple Mac OS X Server 10.4.8
- Canonical Ubuntu 5.04
- Canonical Ubuntu 5.10
- Canonical Ubuntu 6.06 LTS
- Gentoo Linux
- MandrakeSoft Mandrake Linux 2006
- MandrakeSoft Mandrake Linux 2006 X86_64
- MandrakeSoft Mandrake Linux LE2005
- MandrakeSoft Mandrake Linux LE2005 X86_64
- MandrakeSoft Mandrake Linux Corporate Server 3.0
- MandrakeSoft Mandrake Linux Corporate Server 3.0 X86_64
- MandrakeSoft Mandrake Multi Network Firewall 2.0
- Novell UnitedLinux 1.0
- PHP PHP 4.0 Beta4
- PHP PHP 4.0 RC1
- PHP PHP 4.0 RC2
- PHP PHP 4.0 Beta3
- PHP PHP 4.0 Beta 4 Patch1
- PHP PHP 4.0 Beta1
- PHP PHP 4.0 Beta2
- 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 5.0.0 Beta3
- PHP PHP 5.0.0 Beta4
- PHP PHP 5.0.0 RC1
- PHP PHP 5.0.0 Beta2
- PHP PHP 5.0.0 RC3
- PHP PHP 5.0.0 RC2
- PHP PHP 5.0.0 Beta1
- PHP PHP 5.0.0
- PHP PHP 5.0.1
- PHP PHP 5.0.2
- PHP PHP 5.0.3
- PHP PHP 5.0.4
- PHP PHP 5.0.5
- PHP PHP 5.1.0
- PHP PHP 5.1.1
- PHP PHP 5.1.2
- RedHat Enterprise Linux 2.1 WS
- RedHat Enterprise Linux 2.1 AS
- 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 AS
- RedHat Enterprise Linux 4 ES
- RedHat Enterprise Linux 4 WS
- RedHat Enterprise Linux 4 Desktop
- RedHat Linux Advanced Workstation 2.1 Itanium
- RedHat Stronghold
- SuSE SuSE SLES 9
- 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
- Turbolinux Turbolinux Appliance Server 1.0 Hosting Ed
- Turbolinux Turbolinux Appliance Server 1.0 Workgroup Ed
- Turbolinux Turbolinux Appliance Server 2.0
Reported:
Apr 24, 2006
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
* According to the Forum of Incident Response and Security Teams (FIRST), the Common Vulnerability Scoring System (CVSS) is an "industry open standard designed to convey vulnerability severity and help to determine urgency and priority of response." IBM PROVIDES THE CVSS SCORES "AS IS" WITHOUT WARRANTY OF ANY KIND, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. CUSTOMERS ARE RESPONSIBLE FOR ASSESSING THE IMPACT OF ANY ACTUAL OR POTENTIAL SECURITY VULNERABILITY.
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 IBM be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
