Skip to main content

Libpng EUVDEUVD-2026-20897

| CVE-2026-34757 MEDIUM
Use After Free (CWE-416)
2026-04-09 GitHub_M
4.4
CVSS 3.1 · NVD
View

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Impact

The CVSS 3.1 vector (AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N) reflects a local attack vector requiring no privileges and no user interaction, with low complexity, resulting in confidentiality and integrity impacts but no availability impact. The score of 5.1 (medium) may underestimate real-world risk because exploitability depends on application behavior: a program must call both the getter and setter in the vulnerable sequence, then process or output the corrupted chunk data for the information disclosure or corruption to have observable impact. However, the use-after-free mechanism is straightforward to trigger programmatically, and heap-layout-dependent exploitation is feasible in controlled environments. No EPSS probability, active exploitation status (KEV), or public exploit code (POC) is confirmed in the provided data, suggesting this is a latent vulnerability in library APIs rather than actively weaponized. Priority should focus on affected applications that programmatically manipulate PNG chunks via these APIs; generic PNG readers and writers using libpng at standard API levels are less at risk.

Exploit ScenarioDerived

An attacker-controlled or malicious PNG file processed by an application that programmatically retrieves a palette, transparency, or histogram chunk via the getter function and then passes that pointer to the corresponding setter on the same structure will trigger the use-after-free. If the freed region is reused by a concurrent heap allocation (e.g., a different chunk being loaded), the setter will copy unrelated heap data into the PNG structure, potentially leaking sensitive information from adjacent allocations or causing silent corruption of metadata that downstream processing may trust. No public exploit code is identified at time of analysis, and active exploitation is not confirmed, but the vulnerability is straightforward to reproduce in test environments.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 09, 2026

Use-after-free in libpng 1.0.9 through 1.6.56 allows local attackers to leak heap memory and corrupt PNG chunk metadata by passing a pointer from png_get_PLTE, png_get_tRNS, or png_get_hIST directly into the corresponding setter function on the same structure, exploiting a freed buffer dereference. The vulnerability enables information disclosure and silent data corruption with low attack complexity and no user interaction required; fixed in version 1.6.57.

RemediationAI

Vendor-released patch: libpng 1.6.57. Upgrade libpng to version 1.6.57 or later. For applications using earlier versions, apply the upstream fixes referenced in commits 398cbe3df03f4e11bb031e07f416dfdde3684e8a and 55d20aaa322c9274491cda82c5cd4f99b48c6bcc (see https://github.com/pnggroup/libpng). As a temporary workaround pending patching, applications should avoid the vulnerable API pattern of passing pointers from png_get_PLTE, png_get_tRNS, or png_get_hIST directly into the corresponding setter functions; instead, allocate a fresh buffer and copy chunk data into it before calling the setter. Review https://github.com/pnggroup/libpng/issues/836 and https://github.com/pnggroup/libpng/issues/837 for additional context and implementation guidance.

Affected VersionsENISA

libpng 1.0.9, < 1.6.57

Affected Packages

euvd libpng_1_0_9 fix: 1.6.57

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

libpng is a widely-used C library for reading and writing Portable Network Graphics (PNG) files. The vulnerability resides in the getter-setter interaction for PNG ancillary chunks: PLTE (palette), tRNS (transparency), and hIST (histogram). The root cause (CWE-416: Use After Free) occurs because the setter functions free the internal buffer before copying from the caller-supplied pointer; if that pointer was obtained from the getter on the same png_struct/png_info pair, it now points to the freed region. Subsequent heap allocations may reuse this freed memory, causing the setter to read from unrelated heap objects and copy their contents into the PNG chunk structure. This affects libpng from version 1.0.9 onward, as identified by CPE cpe:2.3:a:pnggroup:libpng:*:*:*:*:*:*:*:*.

Know when Libpng gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 4.4 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
SUSE 5.1 MEDIUM
AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Red Hat 4.4 MEDIUM

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

3
CVSS changed
Oct 26, 2026 - 21:23 NVD
5.1 (MEDIUM) 4.4 (MEDIUM)
Patch available
Apr 16, 2026 - 05:29 EUVD
1.6.57
CVE Published
Apr 09, 2026 - 14:41 nvd
MEDIUM 5.1

DescriptionNVD

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.

Threat Intelligence Overview

EPSS Score
0.0%
Top 98% exploitable
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

22
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +22
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Libpng

View all
CVE-2015-0973 HIGH POC
8.8 Jan 18

Buffer overflow in the png_read_IDAT_data function in pngrutil.c in libpng before 1.5.21 and 1.6.x before 1.6.16 allows

CVE-2026-25646 HIGH POC
8.3 Feb 10

Denial of service (with limited memory disclosure) in libpng before 1.6.55 lets an attacker supply a specially crafted b

CVE-2015-8540 HIGH
8.8 Apr 14

Integer underflow in the png_check_keyword function in pngwutil.c in libpng 0.90 through 0.99, 1.0.x before 1.0.66, 1.1.

CVE-2013-6954 MEDIUM POC
6.5 Jan 12

The png_do_expand_palette function in libpng before 1.6.8 allows remote attackers to cause a denial of service (NULL poi

CVE-2025-64720 HIGH POC
7.1 Nov 25

LIBPNG is a reference library for use in applications that read, create, and manipulate PNG (Portable Network Graphics)

CVE-2025-65018 HIGH POC
7.1 Nov 25

LIBPNG is a reference library for use in applications that read, create, and manipulate PNG (Portable Network Graphics)

CVE-2025-66293 HIGH POC
7.1 Dec 03

LIBPNG is a reference library for use in applications that read, create, and manipulate PNG (Portable Network Graphics)

CVE-2019-6129 MEDIUM POC
6.5 Jan 11

png_create_info_struct in png.c in libpng 1.6.36 has a memory leak, as demonstrated by pngcp. Rated medium severity (CVS

CVE-2018-14048 MEDIUM POC
6.5 Jul 13

An issue has been found in libpng 1.6.34. Rated medium severity (CVSS 6.5), this vulnerability is remotely exploitable,

CVE-2026-22695 MEDIUM POC
6.1 Jan 12

Libpng versions 1.6.51-1.6.53 contain a heap buffer over-read in the simplified API function png_image_finish_read when

CVE-2025-28164 MEDIUM POC
5.5 Jan 27

Buffer Overflow vulnerability in libpng 1.6.43-1.6.46 allows a local attacker to cause a denial of service via png_creat

CVE-2025-28162 MEDIUM POC
5.5 Jan 27

Buffer Overflow vulnerability in libpng 1.6.43-1.6.46 allows a local attacker to cause a denial of service via the pngim

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
openSUSE Tumbleweed Fixed
SUSE Linux Enterprise Micro 5.2 Affected
SUSE Linux Enterprise Micro 5.3 Affected
SUSE Linux Enterprise Micro 5.4 Affected
SUSE Linux Enterprise Micro 5.5 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy