{"id":"CVE-2004-0594","aliases":["DSA-531","DSA-669-1","EUVD-2004-0593","GHSA-jm2p-9h9p-vg22","RHSA-2004:392"],"status":"published","title":"The memory_limit functionality in PHP 4.x up to 4.3.7, and 5.x up to 5.0.0RC3, under certain...","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.","severity":{"version":"2.0","score":5.1,"vector":"AV:N/AC:H/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.54856,"percentile":0.99031,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":false},"cwes":["CWE-367"],"published":"2004-07-16T04:00:00Z","modified":"2026-06-29T10:01:15Z","exploits":[{"source":"exploitdb","id":"EDB-660","title":"PHP 4.3.7/5.0.0RC3 - 'memory_limit' Remote Overflow","type":"remote","platform":"linux","date":"2004-11-27","verified":true,"url":"https://www.exploit-db.com/exploits/660"}],"affected":[{"source":"osv","ecosystem":"Debian:3.0","package":"php4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.2-7"}]}],"bundled":2},{"source":"osv","ecosystem":"Debian:3.0","package":"php3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3:3.0.18-23.1woody2"}]}],"versions":["3:3.0.18-23.1woody1"],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::as","package":"php","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-11.1.ent"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::as","package":"php-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-11.1.ent"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::as","package":"php-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-11.1.ent"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::as","package":"php-imap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-11.1.ent"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::as","package":"php-ldap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-11.1.ent"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::as","package":"php-mysql","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-11.1.ent"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::as","package":"php-odbc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-11.1.ent"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::as","package":"php-pgsql","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-11.1.ent"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"php","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-11.1.ent"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"php-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-11.1.ent"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"php-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-11.1.ent"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"php-imap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-11.1.ent"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"php-ldap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-11.1.ent"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"php-mysql","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-11.1.ent"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"php-odbc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-11.1.ent"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"php-pgsql","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-11.1.ent"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::es","package":"php","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-11.1.ent"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::es","package":"php-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-11.1.ent"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::es","package":"php-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-11.1.ent"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::es","package":"php-imap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-11.1.ent"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::es","package":"php-ldap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-11.1.ent"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::es","package":"php-mysql","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-11.1.ent"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::es","package":"php-odbc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-11.1.ent"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::es","package":"php-pgsql","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-11.1.ent"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::ws","package":"php","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-11.1.ent"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::ws","package":"php-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-11.1.ent"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::ws","package":"php-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-11.1.ent"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::ws","package":"php-imap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-11.1.ent"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::ws","package":"php-ldap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-11.1.ent"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::ws","package":"php-mysql","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-11.1.ent"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::ws","package":"php-odbc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-11.1.ent"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::ws","package":"php-pgsql","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-11.1.ent"}]}],"bundled":2}],"products":[{"vendor":"avaya","product":"converged_communications_server"},{"vendor":"debian","product":"debian_linux"},{"vendor":"hp","product":"hp-ux"},{"vendor":"openpkg","product":"openpkg"},{"vendor":"php","product":"php"},{"vendor":"trustix","product":"secure_linux"}],"references":[{"url":"http://www.trustix.org/errata/2004/0039/","tags":["vendor-advisory","x_refsource_TRUSTIX","x_transferred","Broken Link"]},{"url":"http://lists.grok.org.uk/pipermail/full-disclosure/2004-July/023908.html","tags":["mailing-list","x_refsource_FULLDISC","x_transferred","Broken Link","URL Repurposed"]},{"url":"http://distro.conectiva.com.br/atualizacoes/?id=a\u0026anuncio=000847","tags":["vendor-advisory","x_refsource_CONECTIVA","x_transferred","Broken Link"]},{"url":"http://marc.info/?l=bugtraq\u0026m=108982983426031\u0026w=2","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred","Third Party Advisory"]},{"url":"http://www.debian.org/security/2005/dsa-669","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","Mailing List"]},{"url":"http://www.redhat.com/support/errata/RHSA-2004-395.html","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","Broken Link"]},{"url":"http://www.redhat.com/support/errata/RHSA-2004-405.html","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","Broken Link"]},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10896","tags":["vdb-entry","signature","x_refsource_OVAL","x_transferred","Broken Link"]},{"url":"http://www.redhat.com/support/errata/RHSA-2004-392.html","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","Broken Link"]},{"url":"http://www.debian.org/security/2004/dsa-531","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","Broken Link"]},{"url":"http://www.novell.com/linux/security/advisories/2004_21_php4.html","tags":["vendor-advisory","x_refsource_SUSE","x_transferred","Broken Link"]},{"url":"http://www.mandrakesecure.net/en/advisories/advisory.php?name=MDKSA-2004:068","tags":["vendor-advisory","x_refsource_MANDRAKE","x_transferred","Broken Link"]},{"url":"http://www.redhat.com/support/errata/RHSA-2005-816.html","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","Broken Link"]},{"url":"http://marc.info/?l=bugtraq\u0026m=109181600614477\u0026w=2","tags":["vendor-advisory","x_refsource_HP","x_transferred","Third Party Advisory"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/16693","tags":["vdb-entry","x_refsource_XF","x_transferred","Third Party Advisory","VDB Entry"]},{"url":"http://marc.info/?l=bugtraq\u0026m=109051444105182\u0026w=2","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred","Third Party Advisory"]},{"url":"http://www.securityfocus.com/bid/10725","tags":["vdb-entry","x_refsource_BID","x_transferred","Broken Link","Third Party Advisory","VDB Entry"]},{"url":"http://marc.info/?l=bugtraq\u0026m=108981780109154\u0026w=2","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred","Third Party Advisory"]},{"url":"http://www.gentoo.org/security/en/glsa/glsa-200407-13.xml","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2004-0594","tags":["advisory"]},{"url":"http://www.trustix.org/errata/2004/0039"},{"url":"https://github.com/advisories/GHSA-jm2p-9h9p-vg22"},{"url":"https://access.redhat.com/errata/RHSA-2004:392","tags":["advisory"]},{"url":"https://access.redhat.com/security/updates/classification/#important","tags":["article"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=127642","tags":["report"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2004/rhsa-2004_392.json","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2004-0594","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1617233","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2004-0594","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2004-0595","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1617234","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2004-0595","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2004-0595","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2004-0594","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.","status":"published","published":"2004-07-16T04:00:00Z","modified":"2024-08-08T00:24:26.318Z","updated_at":"2026-11-02T14:34:55.098814Z"}],"euvd":[{"id":"EUVD-2004-0593","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.","status":"published","published":"2004-07-16T04:00:00Z","modified":"2024-08-08T00:24:26Z","updated_at":"2026-11-03T01:15:18.677356Z"}],"ghsa":[{"id":"GHSA-jm2p-9h9p-vg22","title":"The memory_limit functionality in PHP 4.x up to 4.3.7, and 5.x up to 5.0.0RC3, under certain...","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.","status":"published","published":"2022-04-29T02:57:59Z","modified":"2026-03-22T05:09:08Z","cwes":["CWE-367"],"updated_at":"2026-11-02T15:06:46.535326Z"}],"nvd":[{"id":"CVE-2004-0594","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.","status":"published","published":"2004-07-27T04:00:00Z","modified":"2026-06-16T22:05:56.773Z","cvss":[{"version":"2.0","score":5.1,"vector":"AV:N/AC:H/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-367"],"updated_at":"2026-11-02T14:00:49.729639Z"}],"osv":[{"id":"DSA-531","title":"php4 - several vulnerabilities","status":"published","published":"2004-07-20T00:00:00Z","modified":"2026-03-09T02:10:25.85544Z","updated_at":"2026-11-02T15:46:17.543497Z"},{"id":"DSA-669-1","title":"php3 - several","status":"published","published":"2005-02-04T00:00:00Z","modified":"2026-03-09T02:09:49.948504Z","updated_at":"2026-11-02T15:46:18.296714Z"},{"id":"RHSA-2004:392","title":"Red Hat Security Advisory: php security update","status":"published","published":"2024-09-13T06:22:07Z","modified":"2026-06-29T10:01:15Z","updated_at":"2026-11-02T15:52:59.135214Z"}]}}
