Vulnerability · Published Jul 14, 2026 · Assigned by GitHub_M

CVE-2026-59200Pillow: Decompression Bomb DoS via PdfParser.PdfStream.decode()

High 7.5

In plain English

A high-severity uncontrolled resource consumption in Pillow from python-pillow. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 33% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.4%top 67.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12pillowno fix listedDEBIAN-CVE-2026-59200
Debian:13pillowno fix listedDEBIAN-CVE-2026-59200
Debian:14pillow12.3.0-1DEBIAN-CVE-2026-59200
PyPIpillow12.3.0PYSEC-2026-3495
PyPIpillow12.3.0GHSA-jjj6-mw9f-p565
Ubuntu:22.04:LTSpillow9.0.1-1ubuntu0.6UBUNTU-CVE-2026-59200
Ubuntu:22.04:LTSpillow9.0.1-1ubuntu0.6USN-8999-1
Ubuntu:24.04:LTSpillow10.2.0-1ubuntu1.4USN-8999-1
Ubuntu:24.04:LTSpillow10.2.0-1ubuntu1.4UBUNTU-CVE-2026-59200
Ubuntu:26.04:LTSpillow12.1.1-2ubuntu1.4USN-8999-1
Ubuntu:26.04:LTSpillow12.1.1-2ubuntu1.4UBUNTU-CVE-2026-59200

Affected products (as reported)

VendorProductVersions
python-pillow Pillow >= 5.1.0, < 12.3.0

Weakness: CWE-400, CWE-770 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References