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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.3
- **CVSS:** 8.3 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Attack requirements: Present; Privileges required: None; User interaction: None; Confidentiality impact: Low; Integrity impact: Low; Availability impact: High; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.77% (percentile 52, 2026-11-26)
- **CWE:** CWE-122, CWE-126
- **Published:** 2026-02-10T17:04:38.501Z
- **Modified:** 2026-09-01T12:04:57.909Z

## Who should check

- Anyone running pnggroup libpng \< 1.6.55

## 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 and fixed versions

- pnggroup libpng: \< 1.6.55 (cvelist)

## Mitigation

- Upgrade libpng to 1.6.55 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-25646. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-25646.md
Affected: pnggroup libpng < 1.6.55
Fixed in: pnggroup libpng 1.6.55

Steps:
1. Search this machine and project for pnggroup libpng: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-25646 being exploited?

There is no confirmed exploitation: CVE-2026-25646 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.77% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-25646?

High: CVSS 8.3 (v4.0, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-25646?

pnggroup libpng \< 1.6.55.

### Is there a fix for CVE-2026-25646?

Yes. Fixed in pnggroup libpng 1.6.55. Upgrade libpng to 1.6.55 or later.

### How do I check if I'm affected by CVE-2026-25646?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-25646>

HTML: <https://flawdb.com/CVE-2026-25646> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-25646>
