Ghostscript sandbox escape lets crafted uploads run commands
Original title: Researchers Demonstrate Ghostscript Sandbox-Escape RCE via Crafted File Uploads in Popular Apps
CVE-2026-125396 scores 8.5; several Linux distributions still had vulnerable packages or pending fixes.
A use-after-free in Ghostscript font loading let a crafted file disable -dSAFER and run commands as the rendering account. pwn.ai showed ordinary upload, preview, and print features in about ten applications could reach the interpreter, including some paths that needed no login. Artifex fixed it in 10.08.0 on September 8, and WordPress closed a separate upload path in 7.0.4. There are no reports of attacks.
Unconfirmed: No in-the-wild use is reported, and fix status for several Linux families was not fully established.
- Image libraries can hand PostScript or EPS to Ghostscript even when the file looks like an image.
- Anonymous print jobs, Roundcube attachments, and two WordPress plugins needed no login in tests.
- A published proof of concept only flips an in-memory value and fails on 10.08.0.
- Host package updates do not replace Ghostscript bundled in containers or applications.
Impact: Sandbox escape to run commands as the rendering user
| Product | Affected | Fixed in |
|---|---|---|
| Artifex Ghostscript | — | 10.08.0 |
| WordPress Core | — | 7.0.4 |
- 1.Update Ghostscript to 10.08.0, including copies bundled in containers.
- 2.Update WordPress to 7.0.4; that fix does not replace the Ghostscript update.
- 3.Require print-queue authentication and limit accepted file types until renderers are updated.
- Organizations
- pwn.ai
Vulnerabilities mentioned
All| CVE | Vulnerability | CVSS | EPSS | Signals | Published |
|---|---|---|---|---|---|
| CVE-2026-125396 | -dSAFER bypass and code execution in Ghostscript before 10.08.0 | 8.5 | <1% | PoC ×2 | |
| CVE-2026-65640 | Author-Level RCE in WordPress Core via Malicious Postscript File Upload | 8.8 | 2% |
From the original article
3 min read at thehackernews.com
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.
thehackernews.com
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.