← Back to search

CVE-2026-96644

8.1 HIGHpublic exploit available

Published 2026-10-21 · Updated 2026-10-27

AI risk analysis

Summary
A heap-based buffer read in Pillow on Windows occurs when processing malformed WMF/EMF files due to mismatched dimension handling between Python and the native renderer, allowing memory disclosure or crashes.
Exploitability
Exploitation requires a user to open a specially crafted WMF/EMF file, as the vulnerability is triggered during image rendering with user interaction.
Blast radius
Successful exploitation could leak sensitive memory contents or cause denial of service in any application using Pillow on Windows, including those embedded in web browsers or document viewers.
Detection
No reliable host or network indicator is derivable from the published description.
Prioritized remediation
Upgrade Pillow to version 13.0.0 or later, where the unchecked dimension handling has been corrected.
heap-overflowwindows-onlyimage-processingmemory-disclosuredos

Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.

NVD 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.

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H

Weaknesses

CWE-125

Vendors

python, microsoft

Products

pillow, windows

Public exploit & PoC references

All references

Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.

Related CVEs

Related by shared AI tags and CWE weakness class. Browse the full archive.