Code Injection in PHP - CVE-2007-1581

 

Code Injection in PHP - CVE-2007-1581

Published: October 30, 2018 / Updated: June 11, 2025


Vulnerability identifier: #VU110428
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2007-1581
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 execute arbitrary code.

The resource system in PHP 5.0.0 through 5.2.1 allows context-dependent attackers to execute arbitrary code by interrupting the hash_update_file function via a userspace (1) error or (2) stream handler, which can then be used to destroy and modify internal resources. NOTE: it was later reported that PHP 5.2 through 5.2.13 and 5.3 through 5.3.2 are also affected.


Affected software

PHP

How to mitigate CVE-2007-1581

Install update from vendor's website.

PHP - addressed in versions 5.2.14, 5.3.3

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins