PHP memory_limit Race Condition Remote Code Execution
CVE-2004-0594 is a remote code-execution vulnerability in PHP 4 through 4.3.7 and PHP 5 through 5.0.0RC3. Under certain conditions, including configurations with register_globals enabled, an attacker can trigger a memory_limit abort while zend_hash_init is executing. The premature abort leaves key data structures incompletely initialized and permits overwriting of a HashTable destructor pointer.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
A remote attacker can achieve arbitrary code execution in the context of the affected PHP process by corrupting the HashTable destructor pointer during incomplete initialization.
If you can’t patch tonight, do this now.
If immediate patching is not possible, reduce exposure by disabling register_globals where it is enabled and by limiting untrusted remote access to applications running vulnerable PHP versions. Additional hardening should include minimizing attack surface for externally reachable PHP applications and monitoring for abnormal crashes or interpreter instability consistent with memory corruption attempts.
Patch, then assume compromise.
Upgrade PHP to a version newer than PHP 4.3.7 and newer than PHP 5.0.0RC3 that fixes the memory_limit handling flaw. Where possible, move to a maintained PHP release line rather than applying only minimal version changes.
No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
3 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.