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

Medium 6.8 Published Updated

An integer truncation in libpng's simplified write API allows heap buffer over-reads when processing images with specific negative or large row strides.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2026-22801?

CVE-2026-22801 is a medium-severity vulnerability in Libpng Libpng, published on 12 Jan 2026. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Weakness: CWE-190, CWE-125

Which versions are affected by CVE-2026-22801?

It affects 1 product.

Products include Libpng Libpng.

How do I fix CVE-2026-22801?

Upgrade to a fixed version.

Is CVE-2026-22801 being exploited?

There is no known exploitation of CVE-2026-22801 in the wild and no public exploit code.

All Libpng Libpng vulnerabilities

Sources

Also known as ALPINE-CVE-2026-22801, AZL-74264, AZL-74283, AZL-74499, AZL-74502, AZL-74505 and 12 more.

Is CVE-2026-22801 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free