Out-of-bounds write in Pillow - CVE-2026-96639
Published: November 3, 2026
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.