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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-96644— Pillow: Heap over-read in WMF/EMF rendering via 16-bit dimension truncation (Windows builds)

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.

Pillow 是一个 Python 图像处理库。在 Windows 系统上,13.0.0 版本之前的 src/PIL/WmfImagePlugin.py 会将未经校验的 32 位 WMF 或 EMF 图像尺寸传递给位于 src/display.c 中的原生 drawwmf 处理程序。该处理程序根据被截断为 16 位的 bcWidth 和 bcHeight 字段来分配 DIB(设备无关位图)缓冲区,但随后却使用原始的完整尺寸来复制像素数据。攻击者可构造一个宽度极大、高度极小的元文件,从而绕过像素数量解压炸弹检查,导致

CVSS 7.1 · High EPSS 0.33% · P25

Affected Version Matrix 1

VendorProduct Version RangeStatus
python-pillow Pillow < 13.0.0 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-96644

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: Heap over-read in WMF/EMF rendering via 16-bit dimension truncation (Windows builds)
Source: CVE Program / CVE List V5
Vulnerability Description
Pillow is a Python imaging library. Prior to 13.0.0 on Windows, src/PIL/WmfImagePlugin.py passes unchecked 32-bit WMF or EMF dimensions to the native drawwmf handler in src/display.c. The handler sizes a DIB allocation from 16-bit-truncated bcWidth and bcHeight fields but copies pixel data using the original full dimensions. A crafted wide, short metafile can pass the pixel-count decompression-bomb check and make the Windows-only renderer read beyond the heap buffer, potentially disclosing memory or crashing the process. This issue is fixed in version 13.0.0.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N
Source: CVE Program / CVE List V5
Vulnerability Type
跨界内存读
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
python-pillow Pillow < 13.0.0 -

II. Public POCs for CVE-2026-96644

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

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

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

Vendor Advisories for CVE-2026-96644 (1)

Vendor Pages for CVE-2026-96644 (1)

Same Patch Batch · python-pillow · 2026-10-21 · 11 CVEs total

CVE-2026-96639 9.8 CRITICAL Pillow multi-frame loaders can reuse stale native image storage after mode transitions
CVE-2026-96640 8.2 HIGH Pillow PDF append accepts malformed shared page-tree DAG causing resource exhaustion
CVE-2026-96778 7.7 HIGH Pillow: Heap buffer overflow writing JPEG comment after ICC profile fills buffer
CVE-2026-96642 7.1 HIGH Pillow: TarIO negative size field causes infinite CPU-spin loop
CVE-2026-96643 7.1 HIGH Pillow: PNG eXIf chunk makes EXIF parsing run in quadratic time
CVE-2026-96637 7.1 HIGH Pillow: Decompression bomb check bypass in SpiderImagePlugin.seek() leads to unbounded all
CVE-2026-96638 6.5 MEDIUM Pillow: BMP RLE decoder memory-amplification DoS via unbounded delta escape / absolute mod
CVE-2026-96641 6.5 MEDIUM Pillow: Reachable undefined behavior in native integer operations, potentially leading to
CVE-2026-96636 6.5 MEDIUM Pillow: Decompression-bomb protection bypass via multi-frame seek() in MPO and DCX (MpoIma
CVE-2026-114501 6.3 MEDIUM Pillow: Arrow export leaks stale heap memory when PILLOW_ALIGNMENT > 1

IV. Related Vulnerabilities

V. Comments for CVE-2026-96644

No comments yet


Leave a comment