CVE-2026-112897 Pillow: TiffDecode returns uninitialized memory as pixels for short JPEG strips
Attackers can disclose stale heap memory by supplying crafted TIFF images to applications 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-112897?
CVE-2026-112897 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. From 5.3.0 until 13.0.0, Pillow can return uninitialized memory as pixels when libtiff performs a short decode of JPEG-compressed or Group 4 fax TIFF data. The _decodeStrip and _decodeTile buffers can be larger than the bytes written by libtiff, but Pillow converts the expected rows without clearing the unwritten tail. The tile path is affected from 5.3.0 and the strip path from 6.0.0. An attacker can supply a crafted TIFF to an application that loads and returns or re-encodes its pixels. This can disclose stale heap contents without memory corruption or a process crash. This issue is fixed in version 13.0.0.
Weakness: CWE-908
Which versions are affected by CVE-2026-112897?
3 open source packages ship an affected version, including pillow and Pillow. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
pillow Bitnami | From 5.3.0 | 13.0.0 |
pillow PyPI | From 5.3.0 | 13.0.0 |
Pillow PyPI | From 5.3.0 | 13.0.0 |
Products include Python Pillow.
How do I fix CVE-2026-112897?
Upgrade pillow to 13.0.0 or later.
Is CVE-2026-112897 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-112897 exists.
Other vulnerabilities in Python Pillow
Sources
Also known as BIT-pillow-2026-112897, DEBIAN-CVE-2026-112897, ECHO-1c7d-7349-3e56, GHSA-q45j-58j2-45rg, ROOT-APP-PYPI-CVE-2026-112897, UBUNTU-CVE-2026-112897.