CVE-2026-25646: Heap out-of-bounds read and infinite loop in libpng png_set_quantize()
- Vendor
- Libpng
An out-of-bounds read vulnerability affects the png_set_quantize() API in libpng versions before 1.6.55. When called without a histogram and with a palette containing more than twice the maximum number of colors supported by the user's display, certain palette arrangements cause an infinite loop that reads beyond an internal heap-allocated buffer. PNG images triggering this condition can conform to the PNG specification. Exploitation can disrupt applications performing the affected palette quantization.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
The infinite loop and heap-buffer over-read can cause application unresponsiveness or crashes, resulting in denial of service. Debian additionally identifies potential arbitrary code execution, but the available technical details establish an out-of-bounds read rather than a demonstrated code-execution mechanism.
Mitigation
If you can’t patch tonight, do this now.
No confirmed vulnerability-specific workaround is documented. Until patched, reduce exposure by preventing untrusted PNG images from reaching the affected palette-quantization operation. PNG specification validation alone does not prevent exploitation because valid images can trigger the flaw.
Remediation
Patch, then assume compromise.
Upgrade libpng to version 1.6.55 or later, or install the applicable vendor package containing a backported fix. For Debian bookworm, upgrade libpng1.6 to 1.6.39-2+deb12u3 or later; for Debian trixie, upgrade to 1.6.48-1+deb13u3 or later. Applications bundling libpng should update their embedded dependency or install a corrected application release.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2026-25646 exploited in the wild?
- As of Nov 19, 2026, Mallory has no reports of CVE-2026-25646 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-25646?
- Yes. As of Nov 19, 2026, Mallory has reports of a public exploit for CVE-2026-25646.
- Is there a patch for CVE-2026-25646?
- Upgrade libpng to version 1.6.55 or later, or install the applicable vendor package containing a backported fix. For Debian bookworm, upgrade libpng1.6 to 1.6.39-2+deb12u3 or later; for Debian trixie, upgrade to 1.6.48-1+deb13u3 or later.
- What products are affected by CVE-2026-25646?
- Libpng.
- How severe is CVE-2026-25646?
- CVE-2026-25646 has a CVSS v4 score of 8.3 (High) and an EPSS score of 0.77% (52nd percentile) as of Nov 19, 2026.
Recent activity
56 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.