Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
python-pillow Pillow
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

python-pillow Pillow是python-pillow的图像处理库。 python-pillow Pillow存在资源管理错误漏洞,该漏洞源于在src/libImaging/Jpeg2KDecode.c中对total_component_width的处理不当,其在JPEG2000图像的每个平铺中累加而非重新计算,导致解码时出现大量瞬态内存使用并触发内存不足。以下版本受到影响:8.2.0版本、8.3.0版本、8.3.1版本、8.3.2版本、8.4.0版本、9.0.0版本、9.0.1版本、9.1

AI Predicted 5.3 Difficulty: Easy EPSS 0.39% · P30

Possible ATT&CK Techniques 1 AI

T1496 · Resource Hijacking

Affected Version Matrix 1

VendorProduct Version RangeStatus
python-pillow Pillow >= 8.2.0, < 12.3.0 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-59204

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Pillow JPEG2000 tiled decode retains a growing scratch buffer and can be used for denial of service
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
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
Source: CVE Program / CVE List V5
Vulnerability Type
未经控制的内存分配
Source: CVE Program / CVE List V5
Vulnerability Title
python-pillow Pillow 资源管理错误漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
python-pillow Pillow是python-pillow的图像处理库。 python-pillow Pillow存在资源管理错误漏洞,该漏洞源于在src/libImaging/Jpeg2KDecode.c中对total_component_width的处理不当,其在JPEG2000图像的每个平铺中累加而非重新计算,导致解码时出现大量瞬态内存使用并触发内存不足。以下版本受到影响:8.2.0版本、8.3.0版本、8.3.1版本、8.3.2版本、8.4.0版本、9.0.0版本、9.0.1版本、9.1
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
python-pillow Pillow >= 8.2.0, < 12.3.0 -

II. Public POCs for CVE-2026-59204

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-59204

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-59204 (2)

Vendor Advisories for CVE-2026-59204 (1)

Vendor Pages for CVE-2026-59204 (1)

Same Patch Batch · python-pillow · 2026-07-14 · 8 CVEs total

CVE-2026-59197 8.2 HIGH Pillow: Heap out-of-bounds write in Pillow `ImageFilter.RankFilter` via integer overflow i
CVE-2026-59199 7.5 HIGH Pillow: Heap out-of-bounds write `Image.paste()` / `Image.crop()` via signed coordinate ov
CVE-2026-59205 7.5 HIGH Pillow: Controlled heap out-of-bounds write in `ImageCmsTransform.apply()` via output mode
CVE-2026-59200 7.5 HIGH Pillow: Decompression Bomb DoS via PdfParser.PdfStream.decode()
CVE-2026-59198 6.5 MEDIUM Pillow TGA RLE encoder can serialize up to ~57 KB of adjacent heap data into generated ima
CVE-2026-59203 5.3 MEDIUM Pillow EpsImagePlugin negative %%BeginBinary byte count causes infinite loop denial of ser
CVE-2026-54058 Pillow: Out-of-bounds read via attacker-controlled row stride on Pillow's mmap path (McIda

IV. Related Vulnerabilities

V. Comments for CVE-2026-59204

No comments yet


Leave a comment