What’s Vulnerable › Vulnerabilities
CVE-2026-22695: LIBPNG has a heap buffer over-read in png_image_read_direct_scaled (regression from CVE-2025-65018 fix)
- Severity: high (CVSS 7.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2026-01-12 · updated 2026-06-17
- Weakness: CWE-125
Description
LIBPNG is a reference library for use in applications that read, create, and manipulate PNG (Portable Network Graphics) raster image files. From 1.6.51 to 1.6.53, there is a heap buffer over-read in the libpng simplified API function png_image_finish_read when processing interlaced 16-bit PNGs with 8-bit output format and non-minimal row stride. This is a regression introduced by the fix for CVE-2025-65018. This vulnerability is fixed in 1.6.54.
Affected products
- pnggroup libpng: from 1.6.51 before 1.6.54 — fixed in 1.6.54
How to fix
Upgrade to a fixed version: pnggroup libpng 1.6.54. Check the vendor advisory for mitigations.
References
- https://github.com/pnggroup/libpng/commit/218612ddd6b17944e21eda56caf8b4bf7779d1ea
- https://github.com/pnggroup/libpng/commit/e4f7ad4ea2
- https://github.com/pnggroup/libpng/issues/778
- https://github.com/pnggroup/libpng/security/advisories/GHSA-mmq5-27w3-rxpp
Get alerted when CVE-2026-22695 or the next vulnerability affects your stack