{"id":"CVE-2007-1700","published":"2007-03-27T01:00:00Z","modified":"2024-08-07T13:06:26Z","title":"The session extension in PHP 4 before 4.4.5, and PHP 5 before 5.2.1, calculates the reference count for the session…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.09145,"percentile":0.95436,"provenance":"source"},"cwes":[],"references":[{"url":"http://www.vupen.com/english/advisories/2007/1991","tags":["vdb-entry","x_refsource_VUPEN"]},{"url":"http://secunia.com/advisories/25056","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://www.debian.org/security/2007/dsa-1283","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&objectID=c01056506","tags":["vendor-advisory","x_refsource_HP"]},{"url":"http://security.gentoo.org/glsa/glsa-200705-19.xml","tags":["vendor-advisory","x_refsource_GENTOO"]},{"url":"http://www.php-security.org/MOPB/MOPB-30-2007.html","tags":["x_refsource_MISC"]},{"url":"http://www.securityfocus.com/bid/23119","tags":["vdb-entry","x_refsource_BID"]},{"url":"http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&objectID=c01086137","tags":["vendor-advisory","x_refsource_HP"]},{"url":"http://secunia.com/advisories/25062","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://www.vupen.com/english/advisories/2007/2374","tags":["vdb-entry","x_refsource_VUPEN"]},{"url":"http://secunia.com/advisories/25423","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://www.ubuntu.com/usn/usn-455-1","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"http://secunia.com/advisories/25850","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://secunia.com/advisories/25445","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://secunia.com/advisories/25057","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/33520","tags":["vdb-entry","x_refsource_XF"]},{"url":"http://www.novell.com/linux/security/advisories/2007_32_php.html","tags":["vendor-advisory","x_refsource_SUSE"]}],"priority":{"score":24.1,"factors":[{"name":"EPSS percentile","points":19.09},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"exploitdb":{"count":1,"earliest":"2007-03-25"},"first":{"date":"2007-03-25","source":"Exploit-DB","url":"https://www.exploit-db.com/exploits/3571"},"provenance":"source"},"summary":{"text":"The session extension in PHP 4 before 4.4.5 and PHP 5 before 5.2.1 miscalculates the reference count for session variables by ignoring the internal pointer from the session globals. An attacker able to supply a crafted string to session_register, after HTTP_SESSION_VARS and _SESSION have been unset (which destroys the session data Hashtable), can execute arbitrary code.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:53:04Z"},"euvd":{"id":"EUVD-2007-1694","exploited":false,"provenance":"source"},"exploits":[{"id":3571,"url":"https://www.exploit-db.com/exploits/3571","title":"PHP < 4.4.5/5.2.1 - '_SESSION unset()' Local Overflow","date":"2007-03-25","verified":true,"provenance":"source"}]}