{"schemaVersion":3,"id":"CVE-2004-0597","aliases":[],"status":"published","duplicateOf":null,"title":null,"description":"Multiple buffer overflows in libpng 1.2.5 and earlier, as used in multiple products, allow remote attackers to execute arbitrary code via malformed PNG images in which (1) the png_handle_tRNS function does not properly validate the length of transparency chunk (tRNS) data, or the (2) png_handle_sBIT or (3) png_handle_hIST functions do not perform sufficient bounds checking.","dates":{"published":"2004-08-05T04:00:00.000Z","modified":"2024-08-08T00:24:26.488Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":10,"severity":"high","version":"2.0","versionLabel":"v2.0","source":"NVD","vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","computed":false,"selection":"backend-summary"},"metrics":[{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":10,"severity":"high","vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.81856,"percentile":0.99648,"severity":"critical","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":-0.6810000000000094,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.82537},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.82537,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.82537,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.82537,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.82537,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.82537,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.82537,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.82537,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.82537,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.82537,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.82537,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.82537,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.82537,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.82537,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.82537,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.81856,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.81856,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.81856,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.81856,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.81856,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.81856,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.81856,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.81856,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.81856,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.81856,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.81856,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.81856,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.81856,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.81856,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.81856,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.81856,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.81856,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.81856,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.81856,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.81856,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.81856,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.81856,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.81856,"percentile":0.99648}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.82537,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.82537,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.82537,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.82537,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.82537,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.82537,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.82537,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.82537,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.81856,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.81856,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.81856,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.81856,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.81856,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.81856,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.81856,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.81856,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.81856,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.81856,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.81856,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.81856,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.81856,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.81856,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.81856,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.81856,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.81856,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.81856,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.81856,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.81856,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.81856,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.81856,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.81856,"percentile":0.99648}]},"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":"REF_B6131FE4DB4EE3BE","name":"Exploit Reference (scary.beasts.org)","source":"reference","url":"http://scary.beasts.org/security/CESA-2004-001.txt","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_C393D19A01EB4EA0","name":"Exploit Reference (securityfocus.com)","source":"reference","url":"http://www.securityfocus.com/bid/10857","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"393","name":"LibPNG 1.2.5 - 'png_jmpbuf()' Local Buffer Overflow","source":"exploit-database","url":"https://www.exploit-db.com/exploits/393","maturity":"weaponized","reliabilityScore":0.8,"verified":true,"type":"local","platforms":["linux"],"requiresAuth":null,"exploitdb":{"verified":true,"type":"local","platform":"linux","file":"exploits/linux/local/393.c","codes":["OSVDB-8326","CVE-2004-0597"]},"metasploit":null},{"id":"389","name":"LibPNG Graphics Library - Remote Buffer Overflow","source":"exploit-database","url":"https://www.exploit-db.com/exploits/389","maturity":"weaponized","reliabilityScore":0.8,"verified":true,"type":"remote","platforms":["linux"],"requiresAuth":null,"exploitdb":{"verified":true,"type":"remote","platform":"linux","file":"exploits/linux/remote/389.c","codes":["OSVDB-8326","CVE-2004-0597"]},"metasploit":null},{"id":"25094","name":"Microsoft MSN Messenger 6.2.0137 - '.png' Remote Buffer Overflow","source":"exploit-database","url":"https://www.exploit-db.com/exploits/25094","maturity":"weaponized","reliabilityScore":0.8,"verified":true,"type":"remote","platforms":["windows"],"requiresAuth":null,"exploitdb":{"verified":true,"type":"remote","platform":"windows","file":"exploits/windows/remote/25094.c","codes":["CVE-2004-0597","OSVDB-8326"]},"metasploit":null}],"exploitCount":5,"weaknesses":[],"affected":[{"vendor":"greg_roelofs","product":"libpng","name":"libpng","label":"libpng","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 1.2.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 1.2.5","eol":null,"hubHref":"/vendor/greg_roelofs/libpng"},{"vendor":"microsoft","product":"msn_messenger","name":"msn messenger","label":"msn_messenger","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"6.1","noFixRecorded":false,"fixedIn":null},{"text":"6.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"6.1 | 6.2","eol":null,"hubHref":"/vendor/microsoft/msn_messenger"},{"vendor":"microsoft","product":"windows_media_player","name":"windows media player","label":"windows_media_player","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"9","noFixRecorded":false,"fixedIn":null}],"versionsText":"9","eol":null,"hubHref":"/vendor/microsoft/windows_media_player"},{"vendor":"microsoft","product":"windows_messenger","name":"windows messenger","label":"windows_messenger","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"5.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"5.0","eol":null,"hubHref":"/vendor/microsoft/windows_messenger"}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"http://www.trustix.net/errata/2004/0040/","label":"www.trustix.net/errata/2004/0040/","hostname":"www.trustix.net","tags":["Vendor Advisory","X Refsource TRUSTIX","Patch"]},{"url":"http://sunsolve.sun.com/search/document.do?assetkey=1-66-200663-1","label":"sunsolve.sun.com/search/document.do?assetkey=1-66-200663-1","hostname":"sunsolve.sun.com","tags":["Vendor Advisory","X Refsource SUNALERT"]},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A2274","label":"oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A2274","hostname":"oval.cisecurity.org","tags":["VDB Entry","Signature","X Refsource OVAL"]},{"url":"http://www.mozilla.org/projects/security/known-vulnerabilities.html","label":"www.mozilla.org/projects/security/known-vulnerabilities.html","hostname":"www.mozilla.org","tags":["X Refsource CONFIRM"]},{"url":"http://www.redhat.com/support/errata/RHSA-2004-421.html","label":"www.redhat.com/support/errata/RHSA-2004-421.html","hostname":"www.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT"]},{"url":"http://www.redhat.com/support/errata/RHSA-2004-402.html","label":"www.redhat.com/support/errata/RHSA-2004-402.html","hostname":"www.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT"]},{"url":"http://www.gentoo.org/security/en/glsa/glsa-200408-22.xml","label":"www.gentoo.org/security/en/glsa/glsa-200408-22.xml","hostname":"www.gentoo.org","tags":["Vendor Advisory","X Refsource GENTOO","Patch"]},{"url":"http://secunia.com/advisories/22958","label":"secunia.com/advisories/22958","hostname":"secunia.com","tags":["Third Party Advisory","X Refsource SECUNIA"]},{"url":"http://sunsolve.sun.com/search/document.do?assetkey=urn:cds:docid:1-21-114816-02-1","label":"sunsolve.sun.com/search/document.do?assetkey=urn:cds:docid:1-21-114816-02-1","hostname":"sunsolve.sun.com","tags":["X Refsource CONFIRM"]},{"url":"http://marc.info/?l=bugtraq&m=109900315219363&w=2","label":"marc.info?l=bugtraq&m=109900315219363&w=2","hostname":"marc.info","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://bugzilla.fedora.us/show_bug.cgi?id=1943","label":"bugzilla.fedora.us/show_bug.cgi?id=1943","hostname":"bugzilla.fedora.us","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A594","label":"oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A594","hostname":"oval.cisecurity.org","tags":["VDB Entry","Signature","X Refsource OVAL"]},{"url":"http://www.us-cert.gov/cas/techalerts/TA05-039A.html","label":"www.us-cert.gov/cas/techalerts/TA05-039A.html","hostname":"www.us-cert.gov","tags":["Third Party Advisory","X Refsource CERT","US Government Resource"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/16894","label":"exchange.xforce.ibmcloud.com/vulnerabilities/16894","hostname":"exchange.xforce.ibmcloud.com","tags":["VDB Entry","X Refsource XF"]},{"url":"http://marc.info/?l=bugtraq&m=109761239318458&w=2","label":"marc.info?l=bugtraq&m=109761239318458&w=2","hostname":"marc.info","tags":["Vendor Advisory","X Refsource SCO"]},{"url":"http://scary.beasts.org/security/CESA-2004-001.txt","label":"scary.beasts.org/security/CESA-2004-001.txt","hostname":"scary.beasts.org","tags":["X Refsource MISC","Exploit","Vendor Advisory"]},{"url":"http://www.redhat.com/support/errata/RHSA-2004-429.html","label":"www.redhat.com/support/errata/RHSA-2004-429.html","hostname":"www.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT"]},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A2378","label":"oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A2378","hostname":"oval.cisecurity.org","tags":["VDB Entry","Signature","X Refsource OVAL"]},{"url":"http://www.securityfocus.com/bid/15495","label":"www.securityfocus.com/bid/15495","hostname":"www.securityfocus.com","tags":["VDB Entry","X Refsource BID"]},{"url":"http://www.debian.org/security/2004/dsa-536","label":"www.debian.org/security/2004/dsa-536","hostname":"www.debian.org","tags":["Vendor Advisory","X Refsource DEBIAN","Patch"]},{"url":"http://www.kb.cert.org/vuls/id/388984","label":"www.kb.cert.org/vuls/id/388984","hostname":"www.kb.cert.org","tags":["Third Party Advisory","X Refsource CERT VN","US Government Resource"]},{"url":"http://lists.apple.com/mhonarc/security-announce/msg00056.html","label":"lists.apple.com/mhonarc/security-announce/msg00056.html","hostname":"lists.apple.com","tags":["Vendor Advisory","X Refsource APPLE"]},{"url":"http://www.kb.cert.org/vuls/id/817368","label":"www.kb.cert.org/vuls/id/817368","hostname":"www.kb.cert.org","tags":["Third Party Advisory","X Refsource CERT VN","US Government Resource"]},{"url":"http://marc.info/?l=bugtraq&m=109163866717909&w=2","label":"marc.info?l=bugtraq&m=109163866717909&w=2","hostname":"marc.info","tags":["Mailing List","X Refsource BUGTRAQ"]},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A4492","label":"oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A4492","hostname":"oval.cisecurity.org","tags":["VDB Entry","Signature","X Refsource OVAL"]},{"url":"http://marc.info/?l=bugtraq&m=109181639602978&w=2","label":"marc.info?l=bugtraq&m=109181639602978&w=2","hostname":"marc.info","tags":["Vendor Advisory","X Refsource HP"]},{"url":"https://docs.microsoft.com/en-us/security-updates/securitybulletins/2005/ms05-009","label":"docs.microsoft.com/en-us/security-updates/securitybulletins/2005/ms05-009","hostname":"docs.microsoft.com","tags":["Vendor Advisory","X Refsource MS"]},{"url":"http://www.mandriva.com/security/advisories?name=MDKSA-2006:213","label":"www.mandriva.com/security/advisories?name=MDKSA-2006:213","hostname":"www.mandriva.com","tags":["Vendor Advisory","X Refsource MANDRIVA"]},{"url":"http://www.us-cert.gov/cas/techalerts/TA04-217A.html","label":"www.us-cert.gov/cas/techalerts/TA04-217A.html","hostname":"www.us-cert.gov","tags":["Third Party Advisory","X Refsource CERT","US Government Resource"]},{"url":"http://www.adobe.com/support/downloads/detail.jsp?ftpID=2679","label":"www.adobe.com/support/downloads/detail.jsp?ftpID=2679","hostname":"www.adobe.com","tags":["X Refsource CONFIRM","Patch"]},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A7709","label":"oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A7709","hostname":"oval.cisecurity.org","tags":["VDB Entry","Signature","X Refsource OVAL"]},{"url":"http://www.mandriva.com/security/advisories?name=MDKSA-2006:212","label":"www.mandriva.com/security/advisories?name=MDKSA-2006:212","hostname":"www.mandriva.com","tags":["Vendor Advisory","X Refsource MANDRIVA"]},{"url":"http://marc.info/?l=bugtraq&m=110796779903455&w=2","label":"marc.info?l=bugtraq&m=110796779903455&w=2","hostname":"marc.info","tags":["Mailing List","X Refsource BUGTRAQ"]},{"url":"http://www.coresecurity.com/common/showdoc.php?idx=421&idxseccion=10","label":"www.coresecurity.com/common/showdoc.php?idx=421&idxseccion=10","hostname":"www.coresecurity.com","tags":["X Refsource MISC"]},{"url":"http://distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000856","label":"distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000856","hostname":"distro.conectiva.com.br","tags":["Vendor Advisory","X Refsource CONECTIVA"]},{"url":"http://www.securityfocus.com/bid/10857","label":"www.securityfocus.com/bid/10857","hostname":"www.securityfocus.com","tags":["VDB Entry","X Refsource BID","Exploit","Patch","Vendor Advisory"]},{"url":"http://www.novell.com/linux/security/advisories/2004_23_libpng.html","label":"www.novell.com/linux/security/advisories/2004_23_libpng.html","hostname":"www.novell.com","tags":["Vendor Advisory","X Refsource SUSE","Patch"]},{"url":"http://www.gentoo.org/security/en/glsa/glsa-200408-03.xml","label":"www.gentoo.org/security/en/glsa/glsa-200408-03.xml","hostname":"www.gentoo.org","tags":["Vendor Advisory","X Refsource GENTOO","Patch"]},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11284","label":"oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11284","hostname":"oval.cisecurity.org","tags":["VDB Entry","Signature","X Refsource OVAL"]},{"url":"http://www.mandriva.com/security/advisories?name=MDKSA-2004:079","label":"www.mandriva.com/security/advisories?name=MDKSA-2004:079","hostname":"www.mandriva.com","tags":["Vendor Advisory","X Refsource MANDRAKE"]},{"url":"http://secunia.com/advisories/22957","label":"secunia.com/advisories/22957","hostname":"secunia.com","tags":["Third Party Advisory","X Refsource SECUNIA"]}],"lineage":{"upstream":[],"downstream":["DSA-536","RHSA-2004:402"],"duplicates":["CVE-2004-0954"],"related":[]},"timeline":[{"kind":"published","date":"2004-08-05T04:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-08T00:24:26.488Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":90,"level":"critical","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T12:37:39.843Z","stale":false,"partial":false}}