{"id":"CVE-2007-4657","aliases":[],"kind":"cve","tier":"cold","status":"published","title":"Multiple integer overflows in PHP 4 before 4.4.8, and PHP 5 before 5.2.4, allow remote attackers to obtain sensitive in…","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.","ai_summary":null,"severity":"high","cvss":{"score":7.5,"version":"2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","source":"NVD"},"scores":[{"score":7.5,"version":"2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","source":"nvd"}],"cwe":["CWE-119","CWE-189"],"remote":true,"remote_unauth":true,"epss":{"score":0.02994,"percentile":0.88098,"date":"2026-11-30"},"kev":{"listed":false,"added":null,"due":null,"ransomware":null},"exploit":{"public":false,"exploitdb_ids":[]},"affected":[],"affected_products":[{"vendor":"n/a","product":"n/a","versions":"","source":"nvd"}],"ai_versions":null,"mitigation":"No fix listed yet: follow the vendor advisory.","technologies":[],"references":[{"url":"http://www.debian.org/security/2008/dsa-1444","kind":"vendor"},{"url":"http://www.gentoo.org/security/en/glsa/glsa-200710-02.xml","kind":"vendor"},{"url":"http://www.php.net/releases/4_4_8.php","kind":"vendor"},{"url":"http://slackware.com/security/viewer.php?l=slackware-security&y=2008&m=slackware-security.335136","kind":"vendor"},{"url":"http://www.trustix.org/errata/2007/0026/","kind":"vendor"},{"url":"https://usn.ubuntu.com/549-1/","kind":"vendor"},{"url":"http://www.debian.org/security/2008/dsa-1578","kind":"vendor"},{"url":"http://www.php.net/ChangeLog-4.php","kind":"vendor"},{"url":"http://www.php.net/releases/5_2_4.php","kind":"vendor"},{"url":"http://www.ubuntu.com/usn/usn-549-2","kind":"vendor"},{"url":"http://www.php.net/ChangeLog-5.php#5.2.4","kind":"patch"},{"url":"http://secunia.com/advisories/30288","kind":"other"},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/36388","kind":"other"},{"url":"http://secunia.com/advisories/26822","kind":"other"},{"url":"https://launchpad.net/bugs/173043","kind":"other"},{"url":"http://www.vupen.com/english/advisories/2008/0059","kind":"other"},{"url":"http://secunia.com/advisories/27864","kind":"other"},{"url":"http://secunia.com/advisories/28936","kind":"other"},{"url":"https://issues.rpath.com/browse/RPL-1693","kind":"other"},{"url":"http://secweb.se/en/advisories/php-strcspn-information-leak-vulnerability/","kind":"other"},{"url":"http://secunia.com/advisories/28249","kind":"other"},{"url":"https://issues.rpath.com/browse/RPL-1702","kind":"other"},{"url":"http://secunia.com/advisories/26838","kind":"other"},{"url":"http://secunia.com/advisories/27377","kind":"other"},{"url":"http://secunia.com/advisories/27102","kind":"other"},{"url":"http://www.vupen.com/english/advisories/2007/3023","kind":"other"},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/39399","kind":"other"},{"url":"http://secunia.com/advisories/28318","kind":"other"},{"url":"http://secunia.com/advisories/26642","kind":"other"}],"workarounds":null,"vendors":["canonical","debian","php"],"products":["debian_linux","php","ubuntu_linux"],"cpes":["cpe:2.3:a:php:php:*:*:*:*:*:*:*:*","cpe:2.3:o:canonical:ubuntu_linux:6.06:*:*:*:lts:*:*:*","cpe:2.3:o:canonical:ubuntu_linux:6.10:*:*:*:*:*:*:*","cpe:2.3:o:canonical:ubuntu_linux:7.04:*:*:*:*:*:*:*","cpe:2.3:o:canonical:ubuntu_linux:7.10:*:*:*:*:*:*:*","cpe:2.3:o:debian:debian_linux:3.1:*:*:*:*:*:*:*","cpe:2.3:o:debian:debian_linux:4.0:*:*:*:*:*:*:*"],"published_at":"2007-09-04T22:00:00.000Z","modified_at":"2026-06-16T22:44:31.203Z","promoted_at":null,"attribution":[{"source":"CVE Program","text":"CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation.","url":"https://www.cve.org/Legal/TermsOfUse"},{"source":"NVD","text":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","url":"https://nvd.nist.gov/vuln/detail/CVE-2007-4657"}],"links":{"html":"https://flawdb.com/CVE-2007-4657","markdown":"https://flawdb.com/CVE-2007-4657.md","json":"https://flawdb.com/api/v1/entries/CVE-2007-4657"}}