Home › Intelligence › Brief
VULNERABILITY BRIEF🟠 High Vulnerability

Ghostscript Sandbox‑Escape Vulnerability Enables Remote Code Execution via Crafted File Uploads

A newly disclosed flaw in the Ghostscript interpreter lets attackers escape its sandbox and run arbitrary commands when a malicious PDF or PostScript file is uploaded. The issue affects any service that uses Ghostscript for file conversion, highlighting the importance of rigorous patch management and evidence‑driven control assurance.

LiveThreat™ Intelligence · 📅 November 23, 2026· 📰 thehackernews.com
🟠
Severity
High
VU
Type
Vulnerability
🎯
Confidence
High
🏢
Affected
3 sector(s)
✅
Actions
4 recommended
📰
Source
thehackernews.com

Ghostscript Sandbox‑Escape Vulnerability Enables Remote Code Execution via Crafted File Uploads

What Happened — Researchers at the security firm pwn.ai disclosed a critical remote‑code‑execution (RCE) flaw in the widely deployed Ghostscript interpreter. Ghostscript, an open‑source engine used on countless Linux servers to convert PDFs, PostScript files, and images, runs inside a sandbox that is supposed to isolate the processing of untrusted content. The team demonstrated that a specially crafted PDF or PostScript file can break out of this sandbox, execute arbitrary shell commands on the host, and thereby compromise any application that invokes Ghostscript for file conversion.

The vulnerability was discovered during a routine audit of file‑upload pipelines in several popular SaaS products that rely on Ghostscript. By uploading a maliciously structured file, the researchers observed that Ghostscript’s internal sandbox (implemented via seccomp and setrlimit) could be bypassed, allowing the payload to spawn a shell with the privileges of the Ghostscript process. In the tested environments, the process ran as an unprivileged user, but the researchers were still able to read configuration files, enumerate other processes, and write to directories writable by the service account.

Ghostscript’s maintainers responded quickly. A patch was released the same week, updating the sandboxing logic and tightening input validation for PostScript operators that could trigger memory corruption. The advisory (Ghostscript 9.56.2) recommends upgrading to version 9.56.2 or later, which incorporates the fix and disables the vulnerable code paths.

The flaw is not tied to a single CVE identifier in the public advisory yet, but the exploit code and proof‑of‑concept were published in a detailed blog post by pwn.ai, complete with packet captures, system call traces, and a step‑by‑step reproduction guide. The researchers stress that any service that accepts user‑supplied PDFs, PS files, or images and forwards them to Ghostscript without additional validation is at risk.

Affected parties include document‑management platforms, e‑signature services, cloud‑based PDF converters, and any on‑premise application that embeds Ghostscript for image processing. Because Ghostscript is often bundled as a dependency in container images and Linux distributions, the attack surface extends to a broad swath of the software supply chain.

The vulnerability was disclosed responsibly. The researchers coordinated with the Ghostscript project and major Linux distro maintainers before public release. No active exploitation reports have surfaced in the wild, and there is no evidence that threat actors have weaponized the flaw at scale. Nonetheless, the ease of exploitation—merely uploading a malicious file—means that organizations that have not yet patched remain exposed.

In response, the Ghostscript project issued a security advisory, and major cloud providers (including AWS, Azure, and GCP) have begun rolling out the patched binaries to their managed services. Vendors that ship Ghostscript as part of larger SaaS offerings are urged to verify that their deployment pipelines have incorporated the update and to re‑audit their file‑handling controls.

Why It Matters for Trust & Control Assurance — The incident spotlights the need for continuous vulnerability management and evidence‑driven patch compliance across the software supply chain.

Who Is Affected — SaaS document‑processing vendors, cloud‑hosting platforms, on‑premise enterprise applications that embed Ghostscript, and any organization that offers PDF/Image conversion services.

Recommended Actions

  • Upgrade Ghostscript to version 9.56.2 or later on all servers and containers.
  • Review and harden file‑upload pipelines: enforce strict MIME‑type checks, size limits, and content‑type validation before invoking Ghostscript.
  • Implement runtime monitoring for unexpected system calls or process spawning from Ghostscript instances.
  • Verify that your configuration management database (CMDB) reflects the patched version and that audit logs capture the change.
  • Conduct a focused vulnerability‑management audit against the “Patch Management” control objective in your chosen framework.

Source: The Hacker News – Researchers Demonstrate Ghostscript Sandbox‑Escape RCE

📰 Original Source
https://thehackernews.com/2026/11/researchers-demonstrate-ghostscript.html ↗

This LiveThreat Intelligence Brief is an independent analysis. Read the original reporting at the link above.

From the Verisq platform · Trust Operations

Misconfigurations are control gaps in disguise.

Verisq AI Trust Operations turns findings like this into mapped controls with continuous evidence, keeping your audit readiness current instead of point-in-time.

Map your controls with Verisq AI Trust Operations →