CTI · reviewed · 2026-10-25
Critical Python Pillow RCE via crafted filenames (CVE-2026-112900)
Actors
—
Malware / tools
PillowPILGhostscript
Campaigns
—
CVEs
CVE-2026-112393CVE-2026-112403CVE-2026-112900
Victim sectors
—
Geography
—
MITRE ATT&CK
Indicators
No curated indicators tied to this case.
Detections
Detection content derived from this case analysis. Status: experimental — not validated against live telemetry.
Sigma raw
title: Python Imaging Process Spawning Ghostscript on Attacker-Shaped EPS Filename (CVE-2026-112900)
id: 4d1a7f36-2b93-4c88-9a41-5f6c0dbe72a5
status: experimental
description: >
Detects a Python interpreter launching Ghostscript to render an EPS file whose
command line carries shell metacharacters. CVE-2026-112900 is a filename
argument injection in Pillow (2.6.0 through 12.3.0, fixed in 13.0.0): Image.open()
on an attacker-controlled filename passes that name into the Ghostscript command,
so a crafted name paired with an attacker-supplied text file yields arbitrary OS
command execution inside any service that processes user-supplied images.
references:
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-w889-685w-c8fh
- https://pillow.readthedocs.io/en/stable/releasenotes/13.0.0.html
- https://www.ox.security/blog/three-critical-pillow-cves-rce-and-heap-overflows-in-pythons-imaging-library-cve-2026-112900-cve-2026-112393-cve-2026-112403/
- https://cyberupdates365.com/python-pillow-rce-cve-2026-112900/
author: Tia N. List
date: 2026-10-25
tags:
- attack.t1190
- attack.t1059
logsource:
category: process_creation
detection:
selection_parent:
ParentImage|contains: 'python'
selection_ghostscript:
Image|endswith:
- '/gs'
- '/gsc'
- '/gxps'
- 'gswin32c.exe'
- 'gswin64c.exe'
selection_eps:
CommandLine|contains: '.eps'
selection_injection:
CommandLine|contains:
- ';'
- '&&'
- '|'
- '$('
- '`'
condition: selection_parent and selection_ghostscript and selection_eps and selection_injection
falsepositives:
- Application code that builds the Ghostscript command line from user-supplied filenames and legitimately passes shell operators
- Wrapper scripts or job schedulers that chain Ghostscript invocations with '&&' or ';' inside a single command line
level: medium
Splunk SPL raw
# critical-python-pillow-rce-via-crafted-filenames-cve-2026-112900 — Splunk SPL variant (derived from critical-python-pillow-rce-via-crafted-filenames-cve-2026-112900.sigma via sigma convert)
# source-sha256: bb4a481510519022a3f79be76c9c2332b5799993ee266b91aa12922d0541f5d5 v1
ParentImage="*python*" Image IN ("*/gs", "*/gsc", "*/gxps", "*gswin32c.exe", "*gswin64c.exe") CommandLine="*.eps*" CommandLine IN ("*;*", "*&&*", "*|*", "*$(*", "*`*")
KQL (Sentinel / Defender) raw
# critical-python-pillow-rce-via-crafted-filenames-cve-2026-112900 — KQL variant (derived from critical-python-pillow-rce-via-crafted-filenames-cve-2026-112900.sigma via sigma convert)
# source-sha256: bb4a481510519022a3f79be76c9c2332b5799993ee266b91aa12922d0541f5d5 v1
ParentImage contains "python" and (Image endswith "/gs" or Image endswith "/gsc" or Image endswith "/gxps" or Image endswith "gswin32c.exe" or Image endswith "gswin64c.exe") and CommandLine contains ".eps" and (CommandLine contains ";" or CommandLine contains "&&" or CommandLine contains "|" or CommandLine contains "$(" or CommandLine contains "`")