CVE-2004-0594

CVE-2004-0594 is a medium-severity vulnerability in Openpkg with a CVSS 2.0 base score of 5.1. Its EPSS exploit-prediction score of 55% places it in the 99th percentile, indicating an elevated likelihood of exploitation. The underlying weakness is classified as CWE-367.

Key facts

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.

Frequently asked questions

What is CVE-2004-0594?
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 severe is CVE-2004-0594?
CVE-2004-0594 has a CVSS 2.0 base score of 5.1, rated medium severity.
Is CVE-2004-0594 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 55% (99th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2004-0594?
CVE-2004-0594 primarily affects Openpkg. In total, 18 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
How do I fix CVE-2004-0594?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
When was CVE-2004-0594 published?
CVE-2004-0594 was published on 2004-07-27 and last updated on 2026-06-16.

References

Affected products (18)

More vulnerabilities in Openpkg

All CVEs affecting Openpkg →

Other CWE-367 (Time-of-check Time-of-use (TOCTOU) Race Condition) vulnerabilities

Browse all CWE-367 (Time-of-check Time-of-use (TOCTOU) Race Condition) vulnerabilities →