# CVE-2026-22801: LIBPNG has an integer truncation causing heap buffer over-read in png\_image\_write\_\*

- Priority: **Routine**
- Reason: Not severe (CVSS 6.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-01-12 · Modified: 2026-01-13
- Aliases: ALPINE-CVE-2026-22801, UBUNTU-CVE-2026-22801, DEBIAN-CVE-2026-22801, CGA-324f-7r47-g78h, CGA-73jw-5hhg-qhw5, CGA-97cj-g7fr-m84x, CGA-cm2j-cj6h-5m55, CGA-jwqq-c2mv-9fp6, CGA-mm2r-j794-r9rc, CGA-qq92-4xvj-pvc4, CGA-r3cm-445q-xfpr, CGA-wf2r-rg7g-v3qv, CGA-x8cj-26rj-78fq
- Record: https://cvemate.com/vulnerability/CVE-2026-22801 · JSON: https://cvemate.com/vulnerability/CVE-2026-22801/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 1.6.26 to 1.6.53, there is an integer truncation in the libpng simplified write API functions png_write_image_16bit and png_write_image_8bit causes heap buffer over-read when the caller provides a negative row stride (for bottom-up image layouts) or a stride exceeding 65535 bytes. The bug was introduced in libpng 1.6.26 (October 2016) by casts added to silence compiler warnings on 16-bit systems. This vulnerability is fixed in 1.6.54.
```

## Signals

- CVSS: 7.8 high (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.134%, percentile 3.056%, 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.26, \< 1.6.54-r0
- chainguard libpng (Chainguard): \< 1.6.54-r0
- chainguard libpng-dev (Chainguard): \< 1.6.54-r0
- chainguard libpng-doc (Chainguard): \< 1.6.54-r0
- chainguard libpng-static (Chainguard): \< 1.6.54-r0
- chainguard libpng-utils (Chainguard): \< 1.6.54-r0
- wolfi libpng (Wolfi): \< 1.6.54-r0
- wolfi libpng-dev (Wolfi): \< 1.6.54-r0
- wolfi libpng-doc (Wolfi): \< 1.6.54-r0
- wolfi libpng-static (Wolfi): \< 1.6.54-r0
- wolfi libpng-utils (Wolfi): \< 1.6.54-r0
- debian libpng1.6 (Debian): \< 1.6.39-2+deb12u2 \| \< 1.6.48-1+deb13u2 \| \< 1.6.54-1
- ubuntu libpng1.6 (Ubuntu): \< 1.6.34-1ubuntu0.18.04.2+esm2 \| \< 1.6.37-2ubuntu0.1~esm2 \| \< 1.6.37-3ubuntu0.3 \| \< 1.6.43-5ubuntu0.3 \| \< 1.6.50-1ubuntu0.3 \| \< 1.6.54-1
- libpng libpng: ≥ 1.6.26, \< 1.6.54
- pnggroup libpng: \< 1.6.54

## References

- <https://github.com/pnggroup/libpng/security/advisories/GHSA-vgjq-8cw5-ggw8>
- <https://security.alpinelinux.org/vuln/CVE-2026-22801>
- <https://ubuntu.com/security/CVE-2026-22801>
- <https://www.cve.org/CVERecord?id=CVE-2026-22801>
- <https://www.openwall.com/lists/oss-security/2026/01/12/7>
- <https://ubuntu.com/security/notices/USN-7963-1>
- <https://ubuntu.com/security/notices/USN-8035-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-22801>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/22xxx/CVE-2026-22801.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-22801>

---

Data as of 2026-12-05T03:08:32.843Z. 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
