Threat researchCisent
Upload2Shell: a Ghostscript flaw lets attackers run commands just by uploading a file
A flaw in Ghostscript, the program that converts PDFs and images on many servers, lets a crafted file escape its sandbox and run commands.

Researcher Paulos Yibelo of pwn.ai published Upload2Shell, a Ghostscript flaw that lets a crafted file escape the program’s sandbox and run commands on the server that processes it. It’s CVE-2026-125396, and it has been fixed since version 10.08.0, released in September.1
What fails
- The program: Ghostscript interprets PDF and PostScript. It sits behind many print, email, upload and preview features, often without the application calling it directly. Even a file named
.pngor.jpgcan end up in Ghostscript when an image is converted.1 - The flaw: a use-after-free in the Type 1 font loader. With it, a crafted document crosses Ghostscript’s sandbox (
-dSAFER), alters internal controls and runs the commands the attacker chooses, with the permissions of the process rendering the file.1
Where it was confirmed
The researchers tested it in real software, several times without the attacker needing an account:1
- Printing: on Debian 13, an anonymous print job sent to a shared CUPS queue ran commands on the machine.
- Email: in Roundcube, it was enough for the recipient to view a message whose attachment was turned into a thumbnail, in the ImageMagick setup they tested. The attachment didn’t have to be opened.
- Websites: in WordPress, through file uploads by users who have that permission (author and up), and in public forms of the Forminator and Essential Addons for Elementor plugins, without logging in.
- Wikis and document managers: MediaWiki set up for anonymous PDF uploads, DokuWiki, Mayan EDMS and ResourceSpace.
The research also reached Ghostscript in Google’s image and document processing, which mitigated that path on November 10. The page doesn’t say the flaw is being exploited outside its tests, and it gives no CVSS score.1
What to do
- Update Ghostscript to 10.08.0 or later, which fixes the flaw.1 Artifex released it on September 8.2
- On Linux, use your distribution’s fixed package: Debian brought the fix into its security package, and Ubuntu released fixed packages for seven versions on October 21.1
- Also update the applications that closed their own path: WordPress (CVE-2026-65640) and Roundcube (CVE-2026-114727).1
- Make the list: which forms, mailboxes, shared printers, previews, conversions and container images in the organization end up in Ghostscript, even when the application doesn’t call it directly. The researchers expect more software to turn up that reaches the flaw through uploads, thumbnails, printing or document imports.1
Where Cisent comes in
An interpreter working out of sight behind an upload form is exactly the kind of gap worth finding before an attacker does.
Manthys Secure Red Team attacks the organization’s systems with its authorization and within the scope it defines, to find the gaps before an attacker does: the admin panel exposed on a server nobody watches, the service published by mistake, the insecure configuration. It’s ongoing testing, not one audit a year, and every new attack pattern helps train the defense.
Sources
Paulos Yibelo, “Upload2Shell · CVE-2026-125396”, pwn.ai, research page updated November 18, 2026. https://pwn.ai/upload2shell↩︎
Artifex, “Recent Changes in Ghostscript”, version 10.08.0, September 8, 2026. https://ghostscript.readthedocs.io/en/latest/News.html↩︎