CVE-2026-112396: CWE-416: Use After Free in python-pillow Pillow
Description
A use-after-free vulnerability exists in the Pillow Python imaging library versions 11.3.0 up to but not including 13.0.0. The flaw occurs when libtiff rejects a TIFF tag during encoding to an in-memory buffer, leading to a heap use-after-free condition. This can cause a process crash and potentially enable code execution. The issue is fixed in Pillow version 13.0.0.
CVSS v3.1
Score 5.9medium
Affected software
python-pillow
Pillow
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Pillow versions from 11.3.0 to before 13.0.0 contain a heap use-after-free vulnerability triggered when libtiff rejects a tag during TIFF encoding to a BytesIO buffer. The error path frees the output buffer without properly closing or clearing the TIFF handle, causing subsequent cleanup to operate on freed memory. This can lead to application crashes and may allow remote code execution if attacker-controlled TIFF tags are processed. The vulnerability is addressed in version 13.0.0.
Potential Impact
Exploitation of this vulnerability can cause application crashes (denial of service) and may allow remote code execution due to use-after-free memory corruption when processing malicious TIFF images. There are no known exploits in the wild at this time.
Mitigation Recommendations
Upgrade to Pillow version 13.0.0 or later, where this vulnerability is fixed. No other mitigation is indicated by the vendor advisory.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-10-19T16:58:51.959Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6ad68cd42cdf04f65692eebc
Added to database: 10/19/2026, 21:34:12 UTC
Last enriched: 10/19/2026, 21:48:35 UTC
Last updated: 10/19/2026, 21:48:35 UTC
Views: 11
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.