CVE-2004-0594
MEDIUMEPSS 99th pctlDescription
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.
How to fix
TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works
Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.
CVSS v2 Vector
No CVSS vector data available.
Exploit Intelligence
Very high risk: more likely to be exploited than 99% of all known CVEs.
References
Related Vulnerabilities
Other CWE-367 (TOCTOU Race Condition) vulnerabilities, ordered by exploit likelihood. View all
| CVE | Severity | CVSS | EPSS | Exploited | Fix |
|---|---|---|---|---|---|
| CVE-2022-36980 | High | 8.1 | 83% | - | Fix |
| CVE-2024-30088 | High | 7.0 | 68% | KEV + Ransom | Fix |
| CVE-2024-50379 | Critical | 9.8 | 44% | - | Fix |
| CVE-2023-38146 | High | 8.8 | 39% | - | Fix |
| CVE-2024-0132 | Critical | 9.0 | 38% | - | Fix |
| CVE-2025-34027 | Unscored | - | 36% | - | - |
Common questions
How do I fix CVE-2004-0594?
Upgrade php to 4.3.7 or later.
Is CVE-2004-0594 being actively exploited?
Not that we know of. CVE-2004-0594 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 54.9% is the estimated probability that it will be exploited in the next 30 days. That is higher than 99% of all scored CVEs.
How severe is CVE-2004-0594?
CVE-2004-0594 has a CVSS v2 base score of 5.1, rated medium. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.
What does CVE-2004-0594 affect?
Published advisories record a fix for php (NVD). Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.
Embed a live status badge for CVE-2004-0594
Markdown
[](https://tridentstack.com/cve/CVE-2004-0594)HTML
<a href="https://tridentstack.com/cve/CVE-2004-0594"><img src="https://tridentstack.com/cve/badge/CVE-2004-0594.svg" alt="CVE-2004-0594"></a>Find and fix vulnerabilities across your fleet
TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.
This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-04-16.