Skip to content
COOEY

EXPOSURES › CVE-2026-112398

CVE-2026-112398

CRITICAL
DETAIL
SourceNVD · cve Published2026-10-19 CVSS9.8 Referencehttps://nvd.nist.gov/vuln/detail/CVE-2026-112398 ↗
⚡ RCE SHAME 85/100 rceexploited-in-wild

Pillow's FlashPix JPEG decoder writes beyond its buffer when processing crafted files, enabling arbitrary code execution.

Pillow, a widely used Python imaging library, suffered a critical buffer overflow in its FlashPix JPEG decoder that allowed attackers to execute arbitrary code by supplying a malicious OLE2 FlashPix file. This failure is highly relevant to DIB organizations because Pillow is commonly embedded in image-processing pipelines for document scanning, OCR, and UI rendering; if unpatched, it provides a direct RCE vector that bypasses application-level controls. Organizations must verify that all Pillow versions are at least 13.0.0 and that optional dependencies like olefile are restricted or sandboxed.

Shame score — A critical RCE in a widely adopted Python library that was exploitable via a crafted image file, indicating a severe avoidable failure in the software supply chain.

▸ RECOMMENDED ACTION  Remote code execution — patch the affected products on priority.

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.

AFFECTED FEDRAMP PRODUCTS · 0
No correlated FedRAMP products.