{"id":"CVE-2007-1581","published":"2007-03-21T23:00:00Z","modified":"2024-08-07T12:59:08Z","title":"The resource system in PHP 5.0.0 through 5.2.1 allows context-dependent attackers to execute arbitrary code by…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.08029,"percentile":0.94908,"provenance":"source"},"cwes":[],"references":[{"url":"https://www.exploit-db.com/exploits/3529","tags":["exploit","x_refsource_EXPLOIT-DB"]},{"url":"http://secunia.com/advisories/24542","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://php-security.org/2010/05/01/mops-2010-001-php-hash_update_file-already-freed-resource-access-vulnerability/index.html","tags":["x_refsource_MISC"]},{"url":"http://www.php-security.org/MOPB/MOPB-28-2007.html","tags":["x_refsource_MISC"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/33248","tags":["vdb-entry","x_refsource_XF"]},{"url":"http://www.securityfocus.com/bid/23062","tags":["vdb-entry","x_refsource_BID"]}],"priority":{"score":24.0,"factors":[{"name":"EPSS percentile","points":18.98},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"exploitdb":{"count":1,"earliest":"2007-03-20"},"first":{"date":"2007-03-20","source":"Exploit-DB","url":"https://www.exploit-db.com/exploits/3529"},"provenance":"source"},"summary":{"text":"The resource system in PHP 5.0.0 through 5.2.1 contains a flaw in how the hash_update_file function handles interruption. Attackers can exploit it by interrupting that function through a userspace error handler or stream handler, which allows them to destroy and modify internal resources and execute arbitrary code, with the attacker needing to be in a context where they can supply or influence the PHP code path that calls hash_update_file.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:57:46Z"},"euvd":{"id":"EUVD-2007-1575","exploited":false,"provenance":"source"},"exploits":[{"id":3529,"url":"https://www.exploit-db.com/exploits/3529","title":"PHP 5.2.1 - 'hash_update_file()' Freed Resource Usage","date":"2007-03-20","verified":true,"provenance":"source"}],"exploitRefs":["https://www.exploit-db.com/exploits/3529"]}