« List of all CVEs

CVE-2026-25646

LIBPNG has a heap buffer overflow in png_set_quantize

Published: 2/10/2026 Last updated: 2/11/2026 Reserved: 2/4/2026

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.

CNA assigner: GitHub_M (a0819718-46f1-4df5-94e2-005712e83aaa) Requested by: n/a

Metrics

Version Score Severity Vector String
4.0 8.3 High CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N

Opam packages affected (4)

conf-gd conf-libpng grib qrencode

Products affected (2)

Product Vendor Version
libpng pnggroup <= 7.0.14
libpng pnggroup < a14c0d2eb3f0b1836fdec22908b87ecffd2ac844

References (8)