{"id":"CVE-2007-1581","aliases":["EUVD-2007-1575","GHSA-6cxr-f6hx-5j7x"],"status":"published","title":"The resource system in PHP 5.0.0 through 5.2.1 allows context-dependent attackers to execute...","description":"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.","severity":{"version":"2.0","score":9.3,"vector":"AV:N/AC:M/Au:N/C:C/I:C/A:C","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.08029,"percentile":0.94814,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":false},"cwes":["CWE-94"],"published":"2007-03-21T23:00:00Z","modified":"2026-06-16T22:37:52Z","exploits":[{"source":"exploitdb","id":"EDB-3529","title":"PHP 5.2.1 - 'hash_update_file()' Freed Resource Usage","type":"local","platform":"linux","date":"2007-03-20","verified":true,"url":"https://www.exploit-db.com/exploits/3529"}],"products":[{"vendor":"php","product":"php"}],"references":[{"url":"https://www.exploit-db.com/exploits/3529","tags":["exploit","x_refsource_EXPLOIT-DB","x_transferred"]},{"url":"http://secunia.com/advisories/24542","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory"]},{"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","x_transferred","Exploit"]},{"url":"http://www.php-security.org/MOPB/MOPB-28-2007.html","tags":["x_refsource_MISC","x_transferred","Exploit","Vendor Advisory"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/33248","tags":["vdb-entry","x_refsource_XF","x_transferred"]},{"url":"http://www.securityfocus.com/bid/23062","tags":["vdb-entry","x_refsource_BID","x_transferred","Exploit"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2007-1581"},{"url":"https://github.com/advisories/GHSA-6cxr-f6hx-5j7x"}],"sources":{"cve":[{"id":"CVE-2007-1581","description":"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.","status":"published","published":"2007-03-21T23:00:00Z","modified":"2024-08-07T12:59:08.943Z","updated_at":"2026-11-02T13:33:52.669326Z"}],"euvd":[{"id":"EUVD-2007-1575","description":"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.","status":"published","published":"2007-03-21T23:00:00Z","modified":"2024-08-07T12:59:08Z","updated_at":"2026-11-03T01:38:25.361818Z"}],"ghsa":[{"id":"GHSA-6cxr-f6hx-5j7x","title":"The resource system in PHP 5.0.0 through 5.2.1 allows context-dependent attackers to execute...","description":"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.","status":"published","published":"2022-05-01T17:55:05Z","modified":"2023-01-31T05:03:23Z","cwes":["CWE-94"],"updated_at":"2026-11-02T14:48:27.42074Z"}],"nvd":[{"id":"CVE-2007-1581","description":"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.","status":"published","published":"2007-03-21T23:19:00Z","modified":"2026-06-16T22:37:52.42Z","cvss":[{"version":"2.0","score":9.3,"vector":"AV:N/AC:M/Au:N/C:C/I:C/A:C","level":"high","assessor":"primary"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:01:13.98711Z"}]}}
