HOMEVULNERABILITIESCVE-2004-0594
MEDIUMPOC

CVE-2004-0594

CWE-367Published: July 27, 2004· Updated: Jun 16, 2026

5.1
CVSS v3.1

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.

NVD Source

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

Exploitability
Attack VectorNetwork
Attack ComplexityHigh
Privileges Req.
User Interaction
Scope
Impact
ConfidentialityP
IntegrityP
AvailabilityP
AV:N/AC:H/Au:N/C:P/I:P/A:P

Affected Vendors & Products

avaya1 product(s)
converged communications server
Debian1 product(s)
debian linux
HP1 product(s)
hp-ux
openpkg1 product(s)
openpkg
PHP1 product(s)
php
trustix1 product(s)
secure linux
Source: NVD CPE · 13 total CPE entries

Exploit & PoC Resources

POC AVAILABLEProof-of-concept code exists
External links open in a new tab. Always verify in a controlled environment before use.

Official Patches & Advisories

All References (38)

Quick Facts

CVE IDCVE-2004-0594
CVSS Score5.1 / 10
SeverityMEDIUM
WeaknessCWE-367
CISA KEVNo
ExploitPOC
Affected6 vendor(s)
PublishedJul 27, 2004

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
Data sourced from NVD (NIST), CISA KEV, and EPSS (FIRST). Analysis generated by CTIWATCH.COM. CVE data is provided under the NVD usage policy.