CVE-2026-59200

HIGH CVSS 3.1: 7.5 EPSS 0.39%
Updated Jul 21, 2026
Python
Parameter Value
CVSS 7.5 (HIGH)
Affected Versions 5.1.0 — 12.3.0
Fixed In 12.3.0
Type CWE-400 (Uncontrolled Resource Consumption), CWE-770 (Allocation Without Limits)
Vendor Python
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Privileges Required
None
No privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
None
No data leak
Integrity
None
No data modification
Availability
High
Complete denial of service

CVSS Vector v3.1

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Python Pillow
cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*
5.1.0 12.3.0