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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-59203— Pillow EpsImagePlugin negative %%BeginBinary byte count causes infinite loop 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 12.0.0版本至12.2.0版本存在资源管理错误漏洞,该漏洞源于EPS解析器在PIL/EpsImagePlugin.py中接受%%BeginBinary指令中的负字节计数,可能导致特制的EPS文件使Image.open()向后查找同一指令并重复解析形成无限循环。

CVSS 5.3 · Medium EPSS 0.40% · P32

Possible ATT&CK Techniques 1 AI

T1211 · Exploitation for Stealth

Affected Version Matrix 1

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

I. Basic Information for CVE-2026-59203

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 EpsImagePlugin negative %%BeginBinary byte count causes infinite loop denial of service
Source: CVE Program / CVE List V5
Vulnerability Description
Pillow is a Python imaging library. From 12.0.0 through 12.2.0, Pillow's EPS parser in PIL/EpsImagePlugin.py accepts a negative byte count in the %%BeginBinary directive, allowing a crafted EPS file to cause Image.open() to seek backwards to the same directive and parse it repeatedly in an infinite loop. This issue is fixed in version 12.3.0.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
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 12.0.0版本至12.2.0版本存在资源管理错误漏洞,该漏洞源于EPS解析器在PIL/EpsImagePlugin.py中接受%%BeginBinary指令中的负字节计数,可能导致特制的EPS文件使Image.open()向后查找同一指令并重复解析形成无限循环。
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 >= 12.0.0, < 12.3.0 -

II. Public POCs for CVE-2026-59203

# 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-59203

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

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

Vendor Advisories for CVE-2026-59203 (1)

Vendor Pages for CVE-2026-59203 (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-59204 Pillow JPEG2000 tiled decode retains a growing scratch buffer and can be used for denial o
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-59203

No comments yet


Leave a comment