CVE-2026-112902

GHSA-xvh5-g6gv-559v · PYSEC-2026-4363 · published 21 Oct 2026 · updated 17 Nov 2026

Pillow: Memory disclosure and segfault in libtiff encoder via crafted TIFF tags

9.3CriticalCVSS 8.3EPSS 1%1 public exploits

A public exploit exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 13.0.0, Pillow 13.0.0 and pillow 13.0.0.

Pillow is a Python imaging library. In versions through 12.3.0, the libtiff TIFF encoder can pass arguments to  TIFFSetField()  that do not match libtiff’s definition of the corresponding tag. When an application saves attacker-controlled image metadata through this encoder, crafted tag values can cause invalid memory reads, copying process memory into the encoded output or crashing the process. Applications that return the encoded output to an attacker can disclose that memory. The issue is reachable when re-saving compressed TIFF images and through certain conversions that preserve EXIF metadata into compressed TIFF output. This vulnerability is fixed in version 13.0.0.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Pythonpillow<13.0.013.0.0
python-pillow<13.0.0
pypi: Pillow>=5.4.0 <=12.3.013.0.0
pypi: pillow<13.0.0, >=5.4.0 <13.0.013.0.0

Exploit evidence

1 public sources

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Pillow (PyPI), strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-112902 severity on Zeptric[![CVE-2026-112902](https://zeptric.io/badge/cve/CVE-2026-112902.svg)](https://zeptric.io/cve/CVE-2026-112902)