CVE-2026-59200
Pillow: Decompression Bomb DoS via PdfParser.PdfStream.decode()
7.5
HIGH
CVSS 3.1
EPSS 0.35%
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.
How to fix CVE-2026-59200
To remediate CVE-2026-59200, upgrade the affected package to a fixed version below.
- —upgrade to 12.3.0 or later
- —no fix listed
- —upgrade to 12.3.0 or later
Is CVE-2026-59200 being exploited?
Low — EPSS is 0.4%, meaning exploitation activity has not been observed at scale.
Affected packages (3)
- >= 5.1.0, < 12.3.0
- from 0
- >= 5.1.0, < 12.3.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |