CVE-2007-1581
The resource system in PHP 5.0.0 through 5.2.1 allows context-dependent attackers to execute...
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.
Exploit likelihood
What each source reports
NVD Score used
9.3
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.
- Record
CVE-2007-1581- CVSS 2.0
- 9.3 High
AV:N/AC:M/Au:N/C:C/I:C/A:C - Weakness
- CWE-94
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2007-1581- Updated
- 2026-11-02
EUVDEUVD-2007-1575 No score
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.
- Record
EUVD-2007-1575- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-6cxr-f6hx-5j7x No score
The resource system in PHP 5.0.0 through 5.2.1 allows context-dependent attackers to execute...
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.
- Record
GHSA-6cxr-f6hx-5j7x- Weakness
- CWE-94
- Updated
- 2026-11-02
Affected products
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| Exploit-DB | PHP 5.2.1 - 'hash_update_file()' Freed Resource Usage | 2007-03-20 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, Exploit-DB, GitHub Advisories, NVD |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2007-1581 is a high vulnerability (CVSS 9.3) in Php, published March 21, 2007. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 8.03%, the 94th percentile. No source names a fixed version.
References
exploit-db.com/exploits/3529
secunia.com/advisories/24542
php-security.org/2010/05/01/mops-2010-001-php-hash_update_file-already-freed-resource-access-vulnerability/index.html
php-security.org/MOPB/MOPB-28-2007.html
exchange.xforce.ibmcloud.com/vulnerabilities/33248
securityfocus.com/bid/23062
nvd.nist.gov/vuln/detail/CVE-2007-1581
github.com/advisories/GHSA-6cxr-f6hx-5j7x