Out-of-bounds write in Pillow - CVE-2026-96639

 

Out-of-bounds write in Pillow - CVE-2026-96639

Published: November 3, 2026


Vulnerability identifier: #VU158885
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-96639
CWE-ID: CWE-787
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute commands, disclose process memory, or cause a denial of service.

The vulnerability exists due to out-of-bounds writes caused by reuse of incompatible native image storage in Pillow's multi-frame image loaders when decoding successive frames with different pixel modes. A remote attacker can submit a crafted multi-frame image that switches from a narrow mode to a wider mode while retaining the original buffer to corrupt native memory and crash the process, with the MPO/JPEG path also permitting out-of-bounds reads and command execution.


Affected software

Pillow

How to mitigate CVE-2026-96639

Install security update from vendor's website.

Pillow - update to 13.0.0

External References

Related Security Bulletins