Heap-based buffer overflow in Pillow - CVE-2026-112398

 

Heap-based buffer overflow in Pillow - CVE-2026-112398

Published: November 19, 2026


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

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

Pillow
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

Install security update from vendor's website.

Pillow - update to 13.0.0
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

External References

Related Security Bulletins