Return to Threats

Researchers Demonstrate Ghostscript Sandbox-Escape RCE via Crafted File Uploads in Popular Apps

thehackernews.com 2026-11-22 AI agent abuse Critical

Executive Summary

A crafted upload can reportedly exploit Ghostscript to escape its sandbox and run server-side commands. Organizations processing uploaded documents or images, particularly those integrated with AI workflows, should review their Ghostscript deployments and file-handling paths.

What Happened

A now-patched flaw in Ghostscript allows a crafted file to escape the program's security sandbox and run commands on the server that processes it. Ghostscript is the interpreter that many Linux servers use to convert uploaded PDFs, PostScript files, and images into other formats, often without the application calling it directly. Security firm pwn.ai showed this week that ordinary upload,

Affected Products

  • Ghostscript
  • Linux servers
  • PDF processing
  • PostScript processing
  • Image conversion

Vulnerability / Attack Technique

Sandbox escape via crafted file upload

Technical Mechanism

The reported flaw allows a crafted file to escape Ghostscript's security sandbox and run commands on the server that processes it. Ghostscript may process uploaded PDFs, PostScript files, and images for format conversion, sometimes without the application directly invoking it.

AI Security Category

Not AI-specific

Relevant Frameworks

MITRE ATLAS: Initial AccessMITRE ATLAS: ExecutionMITRE ATLAS: Defense Evasion

RealGround Analysis

The issue is not described as an AI or LLM vulnerability, but it can affect AI applications that accept or transform uploaded files. AI-agent teams should treat document-conversion utilities as part of the application attack surface and verify that agent-triggered processing cannot provide an attacker with server command execution.

Recommended Controls

  • Patch Ghostscript to the fixed version referenced by the vendor or deployment guidance.
  • Run Ghostscript in a strongly isolated, least-privileged sandbox with restricted filesystem, network, and process access.
  • Validate and restrict uploaded file types before conversion, and reject untrusted formats where unnecessary.
  • Audit AI-agent and LLM workflows for tools that process user-supplied documents, images, PDFs, or PostScript files.
  • Perform red-team testing of upload and conversion paths using crafted files and monitor for unexpected command execution.

Related RealGround Service

AI Agent Business Logic Audit · or start with the free AI Agent Security Scanner.

Sources

thehackernews.com: https://thehackernews.com/2026/11/researchers-demonstrate-ghostscript.html

Summary and analysis written by RealGround from the source above; last updated 2026-11-22.

Talk to AI CISO