CVE-2026-112896 Pillow: TIFF encoder ColorMap plane-size mismatch causes a heap out-of-bounds read

High 8.8 Published Updated

An attacker can cause heap memory disclosure or process crashes by tricking an application into re-encoding a crafted TIFF image using the Pillow library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-112896?

CVE-2026-112896 is a high-severity vulnerability in Python Pillow, published on 19 Oct 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Pillow is a Python imaging library. Prior to 13.0.0, Pillow's TIFF encoder can read beyond a ColorMap buffer when retained TIFF metadata has a plane size inconsistent with BitsPerSample. A small TIFF can be opened normally and then retain a crafted ColorMap that is reused when the image is saved. An application that re-encodes the attacker's TIFF with libtiff can trigger the out-of-bounds read. This can disclose heap memory in the output or crash the process. This issue is fixed in version 13.0.0.

Weakness: CWE-125

Which versions are affected by CVE-2026-112896?

4 open source packages ship an affected version, including pillow and Pillow. It affects 1 product.

PackageAffectedFixed in
pillow BitnamiAll versions13.0.0
pillow PyPIAll versions13.0.0
pillow PyPIAll versions13.0.0
Pillow PyPIAll versions13.0.0

Products include Python Pillow.

How do I fix CVE-2026-112896?

Upgrade pillow to 13.0.0 or later.

Is CVE-2026-112896 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-112896 exists.

All Python Pillow vulnerabilities

Sources

Also known as BIT-pillow-2026-112896, DEBIAN-CVE-2026-112896, ECHO-6c6e-61ed-491d, GHSA-pchr-8j38-3x4p, PYSEC-2026-4334, ROOT-APP-PYPI-CVE-2026-112896 and 1 more.

Is CVE-2026-112896 in your software?

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

Check your SBOMs for free