CVE-2004-0597
Multiple buffer overflows in libpng 1.2.5 and earlier, as used in multiple products, allow remote attackers to execute arbitrary code…
Check your servers for CVE-2004-0597
The Vulnpocalypse agent sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2004-0597 affects a package, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 81.8%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 99.7% of all scored CVEs. Scores of 27 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
n/a
n/a
|
affected all versions
|
Is my server affected?
Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2004-0597 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2004-0597RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2004-0597Alpine
apk list --installed | grep -i PACKAGEWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2004-0597
trivy image --scanners vuln IMAGE | grep CVE-2004-0597
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the agent.
References
41 of 42 references. The list leaves out addresses that are not web links and those after the first 300; all of them are in the record on cve.org.
Advisories
- 2004-0040 trustix.net · vendor advisory
- 200663 sunsolve.sun.com · vendor advisory
- http://www.mozilla.org/projects/security/known-vulnerabilities.html mozilla.org
- RHSA-2004:421 redhat.com · vendor advisory
- RHSA-2004:402 redhat.com · vendor advisory
- GLSA-200408-22 gentoo.org · vendor advisory
- 22958 secunia.com · third party advisory
- http://sunsolve.sun.com/search/document.do?assetkey=urn:cds:docid:1-21-114816-02-1 sunsolve.sun.com
- FLSA:2089 marc.info · vendor advisory
- FLSA:1943 bugzilla.fedora.us · vendor advisory
- TA05-039A us-cert.gov · third party advisory
- SCOSA-2004.16 marc.info · vendor advisory
16 more
- RHSA-2004:429 redhat.com · vendor advisory
- DSA-536 debian.org · vendor advisory
- VU#388984 kb.cert.org · third party advisory
- APPLE-SA-2004-09-09 lists.apple.com · vendor advisory
- VU#817368 kb.cert.org · third party advisory
- SSRT4778 marc.info · vendor advisory
- MS05-009 docs.microsoft.com · vendor advisory
- MDKSA-2006:213 mandriva.com · vendor advisory
- TA04-217A us-cert.gov · third party advisory
- http://www.adobe.com/support/downloads/detail.jsp?ftpID=2679 adobe.com
- MDKSA-2006:212 mandriva.com · vendor advisory
- CLA-2004:856 distro.conectiva.com.br · vendor advisory
- SUSE-SA:2004:023 novell.com · vendor advisory
- GLSA-200408-03 gentoo.org · vendor advisory
- MDKSA-2004:079 mandriva.com · vendor advisory
- 22957 secunia.com · third party advisory
Other references
- oval:org.mitre.oval:def:2274 oval.cisecurity.org · vdb entry, signature
- oval:org.mitre.oval:def:594 oval.cisecurity.org · vdb entry, signature
- libpng-pnghandle-bo(16894) exchange.xforce.ibmcloud.com · vdb entry
- http://scary.beasts.org/security/CESA-2004-001.txt scary.beasts.org
- oval:org.mitre.oval:def:2378 oval.cisecurity.org · vdb entry, signature
- 15495 securityfocus.com · vdb entry
- 20040804 [OpenPKG-SA-2004.035] OpenPKG Security Advisory (png) marc.info · mailing list
- oval:org.mitre.oval:def:4492 oval.cisecurity.org · vdb entry, signature
- oval:org.mitre.oval:def:7709 oval.cisecurity.org · vdb entry, signature
- 20050209 MSN Messenger PNG Image Buffer Overflow Download Shellcoded Exploit marc.info · mailing list
- http://www.coresecurity.com/common/showdoc.php?idx=421&idxseccion=10 coresecurity.com
- 10857 securityfocus.com · vdb entry
- oval:org.mitre.oval:def:11284 oval.cisecurity.org · vdb entry, signature
Source: the record CVE-2004-0597 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse