Skip to main content

libpng-apng CVE-2026-40930

| EUVDEUVD-2026-34287 MEDIUM
Interpretation Conflict (CWE-436)
2026-05-18
5.4
CVSS 3.1 · Vendor
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Craft malicious APNG with misordered fcTL/fdAT chunks
  2. Delivery
    Deliver file via web, email, or upload
  3. Exploit
    Victim application invokes push-mode APNG parser
  4. Install
    Chunk sequence number validation occurs out of order
  5. C2
    CRC boundary consumed incorrectly
  6. Execute
    Parser internal state corrupted
  7. Impact
    Integrity violation or application crash

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V4 - API and Web Service Interpretation consistency
Exploitation Conditions

Exploitation requires that the target application is specifically built against libpng-apng (the APNG-patched variant), not stock libpng, and that it uses the push-mode (incremental) parser API rather than the standard pull-mode API - the vulnerable code path in pngpread.c is only reachable through the push-mode interface. A victim must trigger processing of attacker-controlled APNG data, satisfying the UI:R requirement in the CVSS vector (AV:N/AC:L/PR:N/UI:R). On the attacker side, no authentication or special privileges are needed (PR:N). Exploitation is limited by: (1) the requirement for push-mode API usage, which is less common than pull-mode in typical deployments; (2) mandatory victim interaction or automated pipeline consumption of attacker-supplied data; and (3) restriction to libpng-apng specifically, excluding the far more widespread stock libpng distributions.

Impact

The CVSS 5.4 score with vector AV:N/AC:L/PR:N/UI:R reflects a remotely triggerable vulnerability with low attack complexity: the attacker only needs to deliver a malicious file, while exploitation depends on a victim (human or automated pipeline) actually processing that file. Impact is bounded to integrity (I:L) and availability (I:L) with no confidentiality exposure, indicating the practical outcome is parser state corruption or crashes rather than arbitrary code execution - importantly, the 'RCE' tag appearing in the source intelligence data is a confirmed artifact of the multi-CVE oss-security digest thread and does NOT apply to CVE-2026-40930. EPSS data is not available in the provided input. The vulnerability is not in CISA KEV and no public exploit code has been identified, placing it in the lower-to-medium priority tier for most organizations. Risk is elevated for organizations running internet-facing services that ingest user-supplied image files and rely on the libpng-apng push-mode API. Exploitation is automatically achievable at scale once a POC exists given the low complexity and no-privilege requirement, but UI:R remains a meaningful friction point in non-automated pipelines.

Exploit ScenarioDerived

An attacker crafts a malicious APNG file with fcTL or fdAT chunks arranged to exploit the incorrect ordering of png_ensure_sequence_number and png_crc_finish calls in the push-mode parser. The file is delivered to a victim via a web page, email attachment, or image upload endpoint processed by an application using the libpng-apng push-mode API; upon parsing, the parser's internal state becomes corrupted due to the misvalidated chunk sequence, resulting in an integrity violation or crash of the processing application. No public exploit code exists at time of analysis, but the well-documented chunk structure of the PNG format and the public commit diff lower the barrier for proof-of-concept development.

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 – Jun 04, 2026

Chunk-smuggling in libpng-apng's push-mode APNG parser allows a remote unauthenticated attacker to cause integrity violations and availability disruption when a victim processes a specially crafted APNG file. The flaw - classified under CWE-436 (Interpretation Conflict) - stems from incorrect sequencing of CRC finalization and frame sequence number validation for fcTL and fdAT chunks in pngpread.c, enabling maliciously ordered chunk boundaries to bypass expected parser state transitions. No public exploit code exists at time of analysis and this vulnerability is not listed in the CISA KEV catalog; however, it represents a meaningful risk for any image-processing pipeline or application accepting user-supplied APNG data from untrusted sources.

RemediationAI

Apply the upstream fix by updating to a build of libpng-apng that includes commit faf06924688b62d7c1654b5ceddedbde66ffadb4 (https://github.com/pnggroup/libpng/commit/faf06924688b62d7c1654b5ceddedbde66ffadb4); consult the GitHub security advisory GHSA-c4v6-gxrq-6g2x for the officially patched release version once confirmed. If a packaged release is not yet available for your distribution, apply the patch to pngpread.c directly, as the diff is self-contained. As a compensating control, applications that do not require animation support can switch from the push-mode API to the pull-mode API, which is not affected by this vulnerability, though this may require code changes if the streaming API is architecturally required. For internet-facing upload services, rejecting files detected as APNG (by checking for the acTL chunk) at the ingestion boundary until patched is an effective but operationally disruptive workaround, as it blocks all animated PNG processing. Sandboxing the image decoding process (e.g., running it in a seccomp-filtered subprocess) limits blast radius even if exploitation occurs.

Affected VersionsENISA

libpng-apng 1.6.49, ≤ 1.6.57
libpng = 1.8.0

Affected Packages

euvd libpng no fix
euvd libpng_apng_1_6_49 no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in euvd

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

Technical ContextAI · show details

libpng-apng is the APNG (Animated PNG) patched variant of the canonical libpng library, which adds animation chunk handling (acTL, fcTL, fdAT) not present in stock libpng. The affected code resides in pngpread.c, which implements the push-mode (incremental/streaming) parsing API - used when image data arrives in chunks rather than all at once. CWE-436 (Interpretation Conflict) captures the root cause: prior to fix commit faf06924688b62d7c1654b5ceddedbde66ffadb4, calls to png_ensure_sequence_number (APNG frame sequence validation) and png_crc_finish (CRC checksum finalization) appeared in incorrect relative order and position within the chunk dispatch logic. This mismatch allowed a crafted file to present APNG chunks whose sequence numbers and CRC regions were validated against wrong boundaries, enabling a chunk-smuggling condition where the parser interprets chunk type or content inconsistently with what a strict reading of the PNG/APNG specification would mandate. The fix repositions these validation calls and relocates buffer-size guards inside the correct conditional branches, ensuring sequence numbers are checked and CRCs are consumed before chunk content is acted upon.

Know when PostgreSQL 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

Vendor (CNA) PRIMARY 5.4 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L
Red Hat 5.4 MEDIUM

Primary rating from Vendor (CNA).

CVSS VectorVendor

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

Lifecycle Timeline

3
CVSS changed
Jun 04, 2026 - 16:22 NVD
5.4 (MEDIUM)
CVE Published
May 18, 2026 - 20:45 nvd
UNKNOWN (no severity yet)
CVE Published
May 18, 2026 - 20:45 nvd
MEDIUM 5.4

Description PRE-NVD

Disclosed via oss-security. NVD scoring and full description are pending.

Threat Intelligence Overview

EPSS Score
0.0%
Top 90% exploitable
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

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· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

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

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

CVE-2025-1094 HIGH POC
8.1 Feb 13

PostgreSQL libpq functions PQescapeLiteral(), PQescapeIdentifier(), PQescapeString(), and PQescapeStringConn() improperl

CVE-2024-55964 CRITICAL POC
9.8 Mar 26

An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl

CVE-2013-1899 MEDIUM POC
6.5 Apr 04

Argument injection vulnerability in PostgreSQL 9.2.x before 9.2.4, 9.1.x before 9.1.9, and 9.0.x before 9.0.13 allows re

CVE-2026-20253 CRITICAL POC
9.8 Jun 10

Unauthenticated arbitrary file write in Splunk Enterprise (below 10.2.4 and 10.0.7) and Splunk Cloud Platform (below 10.

CVE-2026-9586 CRITICAL POC
9.3 Jul 17

Unauthenticated SQL injection in Sangoma Switchvox SMB Edition 8.3 (build 104997) lets remote attackers execute arbitrar

CVE-2017-7546 CRITICAL
9.8 Aug 16

PostgreSQL versions before 9.2.22, 9.3.18, 9.4.13, 9.5.8 and 9.6.4 are vulnerable to incorrect authentication flaw allow

CVE-2015-1352 MEDIUM POC
5.0 Mar 30

The build_tablename function in pgsql.c in the PostgreSQL (aka pgsql) extension in PHP through 5.6.7 does not validate t

CVE-2024-10553 CRITICAL POC
9.8 Mar 20

A vulnerability in the h2oai/h2o-3 REST API versions 3.46.0.4 allows unauthenticated remote attackers to execute arbitra

CVE-2019-9193 HIGH POC
7.2 Apr 01

In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the 'pg_execute_serve

CVE-2026-40887 CRITICAL POC
9.1 Apr 14

Unauthenticated SQL injection in Vendure Shop API allows remote attackers to execute arbitrary SQL commands against the

CVE-2022-24760 CRITICAL POC
10.0 Mar 12

Parse Server is an open source http web server backend. Rated critical severity (CVSS 10.0), this vulnerability is remot

CVE-2025-56157 CRITICAL POC
9.8 Dec 18

Hard-coded default PostgreSQL credentials shipped in the docker-compose.yaml of langgenius Dify through version 1.5.1 al

Vendor StatusVendor

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