Skip to content
Fencer Vulns
medium 5.1

CVE-2004-0594 json

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 en…

published 2004-07-16 22 y ago modified 2026-06-16 4 mo ago also EUVD-2004-0593

cvss
5.1
version 2.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
54.9%
EPSS 54.9% chance of exploitation in 30 days, percentile 99%
public exploits
1
Exploit-DB

Summary

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.

Patch / fix

  • php php 4.3.7
  • php RHEL 3 4.3.2-11.1.ent
  • php-imap RHEL 3 4.3.2-11.1.ent
  • php-ldap RHEL 3 4.3.2-11.1.ent
  • php-odbc RHEL 3 4.3.2-11.1.ent
  • php-mysql RHEL 3 4.3.2-11.1.ent
  • php-pgsql RHEL 3 4.3.2-11.1.ent

red hat advisories RHSA-2004:392

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2004-0594 updated

security flaw

  • Red Hat Desktop version 3 php 4.3.2-11.1.ent, php-imap 4.3.2-11.1.ent, php-ldap 4.3.2-11.1.ent, php-odbc 4.3.2-11.1.ent, php-mysql 4.3.2-11.1.ent, php-pgsql 4.3.2-11.1.ent Red Hat Enterprise Linux AS version 3 php 4.3.2-11.1.ent, php-imap 4.3.2-11.1.ent, php-ldap 4.3.2-11.1.ent, php-odbc 4.3.2-11.1.ent, php-mysql 4.3.2-11.1.ent, php-pgsql 4.3.2-11.1.ent
    fixed: vendor fix RHSA-2004:392
  • Red Hat Enterprise Linux ES version 2.1
    fixed: vendor fix RHSA-2004:395
  • Red Hat Enterprise Linux ES version 3 php 4.3.2-11.1.ent, php-imap 4.3.2-11.1.ent, php-ldap 4.3.2-11.1.ent, php-odbc 4.3.2-11.1.ent, php-mysql 4.3.2-11.1.ent, php-pgsql 4.3.2-11.1.ent
    fixed: vendor fix RHSA-2004:392
  • Red Hat Enterprise Linux WS version 2.1
    fixed: vendor fix RHSA-2004:395
  • Red Hat Enterprise Linux WS version 3 php 4.3.2-11.1.ent, php-imap 4.3.2-11.1.ent, php-ldap 4.3.2-11.1.ent, php-odbc 4.3.2-11.1.ent, php-mysql 4.3.2-11.1.ent, php-pgsql 4.3.2-11.1.ent
    fixed: vendor fix RHSA-2004:392
  • Red Hat Linux Advanced Workstation 2.1
    fixed: vendor fix RHSA-2004:395
  • Red Hat Stronghold 4
    fixed: vendor fix RHSA-2004:405
  • Red Hat Stronghold 4.0 for Red Hat Enterprise Linux AS (version 2.1)
    fixed: vendor fix RHSA-2005:816

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Timeline

  1. Published
  2. First public exploit (EDB-660)

Exploit prediction

54.86% chance of exploitation in the next 30 days, higher than 99% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • EDB-660 PHP 4.3.7/5.0.0RC3 - 'memory_limit' Remote Overflow remote, 2004-11-27

CVSS scores

assigned by version score vector
NVD 2.0 5.1 AV:N/AC:H/Au:N/C:P/I:P/A:P

Classification

Weakness
  • CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition
Technology feeds

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.