CVE-2026-112896: Pillow TIFF encoder buffer over-read in ColorMap

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

Pillow is a Python library for image processing. A flaw in how it handles TIFF image metadata can cause the encoder to read past the bounds of a color map buffer when processing specially crafted TIFF files. This could disclose sensitive data from memory or crash the application processing the image.

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

Quick answers

Is CVE-2026-112896 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-112896 being exploited in the wild.
How severe is CVE-2026-112896?
High severity, with a CVSS score of 4, published 19 October 2026.
Which products and versions are affected?
pillow (PyPI) <= 12.3.0, ECOSYSTEM:introduced=0,fixed=13.0.0; Python Pillow Pillow prior to 13.0.0.
Is there a fix for CVE-2026-112896?
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-112896 attacked?
It is attacked with local access, in a software library.
Am I affected by CVE-2026-112896?
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

The TIFF encoder in Pillow prior to 13.0.0 fails to validate that retained ColorMap metadata is sized consistently with BitsPerSample, allowing an out-of-bounds read when a small TIFF with a crafted ColorMap is re-encoded. An attacker can craft a TIFF file that, when opened normally and then saved by the application, triggers heap memory disclosure or process crash during re-encoding.

Affected products

  • Python Pillow Pillow prior to 13.0.0

Identifiers

  • CVE-2026-112896
  • BIT-PILLOW-2026-112896
  • GHSA-pchr-8j38-3x4p
  • PYSEC-2026-4334

Timeline

  • 2026-10-19: disclosed
  • 2026-10-16: patched

References

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