CVE-2026-59200

Severity CVSS v4.0:
Pending analysis
Type:
CWE-400 Uncontrolled Resource Consumption ('Resource Exhaustion')
Publication date:
14/07/2026
Last modified:
21/07/2026

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.

Vulnerable products and versions

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