Patch Forecast
Amber warning
Patch this week.

CVE-2026-112398 ยท GHSA-5x8w-8jj5-q52h

Pillow: Heap buffer overflow in FlashPix (FPX) JPEG decoding leads to code execution

Risk score
70/100
CVSS
9.2 v4.0
Exploit chance (30 days)
0.3%
Published
19 Oct 2026

Open in the live forecast Today's forecast

What to know

What it is
Pillow library has a heap buffer overflow in FlashPix JPEG decoding, allowing an attacker to execute code by supplying a crafted OLE2 FlashPix file. This can corrupt heap memory and may allow arbitrary code execution.
Affected
{'products': ['Pillow'], 'packages': ['pillow'], 'versions': ['<= 12.3.0']}
Fix
Upgrade to version 13.0.0 or later
Exploitation
No known exploitation

Why it is Amber

  • CVSS 9.2 critical
  • Remotely exploitable without logging in
  • On your watchlist: PyPI

Affected packages

PackageEcosystemVulnerableFixed in
pillowpip<= 12.3.013.0.0

References

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

Last activity 23 Oct 2026. Patch Forecast updates every hour.