Ghostscript sandbox-escape flaw reached via WordPress, Roundcube and Debian print paths in researcher tests
Security firm pwn.ai showed that a now-patched Ghostscript flaw, CVE-2026-125396, lets a crafted file escape the sandbox and run commands in about ten common applications. Artifex fixed it in version 10.08.0 on September 8, and the item reports no known attacks using it.
What to do
Update Ghostscript to version 10.08.0 or later, including any copy bundled in container images or applications.
Update WordPress to 7.0.4 or later to close the separate upload path under CVE-2026-65640.
Restrict or sanitize PostScript and EPS content in upload, preview, print and thumbnail features.
Check the Ghostscript package status on each Linux distribution you run, since fixes vary.
Timeline
- Made public by oss-security
- First seen by cve.now1 day
- Confirmed as CVE-2026-1253961 day
- Record last updated
Evidence 7
- oss-security
“This release addresses a number of potential security issues.”
+1 more: oss-security - Mastodon
“Dubbed Upload2Shell (CVE-2026-125396), the flaw affects Ghostscript, a widely used document-processing tool sitting behind everything from WordPress uploads and email previews to Linux printing services.”
- Mastodon
“Security researchers at pwn.ai have disclosed Upload2Shell (CVE-2026-125396), a Ghostscript vulnerability that can allow remote code execution through applications processing untrusted files.”
+1 more: Mastodon - The Hacker News
“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.”
- Mastodon
“Ghostscript before 10.08.0 contains a -dSAFER bypass vulnerability in the .putgstringcopy procedure in gs_fonts.ps, which calls the privileged .forceput operator without checking operand types.”
- Mastodon
“Researchers Demonstrate Ghostscript Sandbox-Escape RCE…”
- Mastodon
“AI-found… Source: IT News Security (AU) Read: https://www. itnews.com.au/news/ai-found-gh ostscript-flaw-turned-file-uploads-into-remote-code-execution-630512 More cyber news: https:// cyzo.io/news?ut”
Questions about Ghostscript sandbox-escape flaw reached via WordPress, Roundcube and Debian print paths in researcher tests
Has Ghostscript confirmed it?
oss-security, Mastodon and Mastodon report a possible compromise. None of the sources says it happened.
Source: oss-security, Mastodon, Mastodon, The Hacker News, Mastodon, Mastodon, Mastodon
What should Ghostscript and ImageMagick users do?
Update Ghostscript to version 10.08.0 or later, including any copy bundled in container images or applications. Update WordPress to 7.0.4 or later to close the separate upload path under CVE-2026-65640. Restrict or sanitize PostScript and EPS content in upload, preview, print and thumbnail features. Check the Ghostscript package status on each Linux distribution you run, since fixes vary.
Does it have a CVE?
Yes. It is tracked as CVE-2026-125396 and CVE-2026-65640.
Source: CVE-2026-125396, CVE-2026-65640
No corrections so far. Something wrong on this page? Report an error.