Ghostscript Sandbox Escape Flaw Enables Remote Code Execution via Uploads

Executive Briefing
“Researchers uncovered a critical vulnerability in the Ghostscript interpreter that allows...”
Key Takeaways
- 1.Tracked as CVE-2026-125396, the underlying bug stems from a use-after-free weakness in Ghostscript font-loading routines that disables -dSAFER sandbox checks.
- 2.Security firm pwn.ai demonstrated that ordinary upload, preview, and print features across roughly ten common applications could trick Ghostscript into processing crafted files.
- 3.Artifex patched the flaw in version 10.08.0 on September 8, while WordPress closed a related upload path under CVE-2026-65640 in August.
Researchers uncovered a critical vulnerability in the Ghostscript interpreter that allows crafted files to bypass security sandboxes and run commands on host servers. The flaw impacts numerous common applications handling document and image processing workflows.
Attack Mechanism and Impact Scope
Tracked as CVE-2026-125396, the underlying bug stems from a use-after-free weakness in Ghostscript font-loading routines that disables -dSAFER sandbox checks.
Security firm pwn.ai demonstrated that ordinary upload, preview, and print features across roughly ten common applications could trick Ghostscript into processing crafted files.
Artifex patched the flaw in version 10.08.0 on September 8, while WordPress closed a related upload path under CVE-2026-65640 in August.
Technical Analysis and Risk Level
Automatic routing of image formats to Ghostscript by common utility libraries allows attacks to trigger silently via email, web forms, or public print jobs without direct application invocation.
Fragmented package updates across Linux distributions and bundled container binaries complicate remediation, requiring administrators to verify individual software dependencies independently.
Outstanding Unknowns
The exact package status for Red Hat, Rocky Linux, AlmaLinux, Oracle Linux, and stable Fedora distributions remains undetermined.
Detailed disclosures regarding separate Ghostscript bugs identified across other major cloud and enterprise services have not been fully published.







