Input validation error in PHP - CVE-2007-1522

 

Input validation error in PHP - CVE-2007-1522

Published: March 8, 2011 / Updated: June 12, 2025


Vulnerability identifier: #VU110433
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2007-1522
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a remote non-authenticated attacker to read and manipulate data.

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.


Affected software

PHP

How to mitigate CVE-2007-1522

Install update from vendor's website.

PHP - update to 5.2.2

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins