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.entfixed: vendor fix RHSA-2004:392
-
Red Hat Enterprise Linux ES version 2.1fixed: 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.entfixed: vendor fix RHSA-2004:392
-
Red Hat Enterprise Linux WS version 2.1fixed: 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.entfixed: vendor fix RHSA-2004:392
-
Red Hat Linux Advanced Workstation 2.1fixed: vendor fix RHSA-2004:395
-
Red Hat Stronghold 4fixed: 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
- Published
- 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
-
trustix.org
/errata/2004/0039/
vendor-advisory, broken-link
-
distro.conectiva.com.br
/atualizacoes/?id=a&anuncio=000847
vendor-advisory, broken-link
-
debian.org
/security/2005/dsa-669
vendor-advisory, mailing-list
-
redhat.com
/support/errata/RHSA-2004-395.html
vendor-advisory, broken-link
-
redhat.com
/support/errata/RHSA-2004-405.html
vendor-advisory, broken-link
-
redhat.com
/support/errata/RHSA-2004-392.html
vendor-advisory, broken-link
-
debian.org
/security/2004/dsa-531
vendor-advisory, broken-link
-
novell.com
/linux/security/advisories/2004_21_php4.html
vendor-advisory, broken-link
-
mandrakesecure.net
/en/advisories/advisory.php?name=MDKSA-2004:068
vendor-advisory, broken-link
-
redhat.com
/support/errata/RHSA-2005-816.html
vendor-advisory, broken-link
-
marc.info
/?l=bugtraq&m=109181600614477&w=2
vendor-advisory, third-party-advisory
-
gentoo.org
/security/en/glsa/glsa-200407-13.xml
vendor-advisory, third-party-advisory
-
lists.grok.org.uk
/pipermail/full-disclosure/2004-July/023908.html
mailing-list, broken-link, url-repurposed
-
marc.info
/?l=bugtraq&m=108982983426031&w=2
mailing-list, third-party-advisory
-
oval.cisecurity.org
/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10896
vdb-entry, signature, broken-link
-
exchange.xforce.ibmcloud.com
/vulnerabilities/16693
vdb-entry, third-party-advisory
-
marc.info
/?l=bugtraq&m=109051444105182&w=2
mailing-list, third-party-advisory
-
securityfocus.com
/bid/10725
vdb-entry, broken-link, third-party-advisory
-
marc.info
/?l=bugtraq&m=108981780109154&w=2
mailing-list, third-party-advisory
Sources
- CVE List CVE-2004-0594
- NVD CVE-2004-0594
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.