CVE-2026-112393
Description
Pillow is a Python imaging library. From 2.0.0 until 13.0.0, Pillow has a heap buffer overflow and stale-heap disclosure in _tiffWriteProc when saving compressed TIFF data through libtiff to a target without a usable fileno(), such as BytesIO. The callback sizes its allocation from the prior buffer size instead of the current write position, allowing an attacker-controlled out-of-line TIFF tag or retained ICC profile to be copied beyond the allocation after libtiff seeks forward. This overflow can crash the process and may allow code execution. Independently, unwritten alignment gaps in compressed TIFF output larger than 64 KiB can disclose stale heap bytes without a crafted tag. File paths and targets with real file descriptors are unaffected. This issue is fixed in version 13.0.0.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
PillowPyPI | >= 2.0.0, < 13.0.0 | 13.0.0 |
Affected products
9cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*+ 1 more
- cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*range: >=2.0.0,<13.0.0
- (no CPE)range: 2.0.0 - 13.0.0
- osv-coords7 versionspkg:bitnami/pillowpkg:rpm/almalinux/python3-pillowpkg:rpm/almalinux/python3-pillow-develpkg:rpm/almalinux/python3-pillow-docpkg:rpm/almalinux/python3-pillow-tkpkg:rpm/opensuse/python-Pillow&distro=openSUSE%20Leap%2016.0pkg:rpm/opensuse/python-Pillow&distro=openSUSE%20Leap%2016.1
>= 2.0.0, < 13.0.0+ 6 more
- (no CPE)range: >= 2.0.0, < 13.0.0
- (no CPE)range: < 5.1.1-36.el8_10
- (no CPE)range: < 5.1.1-36.el8_10
- (no CPE)range: < 5.1.1-36.el8_10
- (no CPE)range: < 5.1.1-36.el8_10
- (no CPE)range: < 11.3.0-160000.9.1
- (no CPE)range: < 11.3.0-160100.3.1
Patches
Vulnerability mechanics
References
5- github.com/python-pillow/Pillow/commit/11582e5ffbdceb973d5ee593f3105af5a9852b40nvdPatchWEB
- github.com/python-pillow/Pillow/security/advisories/GHSA-332p-7hrc-92wfnvdExploitPatchVendor AdvisoryWEB
- github.com/advisories/GHSA-332p-7hrc-92wfghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-112393ghsaADVISORY
- github.com/python-pillow/Pillow/releases/tag/13.0.0nvdRelease NotesWEB
News mentions
3- ⚡ Weekly Recap: This2Shell, That2Shell, Everything's an RCE? Rogue AI, Supply Chain Chaos and MoreThe Hacker News · Oct 26, 2026
- Critical Flaw in Python’s Popular Pillow Image Library Allows Code Execution via a Crafted ImageThe Hacker News · Oct 23, 2026
- Pillow: 25 Vulnerabilities Disclosed Together, Ranging from Critical to MediumVypr Intelligence · Oct 19, 2026