CVE-2004-0594
CWE-367Published: July 27, 2004· Updated: Jun 16, 2026
Official 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.
Technical Analysis
CVE-2004-0594 can be exploited remotely over the network without requiring physical or adjacent access, significantly expanding the attack surface for threat actors.
Exploitation requires some privileges, which limits the exposure to scenarios where an attacker has already gained initial access.
A proof-of-concept (PoC) exploit exists for CVE-2004-0594. While not yet confirmed in active campaigns, the availability of PoC code increases exploitation risk substantially.
CVSS v3.1 Vector Breakdown
Affected Vendors & Products
Exploit & PoC Resources
Official Patches & Advisories
All References (38)
Quick Facts
Related CVEs (CWE-367)
Recommended Actions
- →Apply vendor patches immediately
- →Monitor CVE-2004-0594 in threat intel feeds
- →Review IDS/IPS signatures for exploitation attempts