CVE-2026-59200
High
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.
SeverityHigh
CVSS7.5
Exploit probability33. percentile0.4%
Product
Python Pillow
PublishedJul 14, 2026
First seenJul 14, 2026
How to fix
Update
- python pillow12.3.0 or later
- pillow12.3.0 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| python pillow | 5.1.0 ≤ v < 12.3.0 | 12.3.0 |
| pillowPyPI | 5.1.0 ≤ v < 12.3.0 | 12.3.0 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.