# CVE-2026-25646: LIBPNG has a heap buffer overflow in png_set_quantize

- Severity: High 8.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.12%, higher than 67% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-02-10T17:04:38.501Z
- Modified: 2026-09-01T12:04:57.909Z
- Weaknesses: CWE-122, CWE-125, CWE-126
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- pnggroup libpng: < 1.6.55
- libpng: no versions given (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 *; from 2:1.6.34-8.el8_6.2 before *; from 2:1.6.34-8.el8_8.2 before *; from 2:1.6.37-12.el9_7.2 before *; from 2:1.6.37-12.el9_0.2 before *; from 2:1.6.37-12.el9_2.2 before *; from 2:1.6.37-12.el9_4.2 before *)
- libpng12: no versions given (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 *)
- libpng15: no versions given (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 *; from 0:1.5.30-14.el9_0.1 before *; from 0:1.5.30-14.el9_2.1 before *; from 0:1.5.30-14.el9_4.1 before *; from 0:1.5.30-14.el9_6.1 before *)
- mingw-libpng: no versions given (not affected: from 0:1.6.34-2.el8_10 before *)
- rhcos: no versions given (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 *; from 418.94.202603261158-0 before *; from 4.19.9.6.202604080618-0 before *)
- rhaiis/vllm-spyre-rhel9: no versions given (not affected: from 1778244546 before *)
- rhaiis/vllm-cuda-rhel9: no versions given (not affected: from 1775680192 before *)
- rhaiis/vllm-rocm-rhel9: no versions given (not affected: from 1775680262 before *)
- rhaiis/model-opt-cuda-rhel9: no versions given (not affected: from 1775749857 before *)
- rhceph/rhceph-8-rhel9: no versions given (not affected: from 1774002867 before *)
- discovery/discovery-ui-rhel9: no versions given (not affected: from 1773273070 before *)
- libpng-main: no versions given (not affected: from 1.6.56-1.hum1 before *)
- java-11-openjdk: no versions given
- java-11-openjdk-portable: no versions given
- java-17-openjdk-portable: no versions given
- java-1.8.0-openjdk-portable: no versions given
- java-21-openjdk-portable: no versions given
- java-25-openjdk-portable: no versions given
- firefox: no versions given
- java-21-openjdk: no versions given
- java-25-openjdk: no versions given
- thunderbird: no versions given
- java-17-openjdk: no versions given
- java-1.8.0-openjdk: no versions given
- libpng libpng: before 1.6.55

## Every score

- GitHub_M: CVSS: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`
- redhat-SADP: CVSS:3.1 7.0 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H`
- NVD: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/pnggroup/libpng/security/advisories/GHSA-g8hp-mq4h-rqm3> (exploit, vendor-advisory)
- <https://github.com/pnggroup/libpng/commit/01d03b8453eb30ade759cd45c707e5a1c7277d88> (patch)
- <http://www.openwall.com/lists/oss-security/2026/02/09/7> (mailing-list)
- <https://access.redhat.com/security/cve/CVE-2026-25646> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2438542> (issue-tracking)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-25646.json>
- <https://access.redhat.com/errata/RHSA-2026:4756> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:7032> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:12274> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:7239> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:15087> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:14773> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:10097> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:17596> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:6553> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:7243> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:3577> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:3551> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:6445> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:6439> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:7035> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:6466> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:7036> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:6467> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:7033> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:6469> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:7034> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:6468> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:3573> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:4222> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:3575> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:4221> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:3574> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:3969> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:3576> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:3968> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:3405> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:3031> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:4728> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:4732> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:4731> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:4730> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:4729> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:4306> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:8748> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:8746> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:8747> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:16174> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:5606> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:4501> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:6732> (vendor-advisory)

## Sources

- CVE List: [CVE-2026-25646](https://www.cve.org/CVERecord?id=CVE-2026-25646), CVE Terms of Use, modified 2026-09-01
- NVD: [CVE-2026-25646](https://nvd.nist.gov/vuln/detail/CVE-2026-25646), Public domain, modified 2026-08-11

---

Page: https://cve.day/CVE-2026-25646 · Whole record: https://cve.day/CVE-2026-25646.json · Rebuilt by cve.day 2026-11-25T22:59:13.744Z
