{"id":"CVE-2004-0597","aliases":["DSA-536","EUVD-2004-0596","GHSA-pjf2-ggxp-rg8p","RHSA-2004:402"],"status":"published","title":"Multiple buffer overflows in libpng 1.2.5 and earlier, as used in multiple products, allow remote...","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.","severity":{"version":"2.0","score":10,"vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.81856,"percentile":0.99651,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":false},"published":"2004-08-04T00:00:00Z","modified":"2026-06-26T10:01:25Z","exploits":[{"source":"exploitdb","id":"EDB-389","title":"LibPNG Graphics Library - Remote Buffer Overflow","type":"remote","platform":"linux","date":"2004-08-11","verified":true,"url":"https://www.exploit-db.com/exploits/389"},{"source":"exploitdb","id":"EDB-393","title":"LibPNG 1.2.5 - 'png_jmpbuf()' Local Buffer Overflow","type":"local","platform":"linux","date":"2004-08-13","verified":true,"url":"https://www.exploit-db.com/exploits/393"},{"source":"exploitdb","id":"EDB-25094","title":"Microsoft MSN Messenger 6.2.0137 - '.png' Remote Buffer Overflow","type":"remote","platform":"windows","date":"2005-02-08","verified":true,"url":"https://www.exploit-db.com/exploits/25094"}],"affected":[{"source":"osv","ecosystem":"Debian:3.0","package":"libpng","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.12-3.woody.7"}]}],"bundled":4},{"source":"osv","ecosystem":"Debian:3.0","package":"libpng3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.1-1.1.woody.7"}]}],"bundled":4},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::as","package":"libpng","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:1.2.2-25"}]}],"bundled":4},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::as","package":"libpng-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:1.2.2-25"}]}],"bundled":4},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::as","package":"libpng-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:1.2.2-25"}]}],"bundled":4},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::as","package":"libpng10","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.0.13-15"}]}],"bundled":4},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::as","package":"libpng10-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.0.13-15"}]}],"bundled":4},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::as","package":"libpng10-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.0.13-15"}]}],"bundled":4},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"libpng","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:1.2.2-25"}]}],"bundled":4},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"libpng-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:1.2.2-25"}]}],"bundled":4},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"libpng-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:1.2.2-25"}]}],"bundled":4},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"libpng10","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.0.13-15"}]}],"bundled":4},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"libpng10-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.0.13-15"}]}],"bundled":4},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"libpng10-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.0.13-15"}]}],"bundled":4},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::es","package":"libpng","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:1.2.2-25"}]}],"bundled":4},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::es","package":"libpng-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:1.2.2-25"}]}],"bundled":4},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::es","package":"libpng-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:1.2.2-25"}]}],"bundled":4},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::es","package":"libpng10","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.0.13-15"}]}],"bundled":4},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::es","package":"libpng10-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.0.13-15"}]}],"bundled":4},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::es","package":"libpng10-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.0.13-15"}]}],"bundled":4},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::ws","package":"libpng","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:1.2.2-25"}]}],"bundled":4},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::ws","package":"libpng-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:1.2.2-25"}]}],"bundled":4},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::ws","package":"libpng-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:1.2.2-25"}]}],"bundled":4},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::ws","package":"libpng10","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.0.13-15"}]}],"bundled":4},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::ws","package":"libpng10-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.0.13-15"}]}],"bundled":4},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::ws","package":"libpng10-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.0.13-15"}]}],"bundled":4}],"products":[{"vendor":"greg_roelofs","product":"libpng"},{"vendor":"microsoft","product":"msn_messenger"},{"vendor":"microsoft","product":"windows_98se"},{"vendor":"microsoft","product":"windows_me"},{"vendor":"microsoft","product":"windows_media_player"},{"vendor":"microsoft","product":"windows_messenger"}],"references":[{"url":"http://www.trustix.net/errata/2004/0040/","tags":["vendor-advisory","x_refsource_TRUSTIX","x_transferred","Patch","Vendor Advisory"]},{"url":"http://sunsolve.sun.com/search/document.do?assetkey=1-66-200663-1","tags":["vendor-advisory","x_refsource_SUNALERT","x_transferred"]},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A2274","tags":["vdb-entry","signature","x_refsource_OVAL","x_transferred"]},{"url":"http://www.mozilla.org/projects/security/known-vulnerabilities.html","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"ftp://ftp.sco.com/pub/updates/OpenServer/SCOSA-2005.49/SCOSA-2005.49.txt","tags":["vendor-advisory","x_refsource_SCO","x_transferred"]},{"url":"http://www.redhat.com/support/errata/RHSA-2004-421.html","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","Vendor Advisory"]},{"url":"http://www.redhat.com/support/errata/RHSA-2004-402.html","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"]},{"url":"http://www.gentoo.org/security/en/glsa/glsa-200408-22.xml","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred","Patch","Vendor Advisory"]},{"url":"http://secunia.com/advisories/22958","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://sunsolve.sun.com/search/document.do?assetkey=urn:cds:docid:1-21-114816-02-1","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://marc.info/?l=bugtraq\u0026m=109900315219363\u0026w=2","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"]},{"url":"https://bugzilla.fedora.us/show_bug.cgi?id=1943","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"]},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A594","tags":["vdb-entry","signature","x_refsource_OVAL","x_transferred"]},{"url":"http://www.us-cert.gov/cas/techalerts/TA05-039A.html","tags":["third-party-advisory","x_refsource_CERT","x_transferred","Third Party Advisory","US Government Resource"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/16894","tags":["vdb-entry","x_refsource_XF","x_transferred"]},{"url":"http://marc.info/?l=bugtraq\u0026m=109761239318458\u0026w=2","tags":["vendor-advisory","x_refsource_SCO","x_transferred"]},{"url":"http://scary.beasts.org/security/CESA-2004-001.txt","tags":["x_refsource_MISC","x_transferred","Exploit","Vendor Advisory"]},{"url":"http://www.redhat.com/support/errata/RHSA-2004-429.html","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","Vendor Advisory"]},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A2378","tags":["vdb-entry","signature","x_refsource_OVAL","x_transferred"]},{"url":"http://www.securityfocus.com/bid/15495","tags":["vdb-entry","x_refsource_BID","x_transferred"]},{"url":"http://www.debian.org/security/2004/dsa-536","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","Patch","Vendor Advisory"]},{"url":"http://www.kb.cert.org/vuls/id/388984","tags":["third-party-advisory","x_refsource_CERT-VN","x_transferred","Third Party Advisory","US Government Resource"]},{"url":"http://lists.apple.com/mhonarc/security-announce/msg00056.html","tags":["vendor-advisory","x_refsource_APPLE","x_transferred"]},{"url":"http://www.kb.cert.org/vuls/id/817368","tags":["third-party-advisory","x_refsource_CERT-VN","x_transferred","Third Party Advisory","US Government Resource"]},{"url":"http://marc.info/?l=bugtraq\u0026m=109163866717909\u0026w=2","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"]},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A4492","tags":["vdb-entry","signature","x_refsource_OVAL","x_transferred"]},{"url":"http://marc.info/?l=bugtraq\u0026m=109181639602978\u0026w=2","tags":["vendor-advisory","x_refsource_HP","x_transferred"]},{"url":"https://docs.microsoft.com/en-us/security-updates/securitybulletins/2005/ms05-009","tags":["vendor-advisory","x_refsource_MS","x_transferred"]},{"url":"http://www.mandriva.com/security/advisories?name=MDKSA-2006:213","tags":["vendor-advisory","x_refsource_MANDRIVA","x_transferred"]},{"url":"http://www.us-cert.gov/cas/techalerts/TA04-217A.html","tags":["third-party-advisory","x_refsource_CERT","x_transferred","Third Party Advisory","US Government Resource"]},{"url":"http://www.adobe.com/support/downloads/detail.jsp?ftpID=2679","tags":["x_refsource_CONFIRM","x_transferred","Patch"]},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A7709","tags":["vdb-entry","signature","x_refsource_OVAL","x_transferred"]},{"url":"http://www.mandriva.com/security/advisories?name=MDKSA-2006:212","tags":["vendor-advisory","x_refsource_MANDRIVA","x_transferred"]},{"url":"http://marc.info/?l=bugtraq\u0026m=110796779903455\u0026w=2","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"]},{"url":"http://www.coresecurity.com/common/showdoc.php?idx=421\u0026idxseccion=10","tags":["x_refsource_MISC","x_transferred"]},{"url":"http://distro.conectiva.com.br/atualizacoes/?id=a\u0026anuncio=000856","tags":["vendor-advisory","x_refsource_CONECTIVA","x_transferred"]},{"url":"http://www.securityfocus.com/bid/10857","tags":["vdb-entry","x_refsource_BID","x_transferred","Exploit","Patch","Vendor Advisory"]},{"url":"http://www.novell.com/linux/security/advisories/2004_23_libpng.html","tags":["vendor-advisory","x_refsource_SUSE","x_transferred","Patch","Vendor Advisory"]},{"url":"http://www.gentoo.org/security/en/glsa/glsa-200408-03.xml","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred","Patch","Vendor Advisory"]},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11284","tags":["vdb-entry","signature","x_refsource_OVAL","x_transferred"]},{"url":"http://www.mandriva.com/security/advisories?name=MDKSA-2004:079","tags":["vendor-advisory","x_refsource_MANDRAKE","x_transferred"]},{"url":"http://secunia.com/advisories/22957","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2004-0597","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-pjf2-ggxp-rg8p"},{"url":"https://access.redhat.com/errata/RHSA-2004:402","tags":["advisory"]},{"url":"https://access.redhat.com/security/updates/classification/#critical","tags":["article"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=127869","tags":["report"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2004/rhsa-2004_402.json","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2002-1363","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1616886","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2002-1363","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2002-1363","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2004-0597","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1617235","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2004-0597","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2004-0598","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1617236","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2004-0598","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2004-0598","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2004-0599","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1617237","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2004-0599","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2004-0599","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2004-0597","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.","status":"published","published":"2004-08-05T04:00:00Z","modified":"2024-08-08T00:24:26.488Z","updated_at":"2026-11-02T14:34:54.758165Z"}],"euvd":[{"id":"EUVD-2004-0596","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.","status":"published","published":"2004-08-05T04:00:00Z","modified":"2024-08-08T00:24:26Z","updated_at":"2026-11-03T01:15:18.677356Z"}],"ghsa":[{"id":"GHSA-pjf2-ggxp-rg8p","title":"Multiple buffer overflows in libpng 1.2.5 and earlier, as used in multiple products, allow remote...","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.","status":"published","published":"2022-05-03T03:13:06Z","modified":"2023-02-01T05:01:08Z","updated_at":"2026-11-02T14:49:40.629091Z"}],"nvd":[{"id":"CVE-2004-0597","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.","status":"published","published":"2004-11-23T05:00:00Z","modified":"2026-06-16T22:05:57.273Z","cvss":[{"version":"2.0","score":10,"vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","level":"high","assessor":"primary"}],"updated_at":"2026-11-02T14:00:51.985436Z"}],"osv":[{"id":"DSA-536","title":"libpng - several vulnerabilities","status":"published","published":"2004-08-04T00:00:00Z","modified":"2026-03-09T02:09:57.272564Z","updated_at":"2026-11-02T15:46:17.543497Z"},{"id":"RHSA-2004:402","title":"Red Hat Security Advisory: libpng security update","status":"published","published":"2024-11-05T16:23:29Z","modified":"2026-06-26T10:01:25Z","updated_at":"2026-11-02T15:52:59.135214Z"}]}}
