CVE-2026-25646
JSON

8.3high

LIBPNG has a heap buffer overflow in png_set_quantize

Severity
8.3high CVSS:4.0 by GitHub_M
Exploit likelihood
0.77% (higher than 52% of CVEs)
Published
Last changed
Assigned by
GitHub_M

Description

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.

Affected

Product or packageVersionsReported by
pnggroup libpng< 1.6.55CVE List
libpngNot specified
Not affected: from 2:1.6.40-8.el10_1.2 before *, from 2:1.6.40-8.el10_0.2 before *, from 2:1.5.13-8.el7_9.2 before *, from 2:1.6.34-10.el8_10 before *, from 2:1.6.34-8.el8_2.2 before *, from 2:1.6.34-8.el8_4.2 before *
CVE List
libpng12Not specified
Not affected: from 0:1.2.50-10.el7_9.1 before *, from 0:1.2.57-6.el8_10 before *, from 0:1.2.57-5.el8_2.1 before *, from 0:1.2.57-5.el8_4.1 before *, from 0:1.2.57-5.el8_6.1 before *, from 0:1.2.57-5.el8_8.1 before *
CVE List
libpng15Not specified
Not affected: from 0:1.5.30-8.el8_10 before *, from 0:1.5.30-7.el8_2.1 before *, from 0:1.5.30-7.el8_4.1 before *, from 0:1.5.30-7.el8_6.1 before *, from 0:1.5.30-7.el8_8.1 before *, from 0:1.5.30-14.el9_7.1 before *
CVE List
mingw-libpngNot specified
Not affected: from 0:1.6.34-2.el8_10 before *
CVE List
rhcosNot specified
Not affected: from 412.86.202604281506-0 before *, from 413.92.202604080111-0 before *, from 414.92.202605060243-0 before *, from 415.92.202605060220-0 before *, from 416.94.202604211449-0 before *, from 417.94.202605112123-0 before *
CVE List
rhaiis/vllm-spyre-rhel9Not specified
Not affected: from 1778244546 before *
CVE List
rhaiis/vllm-cuda-rhel9Not specified
Not affected: from 1775680192 before *
CVE List
rhaiis/vllm-rocm-rhel9Not specified
Not affected: from 1775680262 before *
CVE List
rhaiis/model-opt-cuda-rhel9Not specified
Not affected: from 1775749857 before *
CVE List
rhceph/rhceph-8-rhel9Not specified
Not affected: from 1774002867 before *
CVE List
discovery/discovery-ui-rhel9Not specified
Not affected: from 1773273070 before *
CVE List

All scores

GitHub_M8.3high CVSS:4.0CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N
redhat-SADP7.0high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H
NVD8.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-122CWE-125CWE-126

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

LIBPNG es una biblioteca de referencia para uso en aplicaciones que leen, crean y manipulan archivos de imagen ráster PNG (Portable Network Graphics). Antes de 1.6.55, existe una vulnerabilidad de lectura fuera de límites en la función API png_set_quantize(). Cuando se llama a la función sin histograma y el número de colores en la paleta es más del doble del máximo soportado por la pantalla del usuario, ciertas paletas harán que la función entre en un bucle infinito que lee más allá del final de un búfer interno asignado en el *heap*. Las imágenes que activan esta vulnerabilidad son válidas según la especificación PNG. Esta vulnerabilidad está corregida en 1.6.55.

References

https://github.com/pnggroup/libpng/security/advisories/GHSA-g8hp-mq4h-rqm3exploit, vendor-advisory
https://github.com/pnggroup/libpng/commit/01d03b8453eb30ade759cd45c707e5a1c7277d88patch
http://www.openwall.com/lists/oss-security/2026/02/09/7mailing-list
https://access.redhat.com/security/cve/CVE-2026-25646vdb-entry
https://bugzilla.redhat.com/show_bug.cgi?id=2438542issue-tracking
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-25646.json
https://access.redhat.com/errata/RHSA-2026:4756vendor-advisory
https://access.redhat.com/errata/RHSA-2026:7032vendor-advisory
https://access.redhat.com/errata/RHSA-2026:12274vendor-advisory
https://access.redhat.com/errata/RHSA-2026:7239vendor-advisory
https://access.redhat.com/errata/RHSA-2026:15087vendor-advisory
https://access.redhat.com/errata/RHSA-2026:14773vendor-advisory

Sources

SourceRecordLicence
CVE ListCVE-2026-25646 changed 2026-09-01CVE Terms of Use
NVDCVE-2026-25646 changed 2026-08-11Public domain