Skip to content
OpenAdvisories
Unscored Public exploit CVE-2004-0597 EUVD-2004-0596GHSA-pjf2-ggxp-rg8p

Multiple buffer overflows in libpng 1.2.5 and earlier, as used in multiple products, allow remote attackers to execute arbitrary code via m…

Published Aug 5, 2004 · Updated Aug 8, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 3.0 libpng 1.0.12-3.woody.7 DSA-536
Debian 3.0 libpng3 1.2.1-1.1.woody.7 DSA-536
ReleasePackageFixed inAdvisory
RHEL 3 libpng +1 2:1.2.2-25 RHSA-2004:402
RHEL 3 libpng10 +1 1.0.13-15 RHSA-2004:402

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 3

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 2

References