Heap-based buffer overflow in Pillow - CVE-2026-112403
Published: November 3, 2026
Vulnerability details
The vulnerability allows a remote attacker to corrupt heap memory and cause a denial of service.
The vulnerability exists due to a heap-based buffer overflow in Pillow's ImagingJpegDecode() when decoding a lossless SOF3 JPEG after draft() requests scaled output. A remote attacker can supply a specially crafted image to an application that requests scaling through draft() or thumbnail() to cause full-width scanlines to overwrite a heap buffer allocated for scaled-width rows, corrupting memory and potentially crashing the application.
Exploitation requires the linked JPEG library to support lossless decoding.
Affected software
Fedora
python-pillow
How to mitigate CVE-2026-112403
python-pillow - update to 11.3.0-14.fc43