{"id":"CVE-2007-1521","aliases":["DSA-1282-1","DSA-1283-1","DTSA-39-1","DTSA-40-1","EUVD-2007-1515","GHSA-68q8-gr3h-67jh"],"status":"published","title":"Double free vulnerability in PHP before 4.4.7, and 5.x before 5.2.2, allows context-dependent...","description":"Double free vulnerability in PHP before 4.4.7, and 5.x before 5.2.2, allows context-dependent attackers to execute arbitrary code by interrupting the session_regenerate_id function, as demonstrated by calling a userspace error handler or triggering a memory limit violation.","severity":{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.0861,"percentile":0.9513,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":false},"published":"2007-03-20T20:00:00Z","modified":"2026-06-16T22:37:45Z","exploits":[{"source":"exploitdb","id":"EDB-3479","title":"PHP 5.2.1 - 'session_regenerate_id()' Double-Free","type":"local","platform":"linux","date":"2007-03-14","verified":true,"url":"https://www.exploit-db.com/exploits/3479"}],"affected":[{"source":"osv","ecosystem":"Debian:3.1","package":"php4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4:4.3.10-20"}]}],"versions":["4:4.3.10-15","4:4.3.10-16","4:4.3.10-17","4:4.3.10-18","4:4.3.10-19"],"bundled":7},{"source":"osv","ecosystem":"Debian:4.0","package":"php4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6:4.4.4-8+etch2"}]}],"versions":["6:4.4.4-8+etch1"],"bundled":7},{"source":"osv","ecosystem":"Debian:4.0","package":"php5","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.2.0-8+etch3"}]}],"versions":["5.2.0-8+etch1"],"bundled":17},{"source":"osv","ecosystem":"Debian:5.0","package":"php5","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.2.0-10+lenny1"}]}],"bundled":18},{"source":"osv","ecosystem":"Debian:5.0","package":"php4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6:4.4.4-9+lenny1"}]}],"versions":["4.0.3pl1-0potato3","4.0.3pl1-0potato4","4:4.1.2-7","4:4.1.2-7.0.1","4:4.1.2-7.woody3","4:4.1.2-7.woody4","4:4.1.2-7.woody5","4:4.1.2-7woody1","4:4.1.2-7woody2","4:4.3.10-10","4:4.3.10-11","4:4.3.10-12","4:4.3.10-13","4:4.3.10-14","4:4.3.10-15","4:4.3.10-16","4:4.3.10-17","4:4.3.10-18","4:4.3.10-19","4:4.3.10-20","4:4.3.10-21","4:4.3.10-22","4:4.3.10-8","4:4.3.10-9","4:4.4.0-1","4:4.4.0-2","4:4.4.0-3","4:4.4.0-4","4:4.4.2-1","4:4.4.2-1+b1","4:4.4.2-1.1","4:4.4.4-1","4:4.4.4-2","4:4.4.4-3","4:4.4.4-4","4:4.4.4-4~4","4:4.4.4-5","4:4.4.4-6","4:4.4.4-7","6:4.4.4-8","6:4.4.4-8+etch1","6:4.4.4-8+etch2","6:4.4.4-8+etch3","6:4.4.4-8+etch4","6:4.4.4-8+etch6","6:4.4.4-9"],"bundled":7}],"products":[{"vendor":"php","product":"php"}],"references":[{"url":"http://www.vupen.com/english/advisories/2007/0960","tags":["vdb-entry","x_refsource_VUPEN","x_transferred"]},{"url":"http://www.vupen.com/english/advisories/2007/2732","tags":["vdb-entry","x_refsource_VUPEN","x_transferred"]},{"url":"http://secunia.com/advisories/25056","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://www.debian.org/security/2007/dsa-1283","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred"]},{"url":"http://secunia.com/advisories/24505","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory"]},{"url":"http://lists.apple.com/archives/security-announce//2007/Jul/msg00004.html","tags":["vendor-advisory","x_refsource_APPLE","x_transferred"]},{"url":"http://security.gentoo.org/glsa/glsa-200705-19.xml","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred"]},{"url":"http://us2.php.net/releases/4_4_7.php","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://secunia.com/advisories/25062","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory"]},{"url":"http://www.ubuntu.com/usn/usn-455-1","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred"]},{"url":"http://www.debian.org/security/2007/dsa-1282","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred"]},{"url":"http://us2.php.net/releases/5_2_2.php","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://docs.info.apple.com/article.html?artnum=306172","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://www.php-security.org/MOPB/MOPB-22-2007.html","tags":["x_refsource_MISC","x_transferred","Exploit","Vendor Advisory"]},{"url":"http://www.securityfocus.com/bid/25159","tags":["vdb-entry","x_refsource_BID","x_transferred"]},{"url":"http://secunia.com/advisories/25445","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://secunia.com/advisories/25057","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory"]},{"url":"http://www.novell.com/linux/security/advisories/2007_32_php.html","tags":["vendor-advisory","x_refsource_SUSE","x_transferred"]},{"url":"http://secunia.com/advisories/25025","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory"]},{"url":"http://www.securityfocus.com/bid/22968","tags":["vdb-entry","x_refsource_BID","x_transferred"]},{"url":"http://secunia.com/advisories/26235","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2007-1521"},{"url":"https://github.com/advisories/GHSA-68q8-gr3h-67jh"}],"sources":{"cve":[{"id":"CVE-2007-1521","description":"Double free vulnerability in PHP before 4.4.7, and 5.x before 5.2.2, allows context-dependent attackers to execute arbitrary code by interrupting the session_regenerate_id function, as demonstrated by calling a userspace error handler or triggering a memory limit violation.","status":"published","published":"2007-03-20T20:00:00Z","modified":"2024-08-07T12:59:08.391Z","updated_at":"2026-11-02T13:33:52.669326Z"}],"euvd":[{"id":"EUVD-2007-1515","description":"Double free vulnerability in PHP before 4.4.7, and 5.x before 5.2.2, allows context-dependent attackers to execute arbitrary code by interrupting the session_regenerate_id function, as demonstrated by calling a userspace error handler or triggering a memory limit violation.","status":"published","published":"2007-03-20T20:00:00Z","modified":"2024-08-07T12:59:08Z","updated_at":"2026-11-03T01:38:25.361818Z"}],"ghsa":[{"id":"GHSA-68q8-gr3h-67jh","title":"Double free vulnerability in PHP before 4.4.7, and 5.x before 5.2.2, allows context-dependent...","description":"Double free vulnerability in PHP before 4.4.7, and 5.x before 5.2.2, allows context-dependent attackers to execute arbitrary code by interrupting the session_regenerate_id function, as demonstrated by calling a userspace error handler or triggering a memory limit violation.","status":"published","published":"2022-05-01T17:54:34Z","modified":"2023-01-31T05:03:20Z","updated_at":"2026-11-02T14:48:26.919818Z"}],"nvd":[{"id":"CVE-2007-1521","description":"Double free vulnerability in PHP before 4.4.7, and 5.x before 5.2.2, allows context-dependent attackers to execute arbitrary code by interrupting the session_regenerate_id function, as demonstrated by calling a userspace error handler or triggering a memory limit violation.","status":"published","published":"2007-03-20T20:19:00Z","modified":"2026-06-16T22:37:45.1Z","cvss":[{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"updated_at":"2026-11-02T14:01:13.98711Z"}],"osv":[{"id":"DSA-1282-1","title":"php4","status":"published","published":"2007-04-26T00:00:00Z","modified":"2026-03-09T01:01:25.318308Z","updated_at":"2026-11-02T15:46:14.285228Z"},{"id":"DSA-1283-1","title":"php5","status":"published","published":"2007-04-29T00:00:00Z","modified":"2026-03-09T01:01:00.8697Z","updated_at":"2026-11-02T15:46:14.285228Z"},{"id":"DTSA-39-1","title":"php5 - several vulnerabilities","status":"published","published":"2007-05-28T00:00:00Z","modified":"2026-03-09T01:01:30.482688Z","updated_at":"2026-11-02T15:46:18.716547Z"},{"id":"DTSA-40-1","title":"php4 - several vulnerabilities","status":"published","published":"2007-05-28T00:00:00Z","modified":"2026-03-09T01:01:34.468769Z","updated_at":"2026-11-02T15:46:18.716547Z"}]}}
