Description
Multiple integer overflows in PHP 4 before 4.4.8, and PHP 5 before 5.2.4, allow remote attackers to obtain sensitive information (memory contents) or cause a denial of service (thread crash) via a large len value to the (1) strspn or (2) strcspn function, which triggers an out-of-bounds read. NOTE: this affects different product versions than CVE-2007-3996.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 5.0 | php5 | 5.2.3-1+lenny1 | DTSA-61-1 |
| Debian 4.0 | php4 | 6:4.4.4-8+etch6 | DSA-1578-1 |
| Debian 4.0 | php5 | 5.2.0-8+etch9 | DSA-1444-1 |
Advisories 3
- DSA-1578-1 php4 - several vulnerabilities Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-1444-1 php5 several issues Debian Security (DSA / DLA) · Mar 9, 2026
- DTSA-61-1 php5 - several vulnerabilities Debian Security (DSA / DLA) · Mar 9, 2026
References
- 30288 third-party-advisory
- php-strcspn-overflow(36388) vdb-entry
- 26822 third-party-advisory
- https://launchpad.net/bugs/173043
- ADV-2008-0059 vdb-entry
- DSA-1444 vendor-advisory
- GLSA-200710-02 vendor-advisory
- 27864 third-party-advisory
- http://www.php.net/releases/4_4_8.php
- SSA:2008-045-03 vendor-advisory
- http://www.php.net/ChangeLog-5.php#5.2.4
- 28936 third-party-advisory
- 2007-0026 vendor-advisory
- USN-549-1 vendor-advisory
- https://issues.rpath.com/browse/RPL-1693
- http://secweb.se/en/advisories/php-strcspn-information-leak-vulnerability/
- 28249 third-party-advisory
- DSA-1578 vendor-advisory
- https://issues.rpath.com/browse/RPL-1702
- 26838 third-party-advisory
- 27377 third-party-advisory
- http://www.php.net/ChangeLog-4.php
- 27102 third-party-advisory
- ADV-2007-3023 vdb-entry
- http://www.php.net/releases/5_2_4.php
- php-strcspn-strspn-unspecified(39399) vdb-entry
- 28318 third-party-advisory
- USN-549-2 vendor-advisory
- 26642 third-party-advisory