CVE-2007-1700 Use after free in n/a
Attackers can execute arbitrary code by exploiting a use-after-free vulnerability in the PHP session extension's reference counting mechanism.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2007-1700?
CVE-2007-1700 is a high-severity use after free vulnerability in Php Php, published on 27 Mar 2007. Any signed-in user can exploit it over the network, with no action from the victim.
Official 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.
Which versions are affected by CVE-2007-1700?
It affects 1 product.
Products include Php Php.
How do I fix CVE-2007-1700?
Upgrade to a fixed version.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2007-1700 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2007-1700 exists.
Public exploit code: 1 Exploit-DB entry.
Other vulnerabilities in Php Php
Sources
Also known as GHSA-2966-gh5h-j633.