Buffer overflow in PHP
CVE-2007-4657
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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v2 metric
CVSS v2 base score 7.5 (High). Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P. This CVE predates CVSS v3 and has no v3 score from NVD.
EPSS exploit prediction
EPSS 0.030, 87.6th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- PHP
- Canonical Ubuntu Linux — versions 6.06, 6.10, 7.04
- Debian Linux — versions 3.1, 4.0
Weakness classification (CWE)
References
- secunia.com/advisories/30288 (Third Party Advisory, third-party-advisory)
- php-strcspn-overflow(36388) (Third Party Advisory, VDB Entry, vdb-entry)
- secunia.com/advisories/26822 (Third Party Advisory, third-party-advisory)
- launchpad.net/bugs/173043 (Third Party Advisory)
- ADV-2008-0059 (Third Party Advisory, vdb-entry)
- DSA-1444 (vendor-advisory, Third Party Advisory)
- GLSA-200710-02 (vendor-advisory, Third Party Advisory)
- secunia.com/advisories/27864 (Third Party Advisory, third-party-advisory)
- www.php.net/releases/4_4_8.php (Vendor Advisory)
- SSA:2008-045-03 (vendor-advisory, Mailing List, Third Party Advisory)