CVE Catalog

CVE-2026-59200

HighCVSS 7.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.35%

27th percentile - higher than 27% of all known CVEs

Summary

In the Pillow Python imaging library, versions 5.1.0 through 12.3.0, the PdfParser.PdfStream.decode() function calls zlib.decompress() with a buffer size set to the PDF stream Length field without bounding the decompressed output size. This allows a crafted FlateDecode PDF stream to exhaust memory from a small file.

Risk Assessment

An attacker can provide a small, specially crafted PDF file that, when processed by the Pillow library, exhausts available system memory, leading to a denial of service (DoS) in applications using this library.

Recommendation

Immediately update the Pillow library to version 12.3.0 or later, which includes a fix that limits the decompressed stream size.

Other vulnerabilities in Pillow

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS