# CVE-2025-65018: LIBPNG is vulnerable to a heap buffer overflow in \`png\_combine\_row\` triggered via \`png\_image\_finish\_read\`

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 1.6.51 (CNA); fix release not confirmed
- Status: published
- Published: 2025-11-24 · Modified: 2025-11-25
- Aliases: ALPINE-CVE-2025-65018, UBUNTU-CVE-2025-65018, DEBIAN-CVE-2025-65018, CGA-cqq7-35q5-59w6, CGA-wc6q-j4rp-v3hr
- Record: https://cvemate.com/vulnerability/CVE-2025-65018 · JSON: https://cvemate.com/vulnerability/CVE-2025-65018/json

## Description

```text
LIBPNG is a reference library for use in applications that read, create, and manipulate PNG (Portable Network Graphics) raster image files. From version 1.6.0 to before 1.6.51, there is a heap buffer overflow vulnerability in the libpng simplified API function png_image_finish_read when processing 16-bit interlaced PNGs with 8-bit output format. Attacker-crafted interlaced PNG files cause heap writes beyond allocated buffer bounds. This issue has been patched in version 1.6.51.
```

## Signals

- CVSS: 7.1 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
- EPSS: 0.278%, percentile 21.598%, 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

- alpine libpng (Alpine Linux): ≥ 1.6.0, \< 1.6.53-r0 \| ≥ 1.6.0, \< 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 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.0, \< 1.6.51
- pnggroup libpng: ≥ 1.6.0, \< 1.6.51

## References

- <https://github.com/pnggroup/libpng/security/advisories/GHSA-7wv6-48j4-hj3g>
- <https://github.com/pnggroup/libpng/issues/755>
- <https://github.com/pnggroup/libpng/pull/757>
- <https://github.com/pnggroup/libpng/commit/16b5e3823918840aae65c0a6da57c78a5a496a4d>
- <https://github.com/pnggroup/libpng/commit/218612ddd6b17944e21eda56caf8b4bf7779d1ea>
- <https://security.alpinelinux.org/vuln/CVE-2025-65018>
- <https://ubuntu.com/security/CVE-2025-65018>
- <https://www.cve.org/CVERecord?id=CVE-2025-65018>
- <https://www.openwall.com/lists/oss-security/2025/11/22/1>
- <https://ubuntu.com/security/notices/USN-7924-1>
- <https://security-tracker.debian.org/tracker/CVE-2025-65018>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/65xxx/CVE-2025-65018.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-65018>

---

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