Skip to content
OpenAdvisories
Medium · 5.4 CVE-2026-40930 EUVD-2026-34287

LIBPNG: Chunk smuggling in push-mode APNG parser via unconsumed chunk body

Published Jun 4, 2026 · Updated Jun 4, 2026 · Assigned by GitHub_M

Description

LIBPNG is a reference library for use in applications that process PNG (Portable Network Graphics) raster image files. In version 1.8.0, three inter-frame chunk discard paths in the push-mode APNG parser clear the chunk-header flag without consuming the chunk body and CRC, allowing attacker-controlled bytes inside an ignored ancillary chunk to be reinterpreted as a fresh chunk header on the next call to `png_process_data`. Commit faf06924688b62d7c1654b5ceddedbde66ffadb4 fixes the issue.

Affected products

VendorProductAffectedFixed
pnggroup libpng = 1.8.0 —
pnggroup libpng-apng >= 1.6.49, <= 1.6.57 —

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 14 libpng1.6 1.6.37-4 —
Debian 13 libpng1.6 1.6.37-4 —
Debian 12 libpng1.6 1.6.37-4 —
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS libpng1.6 1.6.37-3ubuntu0.6 —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS libpng1.6 1.6.37-2ubuntu0.1~esm3 —
ReleasePackageFixed inAdvisory
Red Hat Hardened Images 1 libpng +3 1.6.58-1.hum1 RHSA-2026:20356
ReleasePackageFixed inAdvisory
Alpine v3.24 libpng 1.6.58-r1 —
Alpine v3.23 libpng 1.6.58-r1 —
Alpine v3.22 libpng 1.6.59-r0 —
Alpine v3.21 libpng 1.6.59-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 firefox 140.11.0-1.amzn2023.0.1 ALAS2023-2026-1793
Amazon Linux 2 thunderbird 140.11.1-1.amzn2.0.2 ALAS2-2026-3340

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 fltk +4 No fix yet —

Advisories 4

References