Ghostscript Sandbox-Escape Flaw Lets Uploaded Files Run Commands on Servers
Security firm pwn.ai published research on Nov 17: Ghostscript has a sandbox-escape flaw, CVE-2026-125396, scored 8.5; upload, preview and print features in about ten common applications, including WordPress, Roundcube and CUPS, can be abused to run commands on the server.

What happened
The flaw sits in Ghostscript's font-loading code: the .putgstringcopy procedure calls the privileged .forceput operator without checking operand types. An attacker supplies a crafted PostScript or PDF document that triggers a type error, recovers .forceput through a custom error handler, and causes a use-after-free across save/restore to execute arbitrary code, bypassing the -dSAFER sandbox. Ghostscript is the interpreter many Linux servers use to convert PDFs, PostScript files and images, often reached indirectly through libraries such as ImageMagick, Pillow and libvips.
The pwn.ai demonstrations covered about ten applications: WordPress sites reached Ghostscript through the media preview process using Imagick and ImageMagick, and public upload forms in the Forminator and Essential Addons for Elementor plugins needed no login; Roundcube 1.7.2 processed an attachment the moment the recipient opened the message; a shared CUPS queue on Debian 13 accepted network print jobs without credentials, and the test document ran a command as lp, the print service account. The research describes demonstrations; no attacks in the wild have been reported.
Fix and status: Artifex fixed the flaw in Ghostscript 10.08.0 on September 8; the CVE was published on Nov 9 with a CVSS 4.0 score of 8.5. Distribution coverage is uneven: a pwn.ai survey last week found several distributions still shipping a vulnerable Ghostscript or with a fix pending, including Amazon Linux 2, 2023 and the 2027 Preview, while fixes are in progress for parts of SUSE; Debian published security update DLA-4914 on Nov 17 fixing Ghostscript on Debian 12. Updating the host operating system does not update a copy of Ghostscript bundled inside a container image or an application.
Key facts
- CVE-2026-125396: -dSAFER bypass: .putgstringcopy calls .forceput without checking operand types, leading to a use-after-free that executes arbitrary code
- Score 8.5: CVSS 4.0, local attack vector; the research is dubbed Upload2Shell
- Fix: Ghostscript 10.08.0 (Sep 8, 2026); the CVE was published on Nov 9
- Demonstrated: About ten applications; command execution confirmed on WordPress, Roundcube and CUPS, with some paths needing no login
- Distributions: Debian 12 fixed via DLA-4914; fixes pending or in progress for Amazon Linux and parts of SUSE; no attacks in the wild reported
Why it matters
Ghostscript sits deep in the file-processing chain, reachable even by applications that never call it directly; the flaw was fixed in September, but old copies in distributions and containers are still running, and the patch only helps the copy that actually renders the file.
Follow HIMIAO Horizon
No sign-up · Unsubscribe any timeNotifications
A ping on your phone or computer when the brief is out. No email needed.
Comments
Today
Nov 23 Monday- BriefNasdaq 100 Enters Bear Market as AI Selloff Posts Worst Week in Six Years
7 stories · Nov 22
- GitHubGitHub Weekly Vol.6: 7 Projects Worth a Look This Week
Tested or read — weeklyAll →
- Quiz
- Call
Latest news
All →- Nov 23AI Agents Breached a Medical Imaging Server in 11 Minutes; MONAI Label Zero-Day Now Fixed
- Nov 23Tampered DeepSeek Model Served for 53 Hours; Refusals Fell From 98% to 1%
- Nov 23Cursor Tells House It May Phase Out Chinese Open-Weight Models
- Nov 23TSMC, Samsung Pause Some China Chip Shipments as New US Rule Hits Consumer Chips
- Nov 23Son Explored a $1 Trillion SK Hynix Buyout; the Idea Is Now Shelved
- Nov 23CrowdStrike in Talks to Buy Zscaler in What Could Be the Largest Cybersecurity Deal Ever
™