Vulnerability · Published Jun 4, 2026 · Assigned by GitHub_M
CVE-2026-40930LIBPNG: Chunk smuggling in push-mode APNG parser via unconsumed chunk body
Medium 5.4
In plain English
A medium-severity security flaw in libpng from pnggroup. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 10% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.21 | libpng | 1.6.59-r0 | ALPINE-CVE-2026-40930 |
| Alpine:v3.22 | libpng | 1.6.59-r0 | ALPINE-CVE-2026-40930 |
| Alpine:v3.23 | libpng | 1.6.58-r1 | ALPINE-CVE-2026-40930 |
| Alpine:v3.24 | libpng | 1.6.58-r1 | ALPINE-CVE-2026-40930 |
| Debian:12 | libpng1.6 | 1.6.37-4 | DEBIAN-CVE-2026-40930 |
| Debian:13 | libpng1.6 | 1.6.37-4 | DEBIAN-CVE-2026-40930 |
| Debian:14 | libpng1.6 | 1.6.37-4 | DEBIAN-CVE-2026-40930 |
| Ubuntu:22.04:LTS | libpng1.6 | 1.6.37-3ubuntu0.6 | UBUNTU-CVE-2026-40930 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| pnggroup | libpng | = 1.8.0 |
| pnggroup | libpng-apng | >= 1.6.49, <= 1.6.57 |
Weakness: CWE-436 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L