Skip to content
Emerging threatsCritical

CVE-2004-0597Libpng Vulnerability

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 88% 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.

Scores

CVSS v2

10.0

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

EPSS (30-day exploit likelihood)

88%

Higher than 99.7% of all scored CVEs

Exploit maturity

Proof of concept

ATLAS score

65/100

Publication score, see How it works

Exploitation Verdict

KEV listed

Not listed

Federal due date

None

No federal due date

Ransomware use

Not reported

Attributed actors

None named

Exploit & Defence Guidance

Exploit maturity

Proof of concept

Public exploit code

3

Proof-of-concept links

In-the-wild evidence

1

Reports of active use

Advisories And Exploit References

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 On Your Attack Surface?

Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.

Request A Demo

Figures as of Dec 4, 2026. Compiled by Brandefense technologies from public vulnerability catalogs; scoring as described in How it works.

To report an error, contact Brandefense.