Out-of-bounds read in Pillow - CVE-2026-96644
Published: November 3, 2026
Vulnerability details
The vulnerability allows a remote attacker to disclose heap memory or cause a denial of service.
The vulnerability exists due to an out-of-bounds read in Pillow's native drawwmf handler when rendering crafted EMF or WMF images. A remote attacker can supply an image with dimensions that are truncated into 16-bit allocation fields but retained as full 32-bit values for the subsequent copy to read beyond the allocated heap buffer, potentially exposing memory or crashing the process.
The vulnerable native handler is compiled only on Windows. Wide, short images can pass the decompression-bomb pixel check while still triggering the over-read.