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...
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.
Exploit likelihood
What each source reports
NVD Score used
5.1
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.
- Record
CVE-2004-0594- CVSS 2.0
- 5.1 Medium
AV:N/AC:H/Au:N/C:P/I:P/A:P - Weakness
- CWE-367
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2004-0594- Updated
- 2026-11-02
EUVDEUVD-2004-0593 No score
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.
- Record
EUVD-2004-0593- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-jm2p-9h9p-vg22 No score
The memory_limit functionality in PHP 4.x up to 4.3.7, and 5.x up to 5.0.0RC3, under certain...
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.
- Record
GHSA-jm2p-9h9p-vg22- Weakness
- CWE-367
- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
php4Debian:3.0 From an advisory covering 2 CVEs |
before 4.1.2-7 | 4.1.2-7 |
php3Debian:3.0 From an advisory covering 2 CVEs |
before 3:3.0.18-23.1woody2, plus listed versions 3:3.0.18-23.1woody1 |
3:3.0.18-23.1woody2 |
phpRed Hat:enterprise_linux:3::as From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-debuginfoRed Hat:enterprise_linux:3::as From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-develRed Hat:enterprise_linux:3::as From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-imapRed Hat:enterprise_linux:3::as From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-ldapRed Hat:enterprise_linux:3::as From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-mysqlRed Hat:enterprise_linux:3::as From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-odbcRed Hat:enterprise_linux:3::as From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-pgsqlRed Hat:enterprise_linux:3::as From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
Show 24 moreShow less
| Package | Affected | Fixed |
|---|---|---|
phpRed Hat:enterprise_linux:3::desktop From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-debuginfoRed Hat:enterprise_linux:3::desktop From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-develRed Hat:enterprise_linux:3::desktop From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-imapRed Hat:enterprise_linux:3::desktop From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-ldapRed Hat:enterprise_linux:3::desktop From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-mysqlRed Hat:enterprise_linux:3::desktop From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-odbcRed Hat:enterprise_linux:3::desktop From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-pgsqlRed Hat:enterprise_linux:3::desktop From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
phpRed Hat:enterprise_linux:3::es From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-debuginfoRed Hat:enterprise_linux:3::es From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-develRed Hat:enterprise_linux:3::es From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-imapRed Hat:enterprise_linux:3::es From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-ldapRed Hat:enterprise_linux:3::es From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-mysqlRed Hat:enterprise_linux:3::es From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-odbcRed Hat:enterprise_linux:3::es From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-pgsqlRed Hat:enterprise_linux:3::es From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
phpRed Hat:enterprise_linux:3::ws From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-debuginfoRed Hat:enterprise_linux:3::ws From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-develRed Hat:enterprise_linux:3::ws From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-imapRed Hat:enterprise_linux:3::ws From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-ldapRed Hat:enterprise_linux:3::ws From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-mysqlRed Hat:enterprise_linux:3::ws From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-odbcRed Hat:enterprise_linux:3::ws From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-pgsqlRed Hat:enterprise_linux:3::ws From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| Exploit-DB | PHP 4.3.7/5.0.0RC3 - 'memory_limit' Remote Overflow | 2004-11-27 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, Exploit-DB, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2004-0594 is a medium vulnerability (CVSS 5.1) in Php, published July 16, 2004. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 54.9%, the 99th percentile. No source names a fixed version.
References
trustix.org/errata/2004/0039
lists.grok.org.uk/pipermail/full-disclosure/2004-July/023908.html
distro.conectiva.com.br/atualizacoes?id=a&anuncio=000847
marc.info?l=bugtraq&m=108982983426031&w=2
debian.org/security/2005/dsa-669
redhat.com/support/errata/RHSA-2004-395.html
Show 26 moreShow less
redhat.com/support/errata/RHSA-2004-405.html
oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10896
redhat.com/support/errata/RHSA-2004-392.html
debian.org/security/2004/dsa-531
novell.com/linux/security/advisories/2004_21_php4.html
mandrakesecure.net/en/advisories/advisory.php?name=MDKSA-2004:068
redhat.com/support/errata/RHSA-2005-816.html
marc.info?l=bugtraq&m=109181600614477&w=2
exchange.xforce.ibmcloud.com/vulnerabilities/16693
marc.info?l=bugtraq&m=109051444105182&w=2
securityfocus.com/bid/10725
marc.info?l=bugtraq&m=108981780109154&w=2
gentoo.org/security/en/glsa/glsa-200407-13.xml
nvd.nist.gov/vuln/detail/CVE-2004-0594
github.com/advisories/GHSA-jm2p-9h9p-vg22
access.redhat.com/errata/RHSA-2004:392
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=127642
security.access.redhat.com/data/csaf/v2/advisories/2004/rhsa-2004_392.json
access.redhat.com/security/cve/CVE-2004-0594
bugzilla.redhat.com/show_bug.cgi?id=1617233
cve.org/CVERecord?id=CVE-2004-0594
access.redhat.com/security/cve/CVE-2004-0595
bugzilla.redhat.com/show_bug.cgi?id=1617234
cve.org/CVERecord?id=CVE-2004-0595
nvd.nist.gov/vuln/detail/CVE-2004-0595