{"id":"CVE-2007-1700","aliases":["DSA-1283-1","DTSA-39-1","EUVD-2007-1694","GHSA-2966-gh5h-j633"],"status":"published","title":"The session extension in PHP 4 before 4.4.5, and PHP 5 before 5.2.1, calculates the reference...","description":"The session extension in PHP 4 before 4.4.5, and PHP 5 before 5.2.1, calculates the reference count for the session variables without considering the internal pointer from the session globals, which allows context-dependent attackers to execute arbitrary code via a crafted string in the session_register after unsetting HTTP_SESSION_VARS and _SESSION, which destroys the session data Hashtable.","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.09145,"percentile":0.95351,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":false},"published":"2007-03-27T01:00:00Z","modified":"2026-06-16T22:38:08Z","exploits":[{"source":"exploitdb","id":"EDB-3571","title":"PHP \u003c 4.4.5/5.2.1 - '_SESSION unset()' Local Overflow","type":"local","platform":"linux","date":"2007-03-25","verified":true,"url":"https://www.exploit-db.com/exploits/3571"}],"affected":[{"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}],"products":[{"vendor":"php","product":"php"}],"references":[{"url":"http://www.vupen.com/english/advisories/2007/1991","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://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en\u0026cc=us\u0026objectID=c01056506","tags":["vendor-advisory","x_refsource_HP","x_transferred"]},{"url":"http://security.gentoo.org/glsa/glsa-200705-19.xml","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred"]},{"url":"http://www.php-security.org/MOPB/MOPB-30-2007.html","tags":["x_refsource_MISC","x_transferred"]},{"url":"http://www.securityfocus.com/bid/23119","tags":["vdb-entry","x_refsource_BID","x_transferred","Exploit"]},{"url":"http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en\u0026cc=us\u0026objectID=c01086137","tags":["vendor-advisory","x_refsource_HP","x_transferred"]},{"url":"http://secunia.com/advisories/25062","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://www.vupen.com/english/advisories/2007/2374","tags":["vdb-entry","x_refsource_VUPEN","x_transferred"]},{"url":"http://secunia.com/advisories/25423","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://www.ubuntu.com/usn/usn-455-1","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred"]},{"url":"http://secunia.com/advisories/25850","tags":["third-party-advisory","x_refsource_SECUNIA","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"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/33520","tags":["vdb-entry","x_refsource_XF","x_transferred"]},{"url":"http://www.novell.com/linux/security/advisories/2007_32_php.html","tags":["vendor-advisory","x_refsource_SUSE","x_transferred"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2007-1700"},{"url":"https://github.com/advisories/GHSA-2966-gh5h-j633"}],"sources":{"cve":[{"id":"CVE-2007-1700","description":"The session extension in PHP 4 before 4.4.5, and PHP 5 before 5.2.1, calculates the reference count for the session variables without considering the internal pointer from the session globals, which allows context-dependent attackers to execute arbitrary code via a crafted string in the session_register after unsetting HTTP_SESSION_VARS and _SESSION, which destroys the session data Hashtable.","status":"published","published":"2007-03-27T01:00:00Z","modified":"2024-08-07T13:06:26.206Z","updated_at":"2026-11-02T13:33:52.669326Z"}],"euvd":[{"id":"EUVD-2007-1694","description":"The session extension in PHP 4 before 4.4.5, and PHP 5 before 5.2.1, calculates the reference count for the session variables without considering the internal pointer from the session globals, which allows context-dependent attackers to execute arbitrary code via a crafted string in the session_register after unsetting HTTP_SESSION_VARS and _SESSION, which destroys the session data Hashtable.","status":"published","published":"2007-03-27T01:00:00Z","modified":"2024-08-07T13:06:26Z","updated_at":"2026-11-03T01:38:24.820783Z"}],"ghsa":[{"id":"GHSA-2966-gh5h-j633","title":"The session extension in PHP 4 before 4.4.5, and PHP 5 before 5.2.1, calculates the reference...","description":"The session extension in PHP 4 before 4.4.5, and PHP 5 before 5.2.1, calculates the reference count for the session variables without considering the internal pointer from the session globals, which allows context-dependent attackers to execute arbitrary code via a crafted string in the session_register after unsetting HTTP_SESSION_VARS and _SESSION, which destroys the session data Hashtable.","status":"published","published":"2022-05-01T17:56:03Z","modified":"2023-01-31T05:03:35Z","updated_at":"2026-11-02T14:48:29.790939Z"}],"nvd":[{"id":"CVE-2007-1700","description":"The session extension in PHP 4 before 4.4.5, and PHP 5 before 5.2.1, calculates the reference count for the session variables without considering the internal pointer from the session globals, which allows context-dependent attackers to execute arbitrary code via a crafted string in the session_register after unsetting HTTP_SESSION_VARS and _SESSION, which destroys the session data Hashtable.","status":"published","published":"2007-03-27T01:19:00Z","modified":"2026-06-16T22:38:08.013Z","cvss":[{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"updated_at":"2026-11-02T14:01:13.98711Z"}],"osv":[{"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"}]}}
