Resource exhaustion in Pillow - CVE-2026-96638

 

Resource exhaustion in Pillow - CVE-2026-96638

Published: November 3, 2026


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

Vulnerability details

The vulnerability allows a remote attacker to cause a denial of service through excessive memory consumption in Pillow.

The vulnerability exists due to uncontrolled memory allocation in Pillow's BmpRleDecoder.decode() function when processing delta escape and absolute mode instructions in BMP images. A remote attacker can trick a victim into opening a specially crafted BMP file whose decoding appends data beyond the expected image size to exhaust available memory and cause a denial of service.


Affected software

Pillow

How to mitigate CVE-2026-96638

Install security update from vendor's website.

Pillow - update to 13.0.0

External References

Related Security Bulletins