CVE-2026-112902
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.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
PillowPyPI | >= 5.4.0, < 13.0.0 | 13.0.0 |
Affected products
6- Range: <=12.3.0
- osv-coords5 versionspkg:bitnami/pillowpkg:pypi/pillowpkg:rpm/opensuse/python-Pillow&distro=openSUSE%20Leap%2016.0pkg:rpm/opensuse/python-Pillow&distro=openSUSE%20Leap%2016.1pkg:rpm/opensuse/python-Pillow&distro=openSUSE%20Tumbleweed
< 13.0.0+ 4 more
- (no CPE)range: < 13.0.0
- (no CPE)range: >= 5.4.0, < 13.0.0
- (no CPE)range: < 11.3.0-160000.9.1
- (no CPE)range: < 11.3.0-160100.3.1
- (no CPE)range: < 13.0.0-2.1
Patches
Vulnerability mechanics
References
8- github.com/python-pillow/Pillow/commit/570df030c0d30c2bf5336b2ab59f3902d8ab0b6dnvdPatchWEB
- github.com/python-pillow/Pillow/pull/10227nvdIssue TrackingPatchWEB
- github.com/advisories/GHSA-xvh5-g6gv-559vghsaADVISORY
- github.com/python-pillow/Pillow/security/advisories/GHSA-xvh5-g6gv-559vnvdVendor AdvisoryExploitPatchMitigationWEB
- nvd.nist.gov/vuln/detail/CVE-2026-112902ghsaADVISORY
- github.com/github/advisory-database/pull/10903ghsaWEB
- github.com/python-pillow/Pillow/commit/af56ace297b0991d02988fcc2ea933e4824b4fb3ghsaWEB
- github.com/python-pillow/Pillow/releases/tag/13.0.0nvdRelease NotesWEB
News mentions
0No linked articles in our index yet.