CVE-2004-0597: Multiple buffer overflows in libpng 1.2.5 and earlier, as used in multiple products, allow remote attackers to HIGH 10.0 WATCHLIST UPGRADE DOWNGRADE DOWNGRADE
CVE-2004-0597 is a high-severity flaw (CVSS 10.0) affecting libpng, msn messenger, windows media player. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority Critical severity EPSS top 1%: very likely to be exploited Public exploit reference On your watchlist A fixed release or distro patch exists.
Risk facts CVSS score 10.0 (High) EPSS exploit chance 81.9% (top 1%) CISA exploited list No Published 2004-11-23 Last modified 2026-06-16
Share: LinkedIn · X · Reddit
Last updated 2026-06-16 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Timeline 2004-11-23 05:00 UTC Published CVE record published2026-06-16 22:05 UTC Updated Record last modifiedgreg roelofs libpng UPGRADE
Affected: <= 1.2.5
Fixed in: newer than 1.2.5
Safe to downgrade to: no unaffected older release
1. Check installed version
Copy apt-cache policy libpng || rpm -q libpng || libpng --version
2. UPGRADE to newer than 1.2.5 (Debian / Ubuntu)
Copy sudo apt update && sudo apt install --only-upgrade libpng
2. UPGRADE (RHEL / Amazon Linux / Fedora)
Copy sudo dnf upgrade libpng
Note
Copy Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
microsoft msn messenger DOWNGRADE
Affected: 6.1 · 6.2
Fixed in: no fixed release known
Safe to downgrade to: a release before 6.1
1. Check installed version
Copy apt-cache policy msn-messenger || rpm -q msn-messenger || msn-messenger --version
2. No fixed release: DOWNGRADE to a release before 6.1 (Debian / Ubuntu)
Copy apt-cache madison msn-messenger
sudo apt install msn-messenger=<VERSION_BEFORE_6.1>
sudo apt-mark hold msn-messenger
2. No fixed release: DOWNGRADE (RHEL / Amazon Linux / Fedora)
Copy dnf --showduplicates list msn-messenger
sudo dnf downgrade msn-messenger-<VERSION_BEFORE_6.1>
sudo dnf versionlock add msn-messenger
Downgrade risk
Copy Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Copy Restart the service, and keep the package held until a fixed release ships.
microsoft windows media player DOWNGRADE
Affected: 9
Fixed in: no fixed release known
Safe to downgrade to: a release before 9
1. Check installed version
Copy apt-cache policy windows-media-player || rpm -q windows-media-player || windows-media-player --version
2. No fixed release: DOWNGRADE to a release before 9 (Debian / Ubuntu)
Copy apt-cache madison windows-media-player
sudo apt install windows-media-player=<VERSION_BEFORE_9>
sudo apt-mark hold windows-media-player
2. No fixed release: DOWNGRADE (RHEL / Amazon Linux / Fedora)
Copy dnf --showduplicates list windows-media-player
sudo dnf downgrade windows-media-player-<VERSION_BEFORE_9>
sudo dnf versionlock add windows-media-player
Downgrade risk
Copy Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Copy Restart the service, and keep the package held until a fixed release ships.
microsoft windows messenger DOWNGRADE
Affected: 5.0
Fixed in: no fixed release known
Safe to downgrade to: a release before 5.0
1. Check installed version
Copy apt-cache policy windows-messenger || rpm -q windows-messenger || windows-messenger --version
2. No fixed release: DOWNGRADE to a release before 5.0 (Debian / Ubuntu)
Copy apt-cache madison windows-messenger
sudo apt install windows-messenger=<VERSION_BEFORE_5.0>
sudo apt-mark hold windows-messenger
2. No fixed release: DOWNGRADE (RHEL / Amazon Linux / Fedora)
Copy dnf --showduplicates list windows-messenger
sudo dnf downgrade windows-messenger-<VERSION_BEFORE_5.0>
sudo dnf versionlock add windows-messenger
Downgrade risk
Copy Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Copy Restart the service, and keep the package held until a fixed release ships.
microsoft windows 98se MITIGATE
Affected: all versions
Fixed in: no fixed release known
Safe to downgrade to: no unaffected older release
Check your OS release
Copy cat /etc/os-release; uname -r
Debian / Ubuntu
Copy sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
Copy sudo dnf upgrade --refresh
Windows
Copy Install the latest cumulative update from Windows Update
If no patch exists yet
Copy OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.
microsoft windows me MITIGATE
Affected: all versions
Fixed in: no fixed release known
Safe to downgrade to: no unaffected older release
Check your OS release
Copy cat /etc/os-release; uname -r
Debian / Ubuntu
Copy sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
Copy sudo dnf upgrade --refresh
Windows
Copy Install the latest cumulative update from Windows Update
If no patch exists yet
Copy OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.
Exact fixes by distribution Show all
A distro patch exists: prefer upgrading over downgrading.
Fedora ELN · fuse-sshfs ·
FIXED · 3.7.6-3.eln159 · FEDORA-2026-bcb7be7c5c ·
source Copy sudo dnf upgrade --advisory=FEDORA-2026-bcb7be7c5c
Fedora 46 · python-odata-query ·
FIXED · 0.10.1-1.fc46 · FEDORA-2026-eab44dc513 ·
source Copy sudo dnf upgrade --advisory=FEDORA-2026-eab44dc513
RHEL 3 · libpng · FIXED · libpng-1.2.2-25
Copy sudo dnf upgrade --advisory=RHSA-2004:402
rpm -q libpng
RHEL 3 · libpng10 · FIXED · libpng10-1.0.13-15
Copy sudo dnf upgrade --advisory=RHSA-2004:402
rpm -q libpng10
Public exploits and detection Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
Verify at the official source NVD ·
CVE Program ·
Report a problem with this page Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems. Quick answers How do I fix CVE-2004-0597? libpng: upgrade to newer than 1.2.5; msn messenger: downgrade or apply the listed mitigation; windows media player: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2004-0597 being exploited? CVE-2004-0597 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2004-0597 affect? CVE-2004-0597 affects libpng, msn messenger, windows media player. Severity is high (CVSS 10.0). 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 o
How urgent is CVE-2004-0597? Priority 70/100. Critical severity; EPSS top 1%: very likely to be exploited; Public exploit reference; On your watchlist
Software pages Windows vulnerabilities · libpng vulnerabilities
Related CVEs CVE-2026-34757 MEDIUM 5.1 UPGRADE MITIGATE LIBPNG is a reference library for use in applications that read, create, and manipulate PNG (Portable Network CVE-2025-64720 HIGH 7.1 UPGRADE LIBPNG is a reference library for use in applications that read, create, and manipulate PNG (Portable Network CVE-2025-65018 HIGH 7.1 UPGRADE LIBPNG is a reference library for use in applications that read, create, and manipulate PNG (Portable Network CVE-2025-64505 MEDIUM 6.1 UPGRADE LIBPNG is a reference library for use in applications that read, create, and manipulate PNG (Portable Network CVE-2025-64506 MEDIUM 6.1 UPGRADE LIBPNG is a reference library for use in applications that read, create, and manipulate PNG (Portable Network References ← Back to latest CVEs