CTI · reviewed · 2026-11-23
Researchers Demonstrate Ghostscript Sandbox-Escape RCE via Crafted File Uploads in Popular Apps
Actors
—
Malware / tools
—
Campaigns
—
CVEs
CVE-2026-125396
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: Ghostscript Spawning a Shell - Upload2Shell Sandbox Escape
id: b74e1f60-2c93-4a58-8d0e-6f15ab3c9207
status: experimental
description: Detects Ghostscript (-dSAFER) interpreters that spawn a command shell, the post-exploitation shape of CVE-2026-125396 (Upload2Shell) when a crafted document is rendered through print queues, mail filters or web upload/preview pipelines. Also matches the research marker strings named in the pwn.ai report.
references:
- https://pwn.ai/upload2shell
- https://pwn.ai/upload2shell/research.html
- https://thehackernews.com/2026/11/researchers-demonstrate-ghostscript.html
- https://bugs.ghostscript.com/show_bug.cgi?id=709684
author: Tia N. List
date: 2026/11/23
tags:
- attack.t1190
- attack.t1203
- attack.t1059
logsource:
category: process_creation
product: linux
detection:
selection_parent:
ParentImage|endswith:
- '/gs'
- '/gs-10.07'
- '/gs-10.05'
selection_shell_child:
Image|endswith:
- '/sh'
- '/bash'
- '/dash'
- '/python3'
selection_research_marker:
CommandLine|contains:
- 'GS_CUPS_PIPE_RCE'
- 'PATH_CONTROL_BYTES_AFTER'
condition: (selection_parent and selection_shell_child) or selection_research_marker
falsepositives:
- Document conversion pipelines that deliberately shell out to wrapped Ghostscript helpers
level: high
Splunk SPL raw
# researchers-demonstrate-ghostscript-sandbox-escape-rce-via-craft — Splunk SPL variant (derived from researchers-demonstrate-ghostscript-sandbox-escape-rce-via-craft.sigma via sigma convert)
# source-sha256: b5885baec0632a0e268992cac41ff8329b8e799043f889c789a4609f5112eecb v1
(ParentImage IN ("*/gs", "*/gs-10.07", "*/gs-10.05") Image IN ("*/sh", "*/bash", "*/dash", "*/python3")) OR CommandLine IN ("*GS_CUPS_PIPE_RCE*", "*PATH_CONTROL_BYTES_AFTER*")
KQL (Sentinel / Defender) raw
# researchers-demonstrate-ghostscript-sandbox-escape-rce-via-craft — KQL variant (derived from researchers-demonstrate-ghostscript-sandbox-escape-rce-via-craft.sigma via sigma convert)
# source-sha256: b5885baec0632a0e268992cac41ff8329b8e799043f889c789a4609f5112eecb v1
((ParentImage endswith "/gs" or ParentImage endswith "/gs-10.07" or ParentImage endswith "/gs-10.05") and (Image endswith "/sh" or Image endswith "/bash" or Image endswith "/dash" or Image endswith "/python3")) or (CommandLine contains "GS_CUPS_PIPE_RCE" or CommandLine contains "PATH_CONTROL_BYTES_AFTER")