Vulnerabilities · 2007 · Php
CVE-2007-1581
Php vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Php. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Php runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- secunia.com/advisories/24542 · Vendor Advisory
- www.php-security.org/MOPB/MOPB-28-2007.html · Exploit
- php-security.org/2010/05/01/mops-2010-001-php-hash_update_file-already-freed-resource-acce · Exploit
- www.securityfocus.com/bid/23062 · Exploit
- exchange.xforce.ibmcloud.com/vulnerabilities/33248
- www.exploit-db.com/exploits/3529
- nvd.nist.gov/vuln/detail/CVE-2007-1581
- cve.org/CVERecord?id=CVE-2007-1581
More vulnerabilities in Php products
CVE-2025-14180CVE-2025-14178CVE-2025-14177CVE-2025-6491CVE-2025-1861CVE-2025-1736CVE-2025-1735CVE-2025-1734All 740
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.