CVE-2026-112398: Pillow: Heap buffer overflow in FlashPix (FPX) JPEG decoding leads to code execution
Vulnerability summary
CVE-2026-112398 is a critical (CVSS 9.8) Heap-based Buffer Overflow vulnerability in python-pillow pillow. EPSS estimates a 0.70% chance of exploitation in the next 30 days, higher than 54.3% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (GitHub, Date unknown)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 19 · Related 8Timeline
- 19-10-2026PublishedVulnerability first disclosed.
- 22-10-2026Last modifiedVulnerability information updated.
Description
Pillow is a Python imaging library. Prior to 13.0.0, Pillow's FlashPix JPEG-tile decoder can write decoded scanlines beyond the allocated tile buffer. FlashPix (FPX) JPEG decoding selects raw mode LA with two bytes per pixel, while an unrecognized JPEG mode can be decoded as JCS_UNKNOWN with four components, causing ImagingJpegDecode to write four-component scanlines into the two-byte tile buffer. An attacker can supply a crafted OLE2 FlashPix file to an application with the optional olefile dependency installed that opens or thumbnails untrusted input. This can corrupt heap memory and may allow arbitrary code execution. This issue is fixed in version 13.0.0.
CVSS metrics
9 scores · 7 sources · 2 versions- NVDNIST9.2CriticalCVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- OSV · WolfiEcosystem advisory · calculated9.2CriticalCVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- OSV · ChainguardEcosystem advisory · calculated9.2CriticalCVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- OSV · UbuntuEcosystem advisory · calculated9.2CriticalCVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- OSV · DebianEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · PypiEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.70%
Chance of exploitation in the next 30 days
Percentile
54%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.70% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundPillow
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard9 products
- mlflowAll versions (No fix recorded) | < 3.17.2-r2
- mlflow-fipsAll versions (No fix recorded) | < 3.17.2-r3
- nemo-skillsAll versions (No fix recorded) | < 0.7.0_git20260911-r5
- open-webuiAll versions (No fix recorded)
- py3.10-pillowAll versions (No fix recorded)
Wolfi3 products
- mlflowAll versions (No fix recorded)
- open-webuiAll versions (No fix recorded)
- py3.10-pillowAll versions (No fix recorded)
Ubuntu2 products
- pillowAll versions (No fix recorded) | < 2.3.0-1ubuntu3.4+esm6 | < 3.1.2-0ubuntu1.6+esm4 | < 5.1.0-1ubuntu0.8+esm3 | < 7.0.0-4ubuntu0.9+esm2 | < 9.0.1-1ubuntu0.7 | < 10.2.0-1ubuntu1.5 | < 12.3.0-1ubuntu2 | < 12.1.1-2ubuntu1.5
- pillow-python2All versions (No fix recorded)
Debian1 product
- pillowAll versions (No fix recorded) | < 13.0.0-1
PyPI1 product
- pillow< 13.0.0
Python1 product
- pillow< 13.0.0
Python-pillow1 product
- pillow< 13.0.0
7 vendors · 18 products
References
10 links- github.com/python-pillow/Pillow/security/advisories/GHSA-5x8w-8jj5-q52hX Refsource CONFIRMREPORTWEBAdvisoryExploitVendor AdvisoryEVIDENCE
- github.com/python-pillow/Pillow/commit/242a059aedc1935097d9aa1dc3f099750467ba75X Refsource MISCWEBFIXPatch