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.
Fix
Patch, vendor advisory and mitigation references on NVD 2
- https://github.com/python-pillow/Pillow/commit/dc95da20207827a062cfbf551ee9f6031465a8bb Patch
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-4rr5-89j8-mwwm Exploit, Vendor Advisory
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 9
- Cpes+1 CPE criteria (now 1)NVD modified 2026-10-26 21:00
- StatusPublished → AnalyzedNVD modified 2026-10-26 21:00
- CVSS5.9 (v3.1, CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H) → 7.5 (v3.1, CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H)NVD modified 2026-10-26 21:00
- StatusUndergoing Analysis → PublishedNVD modified 2026-10-20 16:09
- StatusPublished → Undergoing AnalysisNVD modified 2026-10-20 19:50
- StatusReceived → PublishedNVD modified 2026-10-20 16:09
- StatusPublished → ReceivedNVD modified 2026-10-20 17:17
- StatusReceived → PublishedNVD modified 2026-10-19 21:02
- First seenCVSS 5.9NVD modified 2026-10-19 22:17
Affected (CPE criteria) 1
cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*