CVE-2026-112398: Vulnerability in Python Pillow

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

PyPI, CWE-122, CWE-787

Exploitation
None confirmed
Severity
9.8 of 10
Attack likelihood
Unknown
Fix
Fixed version known
Patch deadline
No deadline set

Details

Advisory ID
GHSA-5x8w-8jj5-q52h
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-122, CWE-787
Published
19 Oct 2026
Last change
27 Oct 2026
Ecosystem
PyPI

Affected products

Affected versions and the first fixed release

  • Python Pillow Before 13.0.0. Fixed in 13.0.0

Affected packages

Vulnerable version ranges and fixed releases

  • pillow PyPI, Affected through 12.3.0. Fixed in 13.0.0

Advisories

Vendor and security advisories

Patches and fixes

Updates, commits and release notes

Related