Out-of-bounds Read in Libpng
CVE-2026-22695
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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.1 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H.
EPSS exploit prediction
EPSS 0.002, 12.9th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Libpng
- Pnggroup Libpng — versions < 1.6.54
Weakness classification (CWE)
References
- https://github.com/pnggroup/libpng/security/advisories/GHSA-mmq5-27w3-rxpp (Exploit, Third Party Advisory)
- https://github.com/pnggroup/libpng/issues/778 (Exploit, Third Party Advisory, Issue Tracking)
- https://github.com/pnggroup/libpng/commit/218612ddd6b17944e21eda56caf8b4bf7779d1ea (Patch)
- https://github.com/pnggroup/libpng/commit/e4f7ad4ea2 (Patch)