Skip to content
← Blog · · df00tech

CVE-2026-112398: Heap Buffer Overflow in Pillow's FlashPix (FPX) JPEG-Tile Decoder

vuln-intel python pip CVE-2026-112398 #checker-reject

What's the Vulnerability

CVE-2026-112398 is a heap-based buffer overflow (CWE-122, CWE-787 — out-of-bounds write) in the Python Pillow imaging library's FlashPix (FPX) JPEG-tile decoder. When Pillow parses a crafted FlashPix image, the decoder can write decoded scanlines past the end of the allocated tile buffer. The result is heap corruption that, depending on heap layout and allocator state, can be escalated to remote code execution. The flaw carries a CVSS score of 9.2, reflecting its potential for full compromise of any process that decodes an attacker-supplied image.

Affected Software

  • Library: Pillow (Python Imaging Library fork)
  • Vendors: python, pip
  • Affected versions: all releases prior to 13.0.0, including versions up to and including 12.3.0

Any application or service that uses Pillow to process user- or internet-supplied images — web upload handlers, thumbnail generators, document converters, ML image-preprocessing pipelines — is in scope if it has not upgraded past the vulnerable range.

Exploitation Status

A public proof-of-concept is available for this vulnerability (poc-public). It was disclosed on 2026-10-19. There is no indication in our data of in-the-wild exploitation (not KEV-listed) or a fully weaponized exploit chain, but the presence of a working PoC significantly lowers the bar for attackers to build one, and defenders should treat this as an active, near-term risk rather than a theoretical concern — particularly for any internet-facing image upload or conversion service.

How Our Detection Catches It

Because exploitation hinges on getting a crafted FlashPix (.fpx) file into a vulnerable decode path, our detection logic — shipped for Microsoft Sentinel (KQL), Splunk (SPL), Elastic (EQL), QRadar (AQL), Sumo Logic, Chronicle (YARA-L), and CrowdStrike (CQL) — works on two complementary tracks:

  • Exposure detection: package/dependency inventory logic flags hosts and services running Pillow versions <= 12.3.0 (pre-13.0.0), so vulnerable deployments can be identified and prioritized for patching before an attack occurs.
  • Runtime exploitation indicators: correlation logic looks for Python processes crashing or faulting while decoding FlashPix/FPX content, image-processing worker processes ingesting .fpx files, and anomalous child-process spawning or memory-access violations originating from Python-based image pipelines — all consistent with an attacker triggering the heap overflow.

Combining inventory-based exposure data with runtime crash/anomaly signals gives defenders both a proactive patching queue and a tripwire for active exploitation attempts against image-ingestion pipelines.

Full Detection Details

For the complete detection logic, sample events, investigation guidance, and ready-to-deploy queries across all seven supported SIEM platforms, see the CVE-2026-112398 detection page.

Get new detections in your inbox

New ATT&CK coverage plus CISA KEV / CVE detection rules, roughly weekly. No spam, unsubscribe anytime.