Vulnerability · Published Jul 14, 2026 · Assigned by GitHub_M

CVE-2026-59204Pillow JPEG2000 tiled decode retains a growing scratch buffer and can be used for denial of service

High 8.7

In plain English

A high-severity security flaw 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 4.0)8.7High
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 8.2.0 through 12.2.0, src/libImaging/Jpeg2KDecode.c accumulates total_component_width across every tile in a JPEG2000 image instead of recomputing it per tile, allowing a crafted tiled JPEG2000 file to force substantially higher transient memory usage and trigger out-of-memory failures during decoding. This issue is fixed in version 12.3.0.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12pillowno fix listedDEBIAN-CVE-2026-59204
Debian:13pillowno fix listedDEBIAN-CVE-2026-59204
Debian:14pillow12.3.0-1DEBIAN-CVE-2026-59204
PyPIpillow12.3.0PYSEC-2026-3496
PyPIpillow12.3.0GHSA-vjc4-5qp5-m44j
Ubuntu:22.04:LTSpillow9.0.1-1ubuntu0.6UBUNTU-CVE-2026-59204
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-59204
Ubuntu:26.04:LTSpillow12.1.1-2ubuntu1.4USN-8999-1
Ubuntu:26.04:LTSpillow12.1.1-2ubuntu1.4UBUNTU-CVE-2026-59204

Affected products (as reported)

VendorProductVersions
python-pillow Pillow >= 8.2.0, < 12.3.0

Weakness: CWE-789 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

References