Buffer overflow in Libpng
CVE-2026-25646
LIBPNG is a reference library for use in applications that read, create, and manipulate PNG (Portable Network Graphics) raster image files. Prior to 1.6.55, an out-of-bounds read vulnerability exists in the png_set_quantize() API function. When the function is called with no histogram and the number of colors in the palette is more than twice the maximum supported by the user's display, certain palettes will cause the function to enter into an infinite loop that reads past the end of an internal heap-allocated buffer. The images that trigger this vulnerability are valid per the PNG specification. This vulnerability is fixed in 1.6.55.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.1 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.011, 66.7th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Libpng
- Pnggroup Libpng — versions < 1.6.55
Weakness classification (CWE)
References
- https://github.com/pnggroup/libpng/security/advisories/GHSA-g8hp-mq4h-rqm3 (Exploit, Vendor Advisory)
- https://github.com/pnggroup/libpng/commit/01d03b8453eb30ade759cd45c707e5a1c7277d88 (Patch)
- www.openwall.com/lists/oss-security/2026/02/09/7 (Mailing List)
- access.redhat.com/errata/RHSA-2026:10097
- access.redhat.com/errata/RHSA-2026:12274
- access.redhat.com/errata/RHSA-2026:14773
- access.redhat.com/errata/RHSA-2026:15087
- access.redhat.com/errata/RHSA-2026:16174
- access.redhat.com/errata/RHSA-2026:17596
- access.redhat.com/errata/RHSA-2026:3031