Medium severity5.9NVD Advisory· Published Oct 19, 2026· Updated Oct 26, 2026
CVE-2026-112396
CVE-2026-112396
Description
Pillow is a Python imaging library. From 11.3.0 until 13.0.0, Pillow has a heap use-after-free when libtiff rejects a tag while encoding TIFF data to an in-memory buffer. When an application saves attacker-influenced TIFF tags to BytesIO, libtiff can reject a tag during encoding in ImagingLibTiffEncode; the error path then frees the output buffer without closing or clearing the TIFF handle, and later cleanup flushes through the write callback into freed memory, which can crash the process and may enable code execution. 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 | >= 11.3.0, < 13.0.0 | 13.0.0 |
Affected products
6cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*+ 1 more
- cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*range: >=11.3.0,<13.0.0
- (no CPE)range: 11.3.0 - 13.0.0
- osv-coords4 versionspkg:bitnami/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
>= 11.3.0, < 13.0.0+ 3 more
- (no CPE)range: >= 11.3.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-1.1
Patches
Vulnerability mechanics
References
5- github.com/python-pillow/Pillow/commit/dc95da20207827a062cfbf551ee9f6031465a8bbnvdPatchWEB
- github.com/python-pillow/Pillow/security/advisories/GHSA-4rr5-89j8-mwwmnvdExploitVendor AdvisoryWEB
- github.com/advisories/GHSA-4rr5-89j8-mwwmghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-112396ghsaADVISORY
- github.com/python-pillow/Pillow/releases/tag/13.0.0nvdRelease NotesWEB
News mentions
1- Pillow: 25 Vulnerabilities Disclosed Together, Ranging from Critical to MediumVypr Intelligence · Oct 19, 2026