# CVE-2026-25646: LIBPNG has a heap buffer overflow in png\_set\_quantize

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 1.6.55 (CNA); fix release not confirmed
- Status: published
- Published: 2026-02-10 · Modified: 2026-09-01
- Aliases: ALPINE-CVE-2026-25646, MGASA-2026-0038, MGASA-2026-0096, SUSE-SU-2026:0583-1, SUSE-SU-2026:0597-1, SUSE-SU-2026:0598-1, SUSE-SU-2026:0599-1, SUSE-SU-2026:2878-1, SUSE-SU-2026:3039-1, RHSA-2026:3031, RHSA-2026:3968, RHSA-2026:3969, RHSA-2026:4221, RHSA-2026:4222, RHSA-2026:4756, RHSA-2026:6439, RHSA-2026:6445, RHSA-2026:6466, RHSA-2026:6467, RHSA-2026:6468, RHSA-2026:6469, RHSA-2026:7032, RHSA-2026:7033, RHSA-2026:7034, RHSA-2026:7035, RHSA-2026:7036, UBUNTU-CVE-2026-25646, USN-8039-1, DEBIAN-CVE-2026-25646, DSA-6138-1, CGA-j4qf-62hv-9cv5, CGA-vpw4-6mx6-cghv, openSUSE-SU-2026:10188-1, openSUSE-SU-2026:11265-1
- Record: https://cvemate.com/vulnerability/CVE-2026-25646 · JSON: https://cvemate.com/vulnerability/CVE-2026-25646/json

## Description

```text
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.
```

## Signals

- CVSS: 8.3 high (v4.0, CVE.org) 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
- EPSS: 1.12%, percentile 67.271%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected (first 20 of 44)

- alpine libpng (Alpine Linux): \< 1.6.55-r0
- chainguard libpng (Chainguard): \< 1.6.55-r0
- wolfi libpng (Wolfi): \< 1.6.55-r0
- debian libpng1.6 (Debian): \< 1.6.55-1 \| \< 1.6.39-2+deb12u3 \| \< 1.6.48-1+deb13u3
- ubuntu libpng (Ubuntu): \< 1.2.50-1ubuntu2.14.04.3+esm1 \| \< 1.2.54-1ubuntu1.1+esm2
- ubuntu libpng1.6 (Ubuntu): \< 1.6.20-2ubuntu0.1~esm3 \| \< 1.6.34-1ubuntu0.18.04.2+esm2 \| \< 1.6.37-2ubuntu0.1~esm2 \| \< 1.6.55-1 \| \< 1.6.37-3ubuntu0.4 \| \< 1.6.43-5ubuntu0.5 \| \< 1.6.50-1ubuntu0.4
- libpng libpng: \< 1.6.55
- mageia libpng (Mageia): \< 1.6.38-1.4.mga9
- mageia libpng12 (Mageia): \< 1.2.59-3.1.mga9
- pnggroup libpng: \< 1.6.55
- opensuse libpng12&distro=openSUSE Leap 15.6 (openSUSE): \< 1.2.57-150000.4.6.1
- opensuse libpng12&distro=openSUSE Tumbleweed (openSUSE): \< 1.2.59-6.1
- opensuse libpng16&distro=openSUSE Leap 15.6 (openSUSE): \< 1.6.40-150600.3.12.1
- opensuse libpng16&distro=openSUSE Tumbleweed (openSUSE): \< 1.6.55-1.1
- redhat libpng (Red Hat): \< 2:1.5.13-8.el7\_9.2
- redhat libpng-debuginfo (Red Hat): \< 2:1.5.13-8.el7\_9.2
- redhat libpng-devel (Red Hat): \< 2:1.5.13-8.el7\_9.2
- redhat libpng-static (Red Hat): \< 2:1.5.13-8.el7\_9.2
- redhat libpng12 (Red Hat): \< 0:1.2.57-6.el8\_10 \| \< 0:1.2.50-10.el7\_9.1 \| \< 0:1.2.57-5.el8\_6.1 \| \< 0:1.2.57-5.el8\_8.1 \| \< 0:1.2.57-5.el8\_2.1 \| \< 0:1.2.57-5.el8\_4.1
- redhat libpng12-debuginfo (Red Hat): \< 0:1.2.57-6.el8\_10

## References (first 20 of 92)

- <https://github.com/pnggroup/libpng/security/advisories/GHSA-g8hp-mq4h-rqm3>
- <https://github.com/pnggroup/libpng/commit/01d03b8453eb30ade759cd45c707e5a1c7277d88>
- <http://www.openwall.com/lists/oss-security/2026/02/09/7>
- <https://access.redhat.com/security/cve/CVE-2026-25646>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2438542>
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-25646.json>
- <https://access.redhat.com/errata/RHSA-2026:4756>
- <https://access.redhat.com/errata/RHSA-2026:7032>
- <https://access.redhat.com/errata/RHSA-2026:12274>
- <https://access.redhat.com/errata/RHSA-2026:7239>
- <https://access.redhat.com/errata/RHSA-2026:15087>
- <https://access.redhat.com/errata/RHSA-2026:14773>
- <https://access.redhat.com/errata/RHSA-2026:10097>
- <https://access.redhat.com/errata/RHSA-2026:17596>
- <https://access.redhat.com/errata/RHSA-2026:6553>
- <https://access.redhat.com/errata/RHSA-2026:7243>
- <https://access.redhat.com/errata/RHSA-2026:3577>
- <https://access.redhat.com/errata/RHSA-2026:3551>
- <https://access.redhat.com/errata/RHSA-2026:6445>
- <https://access.redhat.com/errata/RHSA-2026:6439>

---

Data as of 2026-12-05T03:08:55.086Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
