# CVE-2025-64505: LIBPNG is vulnerable to a heap buffer overflow in \`png\_do\_quantize\` via malformed palette index

- Priority: **Routine**
- Reason: Not severe (CVSS 6.1, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-11-24 · Modified: 2025-11-25
- Aliases: ALPINE-CVE-2025-64505, SUSE-SU-2025:4383-1, SUSE-SU-2025:4432-1, SUSE-SU-2026:0898-1, UBUNTU-CVE-2025-64505, DEBIAN-CVE-2025-64505, CGA-9h8c-qrrr-mgv2, CGA-m37w-36vh-8g26, openSUSE-SU-2025:15797-1
- Record: https://cvemate.com/vulnerability/CVE-2025-64505 · JSON: https://cvemate.com/vulnerability/CVE-2025-64505/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 version 1.6.51, a heap buffer over-read vulnerability exists in libpng's png_do_quantize function when processing PNG files with malformed palette indices. The vulnerability occurs when palette_lookup array bounds are not validated against externally-supplied image data, allowing an attacker to craft a PNG file with out-of-range palette indices that trigger out-of-bounds memory access. This issue has been patched in version 1.6.51.
```

## Signals

- CVSS: 6.1 medium (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
- EPSS: 0.205%, percentile 11.108%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine libpng (Alpine Linux): \< 1.6.53-r0 \| \< 1.6.51-r0
- chainguard libpng (Chainguard): \< 1.6.51-r0
- wolfi libpng (Wolfi): \< 1.6.51-r0
- debian libpng1.6 (Debian): \< 1.6.39-2+deb12u1 \| \< 1.6.48-1+deb13u1 \| \< 1.6.51-1
- 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~esm2 \| \< 1.6.34-1ubuntu0.18.04.2+esm1 \| \< 1.6.37-2ubuntu0.1~esm1 \| \< 1.6.37-3ubuntu0.1 \| \< 1.6.43-5ubuntu0.1 \| \< 1.6.50-1ubuntu0.1
- libpng libpng: \< 1.6.51
- pnggroup libpng: \< 1.6.51
- opensuse libpng12&distro=openSUSE Leap 15.6 (openSUSE): \< 1.2.57-150000.4.3.1
- opensuse libpng12&distro=openSUSE Tumbleweed (openSUSE): \< 1.2.59-4.1
- suse libpng12&distro=SUSE Linux Enterprise Module for Basesystem 15 SP6 (SUSE Linux Enterprise): \< 1.2.57-150000.4.3.1
- suse libpng12&distro=SUSE Linux Enterprise Module for Basesystem 15 SP7 (SUSE Linux Enterprise): \< 1.2.57-150000.4.3.1
- suse libpng12&distro=SUSE Linux Enterprise Server LTSS Extended Security 12 SP5 (SUSE Linux Enterprise): \< 1.2.50-20.6.1
- suse libpng15&distro=SUSE Linux Enterprise Server LTSS Extended Security 12 SP5 (SUSE Linux Enterprise): \< 1.5.22-10.7.1

## References

- <https://github.com/pnggroup/libpng/security/advisories/GHSA-4952-h5wq-4m42>
- <https://github.com/pnggroup/libpng/pull/748>
- <https://github.com/pnggroup/libpng/commit/6a528eb5fd0dd7f6de1c39d30de0e41473431c37>
- <https://security.alpinelinux.org/vuln/CVE-2025-64505>
- <https://www.suse.com/support/update/announcement/2025/suse-su-20254383-1/>
- <https://bugzilla.suse.com/1254157>
- <https://www.suse.com/security/cve/CVE-2025-64505>
- <https://www.suse.com/support/update/announcement/2025/suse-su-20254432-1/>
- <https://www.suse.com/support/update/announcement/2026/suse-su-20260898-1/>
- <https://ubuntu.com/security/CVE-2025-64505>
- <https://www.cve.org/CVERecord?id=CVE-2025-64505>
- <https://www.openwall.com/lists/oss-security/2025/11/22/1>
- <https://ubuntu.com/security/notices/USN-7924-1>
- <https://ubuntu.com/security/notices/USN-8081-1>
- <https://security-tracker.debian.org/tracker/CVE-2025-64505>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/64xxx/CVE-2025-64505.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-64505>

---

Data as of 2026-12-05T04:47:48.159Z. 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
