CVE-2026-112398
pillow: Pillow: Heap buffer overflow in FlashPix (FPX) JPEG decoding leads to code execution
Severity
ImportantRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · October 20, 2026
Updated · October 31, 2026
Description
A flaw was found in Pillow. A remote attacker can achieve arbitrary code execution by supplying a specially crafted FlashPix (FPX) image file to an application that processes untrusted inputs. Due to improper handling of image tile data during JPEG decoding, the library writes pixel data beyond the allocated memory buffer. This out-of-bounds write corrupts heap memory and can allow an attacker to execute arbitrary commands or cause an application crash.
Statement
- Requires optional olefile package installed (not bundled by default in RHEL/most containers)
- High attack complexity for reliable RCE (heap layout control, vtable hijacking)
- Affects a file format (FlashPix) rarely used in production image processing
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 8.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CWE-787 · Out-of-bounds Write