# CVE-2026-22801: LIBPNG has an integer truncation causing heap buffer over-read in png_image_write_*

- Severity: Medium 6.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 6% of CVEs (2026-11-30)
- Published: 2026-01-12T22:57:58.288Z
- Modified: 2026-06-17T10:20:27.327Z
- Weaknesses: CWE-125, CWE-190
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- pnggroup libpng: < 1.6.54
- libpng libpng: from 1.6.26 before 1.6.54

## Every score

- GitHub_M: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/pnggroup/libpng/security/advisories/GHSA-vgjq-8cw5-ggw8> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-22801](https://www.cve.org/CVERecord?id=CVE-2026-22801), CVE Terms of Use, modified 2026-01-13
- NVD: [CVE-2026-22801](https://nvd.nist.gov/vuln/detail/CVE-2026-22801), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-22801 · Whole record: https://cve.day/CVE-2026-22801.json · Rebuilt by cve.day 2026-11-25T22:59:12.741Z
