Code Injection in PHP - CVE-2007-4596

 

Code Injection in PHP - CVE-2007-4596

Published: March 29, 2021 / Updated: June 11, 2025


Vulnerability identifier: #VU110379
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-4596
CWE-ID: CWE-94
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.

The perl extension in PHP does not follow safe_mode restrictions, which allows context-dependent attackers to execute arbitrary code via the Perl eval function. NOTE: this might only be a vulnerability in limited environments.


Affected software

PHP

How to mitigate CVE-2007-4596

Install update from vendor's website.


Links to Public Exploits and PoC-codes

External References

Related Security Bulletins