Skip to content
7.5 High

CVE-2026-59200 Pillow is a Python imaging library

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.

Affected products and versions

Product Affected versions Fixed in
Pillow 5.1 5.1.0 → < 12.3.0 12.3.0
The 60 CVEs of Pillow →
Track this CVE