CVE-2007-1522 Use after free in n/a

Medium 6.8 Published Updated

Attackers can execute arbitrary code via a double free vulnerability in the PHP session extension triggered by illegal session identifiers.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2007-1522?

CVE-2007-1522 is a medium-severity use after free vulnerability in Php Php, published on 20 Mar 2007. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Double free vulnerability in the session extension in PHP 5.2.0 and 5.2.1 allows context-dependent attackers to execute arbitrary code via illegal characters in a session identifier, which is rejected by an internal session storage module, which calls the session identifier generator with an improper environment, leading to code execution when the generator is interrupted, as demonstrated by triggering a memory limit violation or certain PHP errors.

Which versions are affected by CVE-2007-1522?

It affects 1 product.

Products include Php Php.

How do I fix CVE-2007-1522?

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-1522 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2007-1522 exists.

Public exploit code: 1 Exploit-DB entry.

All Php Php vulnerabilities

Sources

Also known as GHSA-f434-223j-r8rm.

Is CVE-2007-1522 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free