PHP substr_compare() "length" parameter denial of service
| php-substrcompare-length-dos (26003) |
Description:
PHP is vulnerable to a denial of service caused by an input validation error in the substr_compare() function. If a remote attacker passes an overly large 'length' argument to the substr_compare() function via a PHP script that calls the zend_binary_strcmp() and zend_binary_strcasecmp() functions, the attacker could cause a memory access violation error to occur, resulting in a denial of service.
Consequences:
Denial of Service
Remedy:
Upgrade to the latest version of PHP (5.1.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.
References:
- INFIGO IS Security Advisory #ADV-2006-04-02: Multiple PHP4/PHP5 vulnerabilities.
- The PHP Group Web site: PHP: Hypertext Preprocessor.
- The PHP Group Web site: PHP 5.1.3. Release Announcement.
- CVE-2006-1991: The substr_compare function in string.c in PHP 5.1.2 allows context-dependent attackers to cause a denial of service (memory access violation) via an out-of-bounds offset argument.
- GLSA-200605-08: PHP: Multiple vulnerabilities
- MDKSA-2006:091: Updated php packages fix vulnerabilities
- OpenPKG-SA-2007.019: php
- 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
- USN-320-1: PHP vulnerabilities
- USN-320-2: PHP regression
- VUPEN/ADV-2006-1500: PHP Multiple Function Buffer Overflow and Denial of Service Vulnerabilities
Platforms Affected:
- Canonical Ubuntu 5.04
- Canonical Ubuntu 5.10
- Canonical Ubuntu 6.06 LTS
- Gentoo Linux
- MandrakeSoft Mandrake Linux 2006 X86_64
- MandrakeSoft Mandrake Linux 2006
- MandrakeSoft Mandrake Linux LE2005
- MandrakeSoft Mandrake Linux LE2005 X86_64
- MandrakeSoft Mandrake Linux Corporate Server 3.0 X86_64
- MandrakeSoft Mandrake Linux Corporate Server 3.0
- MandrakeSoft Mandrake Multi Network Firewall 2.0
- Novell UnitedLinux 1.0
- OpenPKG OpenPKG CURRENT
- OpenPKG OpenPKG Enterprise E1.0-SOLID
- 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 RC2
- 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 5.0.0 RC1
- PHP PHP 5.0.0 RC2
- PHP PHP 5.0.0 RC3
- PHP PHP 5.0.0 Beta3
- PHP PHP 5.0.0 Beta2
- PHP PHP 5.0.0 Beta1
- PHP PHP 5.0.0
- PHP PHP 5.0.0 Beta4
- 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
- SuSE SuSE SLES 9
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
