Security
Ghostscript flaw CVE-2026-125396 lets a crafted file escape its sandbox and run commands through print queues, webmail and WordPress uploads; fixed in 10.08.0
pwn.ai showed CVE-2026-125396 runs commands via print, webmail and WordPress uploads. The fix is Ghostscript 10.08.0. No attacks reported.
- #Ghostscript
- #CVE-2026-125396
- #Upload2Shell
- #pwn.ai
- #WordPress
- #Roundcube
- #ImageMagick
- #sandbox escape
- #remote code execution
- #Artifex
Security firm pwn.ai published Upload2Shell, a Ghostscript flaw tracked as CVE-2026-125396, on 17 November. A use-after-free in the Type 1 font loader lets a crafted document switch off the -dSAFER sandbox and run commands as the rendering process. Artifex fixed it in Ghostscript 10.08.0 on 8 September, and the reports describe no attacks in the wild.
The essentials
- How it arrives: pwn.ai tested about ten applications. Without a login it reached Ghostscript through an anonymous print job on a Debian 13 queue, an emailed attachment opened in Roundcube webmail, and public upload forms in the WordPress plugins Forminator and Essential Addons for Elementor. WordPress core needs an account that can upload files, Authors and above by default.
- The fix: Ghostscript 10.08.0. For WordPress, version 7.0.4 closed its own upload path under CVE-2026-65640 on 12 August. The Hacker News notes the two fixes cover different points in the same chain, so both are needed.
- Severity: the CVE is scored 8.5 out of 10 in the VulnCheck advisory. Commands run as the low-privilege account that does the rendering, not as root.
- Proof of concept: a public file shows only the core memory trick. It does not run shell commands and fails on 10.08.0.
What to do
Update Ghostscript everywhere it runs, including copies bundled in containers or applications, because updating the host alone can leave another renderer exposed. Other steps named: require authentication on print queues, limit the file types image processors accept, and use controls such as AppArmor, which stopped a shell from starting in one test.
Distribution status
Per the firm’s survey a week earlier, Debian 12 was listed as vulnerable and several Amazon Linux and SUSE releases had fixes pending. Whether Red Hat-family systems carry the fix was not established.
What is not established
- Attacks exploiting the flaw: not stated in the sources.
- Whether Red Hat, Rocky, AlmaLinux and Oracle Linux carry the fix: not stated in the sources.
- The full list of ten tested applications: not stated in the sources.
- Which self-compiled or bundled copies remain unpatched: not stated in the sources.
Summary table
| Point | What is stated as of November 22, 2026 | Source |
|---|---|---|
| Fixed in | Ghostscript 10.08.0, 8 September 2026 | pwn.ai |
| Write-up published | 17 November 2026 | Runtime Wire |
| WordPress fix | 7.0.4, CVE-2026-65640 | The Hacker News |
FAQ
Do I need to worry if I do not run WordPress?
The flaw sits in Ghostscript, so any service that renders untrusted PDF, PostScript or image files with a version before 10.08.0 is affected, including print servers and webmail.
Sources
- The Hacker News: Researchers Demonstrate Ghostscript Sandbox-Escape RCE via Crafted File Uploads in Popular Apps (verified 2026-11-22)
- pwn.ai: Upload2Shell · CVE-2026-125396 (verified 2026-11-22)
- Runtime Wire: Ghostscript Upload2Shell flaw lets crafted uploads run code as the rendering process (verified 2026-11-22)
Spotted an error in this article? Report it · Our corrections policy