Out-of-bounds read in Pillow - CVE-2026-96644

 

Out-of-bounds read in Pillow - CVE-2026-96644

Published: November 3, 2026


Vulnerability identifier: #VU158884
CSH Severity: Medium
CVSS v4: 6.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-96644
CWE-ID: CWE-125
Exploitation vector: Remote access
Exploit availability: No public exploit available

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.


Affected software

Pillow

How to mitigate CVE-2026-96644

Install security update from vendor's website.

Pillow - update to 13.0.0

External References

Related Security Bulletins