Heap-based buffer overflow in Pillow - CVE-2026-112398
Published: November 19, 2026
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code with the privileges of the image-processing process.
The vulnerability exists due to a heap-based buffer overflow in Pillow's FlashPix JPEG tile decoder when a decoded scanline exceeds the allocated output buffer. A remote attacker can submit a crafted FlashPix file to a service that automatically decodes uploaded images using Pillow with olefile installed to execute arbitrary code.
Affected software
Anolis OS
openEuler
Fedora
python3-pillow
python3-pillow-devel
python3-pillow-tk
python3-pillow-doc
python-pillow
python-pillow-debuginfo
python-pillow-debugsource
python3-pillow-qt
python3-pillow-help
How to mitigate CVE-2026-112398
python3-pillow - update to 5.1.1-36
python3-pillow-devel - update to 5.1.1-36
python3-pillow-tk - update to 5.1.1-36
python3-pillow-doc - update to 5.1.1-36
python-pillow - update to 9.0.1-17
python-pillow-debuginfo - update to 9.0.1-17
python-pillow-debugsource - update to 9.0.1-17
python3-pillow - update to 9.0.1-17
python3-pillow-devel - update to 9.0.1-17
python3-pillow-qt - update to 9.0.1-17
python3-pillow-tk - update to 9.0.1-17
python3-pillow-help - update to 9.0.1-17
python-pillow - addressed in versions 12.3.0-6.fc44, 12.3.0-6.fc45, 12.3.0-7.fc44, 12.3.0-7.fc45