Skip to content
Vulnerability Intelligence

CVE-2004-0597

CriticalPublic exploit

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…

Published Aug 4, 2004 · Updated Mar 9, 2026 · Also known as DEBIAN-CVE-2004-0597, DEBIAN-CVE-2004-0598, DEBIAN-CVE-2004-0599, DEBIAN-CVE-2004-0768, DSA-536

Key Facts

Patch immediately
  • CVE-2004-0597 is a critical-severity vulnerability (CVSS 10.0 v2) affecting Libpng (Greg Roelofs), Msn Messenger (Microsoft), Windows Media Player (Microsoft) and 5 more products.
  • It is not listed in any known-exploited vulnerabilities catalog. Public exploit code is available.
  • EPSS estimates a 82% probability of exploitation in the next 30 days.
  • Fixed versions are available, including Libpng 1.2.5, Libpng 1.0.12-3.woody.7, Libpng 2:1.2.2-25.
  • Brandefense priority: patch immediately, because it is very likely to be exploited soon.

CVSS v2

10.0

AV:N/AC:L/Au:N/C:C/I:C/A:C

EPSS (30-day exploit likelihood)

82%

Higher than 99.6% of all scored CVEs

Exploited in the wild

No known

Not in a known-exploited catalog

Public exploit code

Available

Proof-of-concept or weaponized module

Get the full CVE-2004-0597 brief as a PDF

Every affected product and fixed release, exploitation status and a first 24 hours response checklist, emailed within minutes.

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.

Affected Products

11 affected entries in total
ProductAffected versionsFixed in
LibpngGreg RoelofsSee advisory1.2.5
Msn MessengerMicrosoft6.1, 6.2n/a
Windows Media PlayerMicrosoft9n/a
Windows MessengerMicrosoft5.0n/a
Windows 98seMicrosoftSee advisoryn/a
3 more affected products in the full CVE brief

Patched Releases

Libpng

1.2.5, 1.0.12-3.woody.7, 2:1.2.2-25

libpng10

0:1.0.13-15

libpng3

1.2.1-1.1.woody.7

Timeline

  1. Publicly disclosed

    Aug 4, 2004

  2. Last updated

    Mar 9, 2026

References

15 more references in the full CVE brief

FAQ

Common Questions.

Is CVE-2004-0597 Running On Your Attack Surface?

Brandefense maps vulnerabilities like this one to your internet-facing assets and tells you exactly where to patch.

Request A Demo