CVE-2026-25646
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.
Description as published by the source, in English.
Key facts
- Published
- 2026-02-10
- Last modified
- 2026-08-11
- Assigned by
- security-advisories@github.com
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H- Scored by
- nvd@nist.gov (NVD Primary)
- Probability of exploitation
-
1.0 %
higher than 58 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Yes, see references
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Libpng | Libpng | < 1.6.55 | Affected |
Weakness type
-
CWE-122: Heap-based Buffer Overflow
The product writes past the end of a buffer that was allocated on the heap.
-
CWE-125: Out-of-bounds Read
The product reads data past the end, or before the beginning, of the intended buffer.
-
CWE-126: Buffer Over-read
The product reads from a buffer using buffer access mechanisms such as indexes or pointers that reference memory locations after the targeted buffer.
References
- https://github.com/pnggroup/libpng/commit/01d03b8453eb30ade759cd45c707e5a1c7277d88
- https://github.com/pnggroup/libpng/security/advisories/GHSA-g8hp-mq4h-rqm3
- http://www.openwall.com/lists/oss-security/2026/02/09/7
- https://github.com/pnggroup/libpng/security/advisories/GHSA-g8hp-mq4h-rqm3
- https://access.redhat.com/errata/RHSA-2026:10097
- https://access.redhat.com/errata/RHSA-2026:12274
- https://access.redhat.com/errata/RHSA-2026:14773
- https://access.redhat.com/errata/RHSA-2026:15087
- https://access.redhat.com/errata/RHSA-2026:16174
- https://access.redhat.com/errata/RHSA-2026:17596
- https://access.redhat.com/errata/RHSA-2026:3031
- https://access.redhat.com/errata/RHSA-2026:3405
- https://access.redhat.com/errata/RHSA-2026:3551
- https://access.redhat.com/errata/RHSA-2026:3573
- https://access.redhat.com/errata/RHSA-2026:3574
- https://access.redhat.com/errata/RHSA-2026:3575
- https://access.redhat.com/errata/RHSA-2026:3576
- https://access.redhat.com/errata/RHSA-2026:3577
- https://access.redhat.com/errata/RHSA-2026:3968
- https://access.redhat.com/errata/RHSA-2026:3969
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.