CVE-2026-112897: CWE-908: Use of Uninitialized Resource in python-pillow Pillow
Description
A vulnerability in the python-pillow Pillow library versions 5.3.0 through 12.x allows disclosure of uninitialized memory contents when decoding certain TIFF images. This occurs because the library does not clear unused buffer memory after decoding JPEG-compressed or Group 4 fax TIFF data, potentially leaking stale heap data. The issue is fixed in version 13.0.0.
CVSS v4.0
Score 8.7high
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, a Python imaging library, versions 5.3.0 up to but not including 13.0.0 have a vulnerability where uninitialized memory can be returned as pixel data during TIFF image decoding. Specifically, when libtiff performs a short decode of JPEG-compressed or Group 4 fax TIFF data, the internal _decodeStrip and _decodeTile buffers may be larger than the actual decoded data, and Pillow does not clear the unwritten tail of these buffers. This can lead to disclosure of stale heap contents without causing memory corruption or crashes. The vulnerability affects the tile decoding path from version 5.3.0 and the strip decoding path from version 6.0.0. The issue is resolved in Pillow 13.0.0.
Potential Impact
An attacker can craft a malicious TIFF image that, when loaded by an application using the affected Pillow versions, causes the application to disclose uninitialized memory contents from the heap. This information disclosure does not cause memory corruption or process crashes but may reveal sensitive data residing in memory. There are no known exploits in the wild.
Mitigation Recommendations
Upgrade to Pillow version 13.0.0 or later, where this vulnerability is fixed. No other mitigations are indicated or required.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-10-19T20:16:09.856Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6ad697602cdf04f6569bbdc6
Added to database: 10/19/2026, 22:19:12 UTC
Last enriched: 10/19/2026, 22:33:18 UTC
Last updated: 10/19/2026, 22:48:24 UTC
Views: 8
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.