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

- Severity: Medium 5.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-02)
- Published: 2026-06-04T14:34:51.843Z
- Modified: 2026-07-22T20:10:00.127Z
- Weaknesses: CWE-436
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- pnggroup libpng: = 1.8.0
- pnggroup libpng-apng: >= 1.6.49, <= 1.6.57

## References

- <https://github.com/pnggroup/libpng/security/advisories/GHSA-c4v6-gxrq-6g2x>
- <https://github.com/pnggroup/libpng/commit/faf06924688b62d7c1654b5ceddedbde66ffadb4>
- <http://www.openwall.com/lists/oss-security/2026/05/15/21>

## Sources

- CVE List: [CVE-2026-40930](https://www.cve.org/CVERecord?id=CVE-2026-40930), CVE Terms of Use, modified 2026-06-04
- NVD: [CVE-2026-40930](https://nvd.nist.gov/vuln/detail/CVE-2026-40930), Public domain, modified 2026-07-22

---

Page: https://cve.day/CVE-2026-40930 · Whole record: https://cve.day/CVE-2026-40930.json · Rebuilt by cve.day 2026-11-25T22:59:23.710Z
