CVE-2007-4657
Multiple integer overflows in PHP 4 before 4.4.8, and PHP 5 before 5.2.4, allow remote attackers...
CVE-2007-4657 is a high vulnerability (CVSS 7.5) in Php, published September 4, 2007. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.99%, the 87th percentile. Fixed in php5 5.2.0-8+etch9.
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.
Exploit likelihood
What each source reports
NVD Score used
7.5
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.
- Record
CVE-2007-4657- CVSS 2.0
- 7.5 High
AV:N/AC:L/Au:N/C:P/I:P/A:P - Weakness
- CWE-119, CWE-189
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2007-4657- Updated
- 2026-11-02
EUVDEUVD-2007-4639 No score
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.
- Record
EUVD-2007-4639- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-43ww-xqjh-ppmf No score
Multiple integer overflows in PHP 4 before 4.4.8, and PHP 5 before 5.2.4, allow remote attackers...
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.
- Record
GHSA-43ww-xqjh-ppmf- Weakness
- CWE-119
- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
php5Debian:4.0 |
before 5.2.0-8+etch9, plus listed versions 5.2.0-8+etch15.2.0-8+etch35.2.0-8+etch45.2.0-8+etch5~pu15.2.0-8+etch65.2.0-8+etch75.2.0-8+etch85.2.0-8+etch9~bpo31+1 |
5.2.0-8+etch9 |
php4Debian:4.0 |
before 6:4.4.4-8+etch6, plus listed versions 6:4.4.4-8+etch16:4.4.4-8+etch26:4.4.4-8+etch36:4.4.4-8+etch4 |
6:4.4.4-8+etch6 |
php5Debian:5.0 |
before 5.2.3-1+lenny1 | 5.2.3-1+lenny1 |
History
| When | Changed | Sources |
|---|---|---|
| 2026-11-03 | aliases | EUVD |
| 2026-11-02 | aliases | |
| 2026-11-02 | created | CVE List, GitHub Advisories, NVD, OSV |
References
secunia.com/advisories/30288
exchange.xforce.ibmcloud.com/vulnerabilities/36388
secunia.com/advisories/26822
launchpad.net/bugs/173043
vupen.com/english/advisories/2008/0059
debian.org/security/2008/dsa-1444
Show 25 moreShow less
gentoo.org/security/en/glsa/glsa-200710-02.xml
secunia.com/advisories/27864
php.net/releases/4_4_8.php
slackware.com/security/viewer.php?l=slackware-security&y=2008&m=slackware-security.335136
php.net/ChangeLog-5.php
secunia.com/advisories/28936
trustix.org/errata/2007/0026
usn.ubuntu.com/549-1
issues.rpath.com/browse/RPL-1693
secweb.se/en/advisories/php-strcspn-information-leak-vulnerability
secunia.com/advisories/28249
debian.org/security/2008/dsa-1578
issues.rpath.com/browse/RPL-1702
secunia.com/advisories/26838
secunia.com/advisories/27377
php.net/ChangeLog-4.php
secunia.com/advisories/27102
vupen.com/english/advisories/2007/3023
php.net/releases/5_2_4.php
exchange.xforce.ibmcloud.com/vulnerabilities/39399
secunia.com/advisories/28318
ubuntu.com/usn/usn-549-2
secunia.com/advisories/26642
nvd.nist.gov/vuln/detail/CVE-2007-4657
github.com/advisories/GHSA-43ww-xqjh-ppmf