CVE-2026-112398
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
pillowPyPI | < 13.0.0 | 13.0.0 |
Affected products
10cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*+ 1 more
- cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*range: <13.0.0
- (no CPE)range: <13.0.0
- osv-coords8 versionspkg:bitnami/pillowpkg:rpm/almalinux/python3-pillowpkg:rpm/almalinux/python3-pillow-develpkg:rpm/almalinux/python3-pillow-docpkg:rpm/almalinux/python3-pillow-tkpkg:rpm/opensuse/python-Pillow&distro=openSUSE%20Leap%2016.0pkg:rpm/opensuse/python-Pillow&distro=openSUSE%20Leap%2016.1pkg:rpm/opensuse/python-Pillow&distro=openSUSE%20Tumbleweed
< 13.0.0+ 7 more
- (no CPE)range: < 13.0.0
- (no CPE)range: < 5.1.1-36.el8_10
- (no CPE)range: < 5.1.1-36.el8_10
- (no CPE)range: < 5.1.1-36.el8_10
- (no CPE)range: < 5.1.1-36.el8_10
- (no CPE)range: < 11.3.0-160000.9.1
- (no CPE)range: < 11.3.0-160100.3.1
- (no CPE)range: < 13.0.0-1.1
Patches
Vulnerability mechanics
References
5- github.com/python-pillow/Pillow/commit/242a059aedc1935097d9aa1dc3f099750467ba75nvdPatchWEB
- github.com/python-pillow/Pillow/security/advisories/GHSA-5x8w-8jj5-q52hnvdExploitVendor AdvisoryWEB
- github.com/advisories/GHSA-5x8w-8jj5-q52hghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-112398ghsaADVISORY
- github.com/python-pillow/Pillow/releases/tag/13.0.0nvdRelease NotesWEB
News mentions
1- Pillow: 25 Vulnerabilities Disclosed Together, Ranging from Critical to MediumVypr Intelligence · Oct 19, 2026