{"schemaVersion":3,"id":"CVE-2004-0594","aliases":[],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2004-07-16T04:00:00.000Z","modified":"2024-08-08T00:24:26.318Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.1,"severity":"medium","version":"2.0","versionLabel":"v2.0","source":"NVD","vector":"AV:N/AC:H/Au:N/C:P/I:P/A:P","computed":false,"selection":"backend-summary"},"metrics":[{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":5.1,"severity":"medium","vector":"AV:N/AC:H/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.54856,"percentile":0.99016,"severity":"critical","asOf":"2026-10-18T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-18T00:00:00.000Z","baselineScore":0.54856},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.54856,"percentile":0.99016}],"last30":[{"date":"2026-09-18T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.54856,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.54856,"percentile":0.99016}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"660","name":"PHP 4.3.7/5.0.0RC3 - 'memory_limit' Remote Overflow","source":"exploit-database","url":"https://www.exploit-db.com/exploits/660","maturity":"weaponized","reliabilityScore":0.8,"verified":true,"type":"remote","platforms":["linux"],"requiresAuth":null,"exploitdb":{"verified":true,"type":"remote","platform":"linux","file":"exploits/linux/remote/660.c","codes":["OSVDB-7870","CVE-2004-0594"]},"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-367","name":"Time-of-check Time-of-use (TOCTOU) Race Condition","description":"The product checks the state of a resource before using that resource, but the resource's state can change between the check and the use in a way that invalidates the results of the check.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/367.html"}],"affected":[{"vendor":"avaya","product":"converged_communications_server","name":"converged communications server","label":"converged_communications_server","ecosystem":null,"cpePart":"h","purl":null,"purlType":null,"versions":[{"text":"2.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"2.0","eol":null,"hubHref":"/vendor/avaya/converged_communications_server"},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"3.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"3.0","eol":{"isEol":true,"eolDate":"2006-06-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"3.0","label":"3.0 (Woody)","eolFrom":"2006-06-30T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":"3.0r6"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"hp","product":"hp-ux","name":"hp-ux","label":"hp-ux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"b.11.00","noFixRecorded":false,"fixedIn":null},{"text":"b.11.11","noFixRecorded":false,"fixedIn":null},{"text":"b.11.22","noFixRecorded":false,"fixedIn":null},{"text":"b.11.23","noFixRecorded":false,"fixedIn":null}],"versionsText":"b.11.00 | b.11.11 | b.11.22 | b.11.23","eol":null,"hubHref":"/vendor/hp/hp-ux"},{"vendor":"openpkg","product":"openpkg","name":"openpkg","label":"openpkg","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"2.0","noFixRecorded":false,"fixedIn":null},{"text":"2.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"2.0 | 2.1","eol":null,"hubHref":"/vendor/openpkg/openpkg"},{"vendor":"php","product":"php","name":"PHP","label":"php","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 4.0, < 4.3.7","noFixRecorded":false,"fixedIn":null},{"text":"5.0.0:beta1","noFixRecorded":false,"fixedIn":null},{"text":"5.0.0:beta2","noFixRecorded":false,"fixedIn":null},{"text":"5.0.0:beta3","noFixRecorded":false,"fixedIn":null},{"text":"5.0.0:beta4","noFixRecorded":false,"fixedIn":null},{"text":"5.0.0:rc1","noFixRecorded":false,"fixedIn":null},{"text":"5.0.0:rc2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.0, < 4.3.7 | 5.0.0:beta1 | 5.0.0:beta2 | 5.0.0:beta3 | 5.0.0:beta4 | 5.0.0:rc1 | 5.0.0:rc2","eol":{"isEol":true,"eolDate":"2005-09-05T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"5.0","label":"5.0","eolFrom":"2005-09-05T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":"5.0.5"},"product":{"name":"php","label":"PHP","category":"lang"}},"hubHref":"/vendor/php/php"},{"vendor":"trustix","product":"secure_linux","name":"secure linux","label":"secure_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"1.5","noFixRecorded":false,"fixedIn":null},{"text":"2.0","noFixRecorded":false,"fixedIn":null},{"text":"2.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"1.5 | 2.0 | 2.1","eol":null,"hubHref":"/vendor/trustix/secure_linux"}],"affectedCount":6,"eol":{"hasEol":true,"count":2},"references":[{"url":"http://www.trustix.org/errata/2004/0039/","label":"www.trustix.org/errata/2004/0039/","hostname":"www.trustix.org","tags":["Vendor Advisory","X Refsource TRUSTIX","Broken Link"]},{"url":"http://lists.grok.org.uk/pipermail/full-disclosure/2004-July/023908.html","label":"lists.grok.org.uk/pipermail/full-disclosure/2004-July/023908.html","hostname":"lists.grok.org.uk","tags":["Mailing List","X Refsource FULLDISC","Broken Link","URL Repurposed"]},{"url":"http://distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000847","label":"distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000847","hostname":"distro.conectiva.com.br","tags":["Vendor Advisory","X Refsource CONECTIVA","Broken Link"]},{"url":"http://marc.info/?l=bugtraq&m=108982983426031&w=2","label":"marc.info?l=bugtraq&m=108982983426031&w=2","hostname":"marc.info","tags":["Mailing List","X Refsource BUGTRAQ","Third Party Advisory"]},{"url":"http://www.debian.org/security/2005/dsa-669","label":"www.debian.org/security/2005/dsa-669","hostname":"www.debian.org","tags":["Vendor Advisory","X Refsource DEBIAN","Mailing List"]},{"url":"http://www.redhat.com/support/errata/RHSA-2004-395.html","label":"www.redhat.com/support/errata/RHSA-2004-395.html","hostname":"www.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Broken Link"]},{"url":"http://www.redhat.com/support/errata/RHSA-2004-405.html","label":"www.redhat.com/support/errata/RHSA-2004-405.html","hostname":"www.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Broken Link"]},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10896","label":"oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10896","hostname":"oval.cisecurity.org","tags":["VDB Entry","Signature","X Refsource OVAL","Broken Link"]},{"url":"http://www.redhat.com/support/errata/RHSA-2004-392.html","label":"www.redhat.com/support/errata/RHSA-2004-392.html","hostname":"www.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Broken Link"]},{"url":"http://www.debian.org/security/2004/dsa-531","label":"www.debian.org/security/2004/dsa-531","hostname":"www.debian.org","tags":["Vendor Advisory","X Refsource DEBIAN","Broken Link"]},{"url":"http://www.novell.com/linux/security/advisories/2004_21_php4.html","label":"www.novell.com/linux/security/advisories/2004_21_php4.html","hostname":"www.novell.com","tags":["Vendor Advisory","X Refsource SUSE","Broken Link"]},{"url":"http://www.mandrakesecure.net/en/advisories/advisory.php?name=MDKSA-2004:068","label":"www.mandrakesecure.net/en/advisories/advisory.php?name=MDKSA-2004:068","hostname":"www.mandrakesecure.net","tags":["Vendor Advisory","X Refsource MANDRAKE","Broken Link"]},{"url":"http://www.redhat.com/support/errata/RHSA-2005-816.html","label":"www.redhat.com/support/errata/RHSA-2005-816.html","hostname":"www.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Broken Link"]},{"url":"http://marc.info/?l=bugtraq&m=109181600614477&w=2","label":"marc.info?l=bugtraq&m=109181600614477&w=2","hostname":"marc.info","tags":["Vendor Advisory","X Refsource HP","Third Party Advisory"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/16693","label":"exchange.xforce.ibmcloud.com/vulnerabilities/16693","hostname":"exchange.xforce.ibmcloud.com","tags":["VDB Entry","X Refsource XF","Third Party Advisory"]},{"url":"http://marc.info/?l=bugtraq&m=109051444105182&w=2","label":"marc.info?l=bugtraq&m=109051444105182&w=2","hostname":"marc.info","tags":["Mailing List","X Refsource BUGTRAQ","Third Party Advisory"]},{"url":"http://www.securityfocus.com/bid/10725","label":"www.securityfocus.com/bid/10725","hostname":"www.securityfocus.com","tags":["VDB Entry","X Refsource BID","Broken Link","Third Party Advisory"]},{"url":"http://marc.info/?l=bugtraq&m=108981780109154&w=2","label":"marc.info?l=bugtraq&m=108981780109154&w=2","hostname":"marc.info","tags":["Mailing List","X Refsource BUGTRAQ","Third Party Advisory"]},{"url":"http://www.gentoo.org/security/en/glsa/glsa-200407-13.xml","label":"www.gentoo.org/security/en/glsa/glsa-200407-13.xml","hostname":"www.gentoo.org","tags":["Vendor Advisory","X Refsource GENTOO","Third Party Advisory"]}],"lineage":{"upstream":[],"downstream":["DSA-531","DSA-669-1","RHSA-2004:392"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2004-07-16T04:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-08T00:24:26.318Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":41,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T04:51:19.930Z","stale":false,"partial":false}}