CVE-2026-112897: Pillow uninitialized memory disclosure in TIFF decoding

CVE-2026-112897 · Severity: high · CVSS 4 · Published 2026-10-19

Pillow is a Python imaging library used to process and manipulate images in applications. When processing malicious TIFF image files, Pillow can leak uninitialized heap memory as image pixel data, allowing an attacker to disclose sensitive information without causing a crash. Applications that load and display or re-encode TIFF images from untrusted sources are at risk.

Technologies: pillow (PyPI), Python Pillow Pillow. Vendors: PyPI, Python Pillow.

Quick answers

Is CVE-2026-112897 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-112897 being exploited in the wild.
How severe is CVE-2026-112897?
High severity, with a CVSS score of 4, published 19 October 2026.
Which products and versions are affected?
pillow (PyPI) >= 5.3.0, < 13.0.0, ECOSYSTEM:introduced=5.3.0,fixed=13.0.0; Python Pillow Pillow 5.3.0 to 12.x.x (JPEG-compressed TIFF); 6.0.0 to 12.x.x (Group 4 fax TIFF).
Is there a fix for CVE-2026-112897?
Yes. pillow (PyPI): upgrade to 13.0.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-112897 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-112897?
Check whether you run pillow (PyPI) or Python Pillow Pillow at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • pillow (PyPI): upgrade to 13.0.0 or later
    pip install "pillow>=13.0.0"

Technical details

A buffer-underflow vulnerability in Pillow's TIFF decoder (_decodeStrip and _decodeTile functions) returns uninitialized memory when libtiff performs a short decode of JPEG-compressed or Group 4 fax TIFF data. The vulnerability affects JPEG-compressed TIFF on versions 5.3.0–12.x.x and Group 4 fax TIFF on versions 6.0.0–12.x.x. An attacker supplies a crafted TIFF file that, when loaded by an application, exposes stale heap contents without memory corruption or process crash.

Affected products

  • Python Pillow Pillow 5.3.0 to 12.x.x (JPEG-compressed TIFF); 6.0.0 to 12.x.x (Group 4 fax TIFF)

Identifiers

  • CVE-2026-112897
  • GHSA-q45j-58j2-45rg

Timeline

  • 2026-10-19: disclosed

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.