CVE-2026-59200: CWE-400: Uncontrolled Resource Consumption in python-pillow Pillow
Pillow is a Python imaging library. From 5.1.0 until 12.3.0, PdfParser.PdfStream.decode() in PIL/PdfParser.py calls zlib.decompress() with bufsize set to the PDF stream Length field without bounding the decompressed output size, allowing a crafted FlateDecode PDF stream to exhaust memory from a small file. This issue is fixed in version 12.3.0.
AI Analysis
Technical Summary
CVE-2026-59200 is a high-severity vulnerability in the Pillow library affecting versions from 5.1.0 up to but not including 12.3.0. The vulnerability arises because the PdfParser.PdfStream.decode() method calls zlib.decompress() with a buffer size derived directly from the PDF stream Length field, without bounding the decompressed output size. This lack of bounding allows an attacker to craft a FlateDecode PDF stream that causes excessive memory consumption, potentially leading to denial of service due to resource exhaustion. The vulnerability is categorized under CWE-400 (Uncontrolled Resource Consumption) and CWE-770 (Allocation of Resources Without Limits or Throttling). The issue has been fixed in Pillow version 12.3.0.
Potential Impact
An attacker can exploit this vulnerability by supplying a specially crafted PDF file with a FlateDecode stream that triggers excessive memory allocation during decompression. This can exhaust system memory, leading to denial of service conditions. There is no impact on confidentiality or integrity reported, only availability is affected.
Mitigation Recommendations
A fix is available in Pillow version 12.3.0. Users should upgrade to version 12.3.0 or later to remediate this vulnerability. Since this is a library vulnerability, updating the Pillow dependency in affected applications is the recommended remediation. No vendor advisory content is provided to indicate alternative mitigations or temporary fixes.
CVE-2026-59200: CWE-400: Uncontrolled Resource Consumption in python-pillow Pillow
Description
Pillow is a Python imaging library. From 5.1.0 until 12.3.0, PdfParser.PdfStream.decode() in PIL/PdfParser.py calls zlib.decompress() with bufsize set to the PDF stream Length field without bounding the decompressed output size, allowing a crafted FlateDecode PDF stream to exhaust memory from a small file. This issue is fixed in version 12.3.0.
CVSS v3.1
Score 7.5high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-59200 is a high-severity vulnerability in the Pillow library affecting versions from 5.1.0 up to but not including 12.3.0. The vulnerability arises because the PdfParser.PdfStream.decode() method calls zlib.decompress() with a buffer size derived directly from the PDF stream Length field, without bounding the decompressed output size. This lack of bounding allows an attacker to craft a FlateDecode PDF stream that causes excessive memory consumption, potentially leading to denial of service due to resource exhaustion. The vulnerability is categorized under CWE-400 (Uncontrolled Resource Consumption) and CWE-770 (Allocation of Resources Without Limits or Throttling). The issue has been fixed in Pillow version 12.3.0.
Potential Impact
An attacker can exploit this vulnerability by supplying a specially crafted PDF file with a FlateDecode stream that triggers excessive memory allocation during decompression. This can exhaust system memory, leading to denial of service conditions. There is no impact on confidentiality or integrity reported, only availability is affected.
Mitigation Recommendations
A fix is available in Pillow version 12.3.0. Users should upgrade to version 12.3.0 or later to remediate this vulnerability. Since this is a library vulnerability, updating the Pillow dependency in affected applications is the recommended remediation. No vendor advisory content is provided to indicate alternative mitigations or temporary fixes.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-07-02T19:53:48.831Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a56684768715ace43dcfe9a
Added to database: 07/14/2026, 16:48:07 UTC
Last enriched: 07/15/2026, 10:44:16 UTC
Last updated: 08/26/2026, 22:52:11 UTC
Views: 62
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.