CVE-2004-0594
Description
The memory_limit functionality in PHP 4.x up to 4.3.7, and 5.x up to 5.0.0RC3, under certain conditions such as when register_globals is enabled, allows remote attackers to execute arbitrary code by triggering a memory_limit abort during execution of the zend_hash_init function and overwriting a HashTable destructor pointer before the initialization of key data structures is complete.
Severity
not scored
CVSS v3
not scored
Exploit chance (EPSS)
54.856%
chance of exploitation in the next 30 days
higher than 99% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 0
Exploit-DB: 1
Weakness
- CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition
Timeline
- 2004-07-16Published by the CNA04:00 UTC
- 2004-11-27First Exploit-DB entry (EDB-ID 660)134 days after publication
Exploit and advisory records
| Exploit-DB | Type | Platform | Published | EDB-verified |
|---|---|---|---|---|
| EDB-ID 660 | remote | linux | 2004-11-27 | yes |
Affected products
| Vendor | Product |
|---|---|
| avaya | converged_communications_server |
| debian | debian_linux |
| hp | hp-ux |
| openpkg | openpkg |
| php | php |
| trustix | secure_linux |
References
- http://distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000847
- http://marc.info/?l=bugtraq&m=109181600614477&w=2
- http://www.debian.org/security/2004/dsa-531
- http://www.debian.org/security/2005/dsa-669
- http://www.gentoo.org/security/en/glsa/glsa-200407-13.xml
- http://www.mandrakesecure.net/en/advisories/advisory.php?name=MDKSA-2004:068
- http://www.novell.com/linux/security/advisories/2004_21_php4.html
- http://www.redhat.com/support/errata/RHSA-2004-392.html
- http://www.redhat.com/support/errata/RHSA-2004-395.html
- http://www.redhat.com/support/errata/RHSA-2004-405.html
- http://www.redhat.com/support/errata/RHSA-2005-816.html
- http://www.trustix.org/errata/2004/0039/
- http://lists.grok.org.uk/pipermail/full-disclosure/2004-July/023908.html
- http://marc.info/?l=bugtraq&m=108981780109154&w=2
- http://marc.info/?l=bugtraq&m=108982983426031&w=2
- http://marc.info/?l=bugtraq&m=109051444105182&w=2
- http://www.securityfocus.com/bid/10725
- https://exchange.xforce.ibmcloud.com/vulnerabilities/16693
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10896
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2004-0594'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2004-0594'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2004-0594'curl 'https://api.contrastcyber.com/cve_products/CVE-2004-0594'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).