CVE-2026-34757

LIBPNG has a yse-after-free in png_set_PLTE, png_set_tRNS and png_set_hIST leading to corrupted chunk data and potential heap information disclosure

MEDIUM
4.4
CVSS Score
Published: April 9, 2026 at 02:41 PM UTC
Updated: October 26, 2026 at 09:10 PM UTC
3 products affected across 3 vendorsDebian LinuxLibpngLibpng

Using libpng by pnggroup?

Get instant alerts when new vulnerabilities affect libpng - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM4.4
Exploit prediction
EPSS 0.2%
SSVC
PoC

Description

LIBPNG is a reference library for use in applications that read, create, and manipulate PNG (Portable Network Graphics) raster image files. From 1.0.9 to before 1.6.57, passing a pointer obtained from png_get_PLTE, png_get_tRNS, or png_get_hIST back into the corresponding setter on the same png_struct/png_info pair causes the setter to read from freed memory and copy its contents into the replacement buffer. The setter frees the internal buffer before copying from the caller-supplied pointer, which now dangles. The freed region may contain stale data (producing silently corrupted chunk metadata) or data from subsequent heap allocations (leaking unrelated heap contents into the chunk struct). This vulnerability is fixed in 1.6.57.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

1.0.9 ≤ v < 1.6.57
1.0.9 ≤ v < 1.6.57
Affected range stops below 1.6.57, so it looks safe — our inference, not a vendor statement

References (6)

x_refsource_CONFIRMMitigationPatchVendor Advisory
Source: cverecord
https://github.com/pnggroup/libpng/security/advisories/GHSA-6fr7-g8h7-v645
x_refsource_MISCExploitIssue TrackingMitigation
Source: cverecord
https://github.com/pnggroup/libpng/issues/836
x_refsource_MISCExploitIssue TrackingMitigation
Source: cverecord
https://github.com/pnggroup/libpng/issues/837
Mailing ListThird Party Advisory
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2026/05/msg00017.html

SSVC — Action Prioritization

SSVCPoCNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Vector?

Quick Info

StatusANALYZED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card