{"id":"CVE-2007-4657","aliases":["DSA-1444-1","DSA-1578-1","DTSA-61-1","EUVD-2007-4639","GHSA-43ww-xqjh-ppmf"],"status":"published","title":"Multiple integer overflows in PHP 4 before 4.4.8, and PHP 5 before 5.2.4, allow remote attackers...","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.","severity":{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.02994,"percentile":0.87428,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-119","CWE-189"],"published":"2007-09-04T22:00:00Z","modified":"2026-06-16T22:44:31Z","affected":[{"source":"osv","ecosystem":"Debian:4.0","package":"php5","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.2.0-8+etch9"}]}],"versions":["5.2.0-8+etch1","5.2.0-8+etch3","5.2.0-8+etch4","5.2.0-8+etch5~pu1","5.2.0-8+etch6","5.2.0-8+etch7","5.2.0-8+etch8","5.2.0-8+etch9~bpo31+1"],"bundled":8},{"source":"osv","ecosystem":"Debian:4.0","package":"php4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6:4.4.4-8+etch6"}]}],"versions":["6:4.4.4-8+etch1","6:4.4.4-8+etch2","6:4.4.4-8+etch3","6:4.4.4-8+etch4"],"bundled":5},{"source":"osv","ecosystem":"Debian:5.0","package":"php5","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.2.3-1+lenny1"}]}],"bundled":8}],"products":[{"vendor":"canonical","product":"ubuntu_linux"},{"vendor":"debian","product":"debian_linux"},{"vendor":"php","product":"php"}],"references":[{"url":"http://secunia.com/advisories/30288","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Third Party Advisory"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/36388","tags":["vdb-entry","x_refsource_XF","x_transferred","Third Party Advisory","VDB Entry"]},{"url":"http://secunia.com/advisories/26822","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Third Party Advisory"]},{"url":"https://launchpad.net/bugs/173043","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory"]},{"url":"http://www.vupen.com/english/advisories/2008/0059","tags":["vdb-entry","x_refsource_VUPEN","x_transferred","Third Party Advisory"]},{"url":"http://www.debian.org/security/2008/dsa-1444","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","Third Party Advisory"]},{"url":"http://www.gentoo.org/security/en/glsa/glsa-200710-02.xml","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred","Third Party Advisory"]},{"url":"http://secunia.com/advisories/27864","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Third Party Advisory"]},{"url":"http://www.php.net/releases/4_4_8.php","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory"]},{"url":"http://slackware.com/security/viewer.php?l=slackware-security\u0026y=2008\u0026m=slackware-security.335136","tags":["vendor-advisory","x_refsource_SLACKWARE","x_transferred","Mailing List","Third Party Advisory"]},{"url":"http://www.php.net/ChangeLog-5.php#5.2.4","tags":["x_refsource_CONFIRM","x_transferred","Patch","Vendor Advisory"]},{"url":"http://secunia.com/advisories/28936","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Third Party Advisory"]},{"url":"http://www.trustix.org/errata/2007/0026/","tags":["vendor-advisory","x_refsource_TRUSTIX","x_transferred","Broken Link"]},{"url":"https://usn.ubuntu.com/549-1/","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","Third Party Advisory"]},{"url":"https://issues.rpath.com/browse/RPL-1693","tags":["x_refsource_CONFIRM","x_transferred","Broken Link"]},{"url":"http://secweb.se/en/advisories/php-strcspn-information-leak-vulnerability/","tags":["x_refsource_MISC","x_transferred","Third Party Advisory"]},{"url":"http://secunia.com/advisories/28249","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Third Party Advisory"]},{"url":"http://www.debian.org/security/2008/dsa-1578","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","Third Party Advisory"]},{"url":"https://issues.rpath.com/browse/RPL-1702","tags":["x_refsource_CONFIRM","x_transferred","Broken Link"]},{"url":"http://secunia.com/advisories/26838","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Third Party Advisory"]},{"url":"http://secunia.com/advisories/27377","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Third Party Advisory"]},{"url":"http://www.php.net/ChangeLog-4.php","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory"]},{"url":"http://secunia.com/advisories/27102","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Third Party Advisory"]},{"url":"http://www.vupen.com/english/advisories/2007/3023","tags":["vdb-entry","x_refsource_VUPEN","x_transferred","Third Party Advisory"]},{"url":"http://www.php.net/releases/5_2_4.php","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/39399","tags":["vdb-entry","x_refsource_XF","x_transferred","Third Party Advisory","VDB Entry"]},{"url":"http://secunia.com/advisories/28318","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Third Party Advisory"]},{"url":"http://www.ubuntu.com/usn/usn-549-2","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","Broken Link"]},{"url":"http://secunia.com/advisories/26642","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2007-4657"},{"url":"https://usn.ubuntu.com/549-1"},{"url":"http://secweb.se/en/advisories/php-strcspn-information-leak-vulnerability"},{"url":"http://www.trustix.org/errata/2007/0026"},{"url":"https://github.com/advisories/GHSA-43ww-xqjh-ppmf"}],"sources":{"cve":[{"id":"CVE-2007-4657","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.","status":"published","published":"2007-09-04T22:00:00Z","modified":"2024-08-07T15:01:10.099Z","updated_at":"2026-11-02T13:33:30.262137Z"}],"euvd":[{"id":"EUVD-2007-4639","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.","status":"published","published":"2007-09-04T22:00:00Z","modified":"2024-08-07T15:01:10Z","updated_at":"2026-11-03T01:16:20.592518Z"}],"ghsa":[{"id":"GHSA-43ww-xqjh-ppmf","title":"Multiple integer overflows in PHP 4 before 4.4.8, and PHP 5 before 5.2.4, allow remote attackers...","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.","status":"published","published":"2022-05-01T18:25:59Z","modified":"2025-04-09T03:46:53Z","cwes":["CWE-119"],"updated_at":"2026-11-02T15:00:55.004058Z"}],"nvd":[{"id":"CVE-2007-4657","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.","status":"published","published":"2007-09-04T22:17:00Z","modified":"2026-06-16T22:44:31.203Z","cvss":[{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-119","CWE-189"],"updated_at":"2026-11-02T14:01:19.102336Z"}],"osv":[{"id":"DSA-1444-1","title":"php5 several issues","status":"published","published":"2008-01-03T00:00:00Z","modified":"2026-03-09T01:01:19.487591Z","updated_at":"2026-11-02T15:46:14.285228Z"},{"id":"DSA-1578-1","title":"php4 - several vulnerabilities","status":"published","published":"2008-05-17T00:00:00Z","modified":"2026-03-09T01:22:18.685803Z","updated_at":"2026-11-02T15:46:14.734124Z"},{"id":"DTSA-61-1","title":"php5 - several vulnerabilities","status":"published","published":"2007-10-03T00:00:00Z","modified":"2026-03-09T01:01:11.69569Z","updated_at":"2026-11-02T15:46:18.716547Z"}]}}
