Pillow: Memory disclosure and segfault in libtiff encoder via crafted TIFF tags
- CVE-2026-112902
- GHSA-xvh5-g6gv-559v
- BIT-pillow-2026-112902
- PYSEC-2026-4363
- EUVD-2026-117793
Description
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.
Text from the CVE.org record.
Recommendation
python pillow
- If you run a version before 13.0.0update to 13.0.0 or later
Taken from the version ranges of the NVD record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
python pillow
Affected versions Fixed in before 13.0.0 13.0.0 pillowPyPI
Affected versions Fixed in from 5.4.0 up to 12.3.0 none stated
Product versions from the NVD record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.