Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.4%top 69%

CVE-2026-59200: CWE-400: Uncontrolled Resource Consumption in python-pillow Pillow

0
High
VulnerabilityCVE-2026-59200cvecve-2026-59200cwe-400cwe-770
Published: 07/14/2026 (07/14/2026, 16:09:05 UTC)
Source: CVE Database V5
Vendor/Project: python-pillow
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected software

pillow
pkg:pypi/pillow
Affected versions
>=5.1.0 <12.3.0

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

AILast updated: 07/15/2026, 10:44:16 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses