CVE-2026-112398

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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*

History

27 Oct 2026, 21:01

Type Values Removed Values Added
First Time Python
Python pillow
CPE cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*
References () https://github.com/python-pillow/Pillow/commit/242a059aedc1935097d9aa1dc3f099750467ba75 - () https://github.com/python-pillow/Pillow/commit/242a059aedc1935097d9aa1dc3f099750467ba75 - Patch
References () https://github.com/python-pillow/Pillow/releases/tag/13.0.0 - () https://github.com/python-pillow/Pillow/releases/tag/13.0.0 - Release Notes
References () https://github.com/python-pillow/Pillow/security/advisories/GHSA-5x8w-8jj5-q52h - () https://github.com/python-pillow/Pillow/security/advisories/GHSA-5x8w-8jj5-q52h - Exploit, Vendor Advisory
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 9.8

22 Oct 2026, 21:17

Type Values Removed Values Added
References () https://github.com/python-pillow/Pillow/security/advisories/GHSA-5x8w-8jj5-q52h - () https://github.com/python-pillow/Pillow/security/advisories/GHSA-5x8w-8jj5-q52h -

19 Oct 2026, 22:17

Type Values Removed Values Added
New CVE

Information

Published : 2026-10-19 22:17

Updated : 2026-10-27 21:01


NVD link : CVE-2026-112398

Mitre link : CVE-2026-112398

CVE.ORG link : CVE-2026-112398


JSON object : View

Products Affected

python

  • pillow
CWE
CWE-122

Heap-based Buffer Overflow

CWE-787

Out-of-bounds Write