Quick answers
- Is CVE-2026-112902 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-112902 being exploited in the wild.
- How severe is CVE-2026-112902?
- High severity, with a CVSS score of 4, published 5 November 2026.
- Which products and versions are affected?
- Pillow 5.4.0 and later; pillow (PyPI) <= 12.3.0, ECOSYSTEM:introduced=0,fixed=13.0.0.
- Is there a fix for CVE-2026-112902?
- Yes. pillow (PyPI): upgrade to 13.0.0 or later. Until then: Disable TIFF compression or use raw TIFF encoding if possible to avoid the libtiff writer path. Do not re-save TIFF images with inherited compression from untrusted sources. Restrict TIFF file upload and processing to trusted inputs only. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-112902 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2026-112902?
- Check whether you run Pillow or pillow (PyPI) 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"
Disable TIFF compression or use raw TIFF encoding if possible to avoid the libtiff writer path. Do not re-save TIFF images with inherited compression from untrusted sources. Restrict TIFF file upload and processing to trusted inputs only.
Technical details
The encoder determines how to pass TIFF tag values to libtiff's variadic TIFFSetField() based on the Python value's shape (scalar, tuple, or bytes) rather than consulting libtiff's own field definition. For tags libtiff already knows (e.g., DNGPrivateData, ActiveArea), this causes a mismatch: a scalar integer meant as a tag value is consumed as either a byte count with an unwritten pointer argument (leaking process memory), or as a memory address itself (causing out-of-bounds reads and crashes). The vulnerability is triggered automatically when re-saving any compressed TIFF, without application-level control. Multiple code paths are affected including array types, RATIONAL tuples, and core tags with stale file-supplied types.
Affected products
- Pillow Pillow 5.4.0 and later
Identifiers
- CVE-2026-112902
- GHSA-xvh5-g6gv-559v
- PYSEC-2026-4363
Timeline
- 2026-10-21: disclosed