Incident sheet · /security
- System
- Security & Risk
- Filed
- Read
- 4 min · 707 words
- Severity
- Routine
Ghostscript flaw turned file uploads into remote code execution
Upload2Shell, tracked as CVE-2026-125396, let attackers run commands via disguised PDF, JPG and PNG uploads on unpatched Ghostscript builds before 10.08.0. Ten products were confirmed affected.

Event log
- CVE-2026-125396 affects Ghostscript builds before 10.08.0, released 8 September by Artifex.
- pwn.ai confirmed command execution in 10 products, including Debian 13 and Roundcube webmail.
- Dropbox and five other organisations paid maximum bounties totalling low six figures.
- Google closed an affected document pipeline path on 10 November; no exploitation in the wild reported.
- The CVE was published on 9 November, more than two months after the fix shipped.
A single Ghostscript flaw earned researcher Paulos Yibelo maximum bug bounties from Dropbox and five other organisations, totalling what he described as "low six figures" in aggregate. The vulnerability, named Upload2Shell, let attackers run commands on servers by disguising PostScript code as ordinary PDF, JPG or PNG uploads. It is tracked as CVE-2026-125396 and affects unpatched Ghostscript builds before version 10.08.0, released by maintainer Artifex on 8 September.
Yibelo, of security firm pwn.ai, found the bug with the help of artificial intelligence (AI). He announced the disclosure on 21 November 2026, stating: "I have remotely+reliably RCE'd 15 different applications & over 10 bugb servers." RCE denotes remote code execution, the ability to run attacker-supplied commands on a target machine.
Why file uploads became command execution
Ghostscript is the open-source interpreter that renders PostScript and PDF files for preview and printing across many web services. PostScript is a programming language as well as a page format, which means Ghostscript executes a PostScript file as a program rather than reading it like a picture.
An ordinary PDF cannot carry the code the attack needs, so the exploit hides PostScript inside files named .pdf, .jpg or .png. Image libraries such as ImageMagick and Pillow decide how to handle a file by its contents rather than its extension, and pass the embedded PostScript to Ghostscript for processing.
"Almost every application we tested with file uploads could be tricked into passing a file with a trusted extension to Ghostscript," Yibelo wrote.
Ghostscript's -dSAFER sandbox is designed to stop a document touching files or running commands. The crafted file instead breaks a font-loading routine and uses its own error handler to switch the protection off in memory.
Which products were confirmed vulnerable?
pwn.ai confirmed command execution in 10 products. The affected scenarios spanned operating systems, webmail and public web forms.
- On Debian 13, an anonymous print job sent to a shared queue ran on the host.
- On Roundcube webmail, merely viewing an email with a disguised attachment triggered execution.
- Signed-out visitors could reach the flaw through public upload fields in the Forminator and Essential Addons for Elementor plugins for WordPress.
- Google's document pipeline could be reached with a signed-out request for an attacker-hosted file; pwn.ai said Google closed that path on 10 November.
WordPress rated its own fix 8.8 out of 10 for sites running the Imagick and Ghostscript combination. A pwn.ai teaser in September also named Meta, Zoom and Box, but none appear in the published report. The firm said its Dropbox finding and several unnamed others were separate Ghostscript bugs.
What should enterprises check?
The version number alone can mislead. Linux distributions often backport the fix while keeping an older version string, so patch status cannot be judged from Ghostscript's reported version. Desktop systems face less exposure than web services that automatically process PDF and PostScript files from untrusted sources.
iTnews replicated pwn.ai's proof of concept using an earlier, vulnerable Ghostscript build, comparing the interpreter's output against patched 10.08.0, which did not trigger the flaw.
The flaw is a variant of a recurring class of Ghostscript sandbox escapes. Artifex fixed a related flaw in the same font-handling file in 2018, found by Google researcher Tavis Ormandy through fuzzing (automated testing with malformed inputs). The company said it is trying to remove the privileged internal operation that keeps making this class of bugs possible.
What is the timeline and remaining risk?
WordPress shipped its mitigation on 12 August. Artifex released Ghostscript 10.08.0 on 8 September. pwn.ai requested the CVE on 6 November, and it was published on 9 November US Eastern time, more than two months after the fix.
No exploitation of Upload2Shell in the wild has been reported. pwn.ai nonetheless published a working proof of concept alongside the disclosure.
Yibelo said the useful place to look for more of these flaws is the processing that follows an accepted file: thumbnail generation, metadata extraction, document import and print conversion. Asked for the bounty total, he told iTnews: "I can't say the exact amount but it's in the low six figs [figures]."
via itnews.com.au (Source)
More from Rebecca Stone
Show full bio
Senior reporter covering money, funding and market shifts around enterprise information technology and the leaders who run at CIO Monitor.
222 articles
The newsroom digest
One email a day with the stories that matter. No noise.
Cross-references
- Fake GitHub Security Tools Compromise 2,000 Windows Systems
- Optimizely Supply Chain Attack Pushed Malware to 178 Enterprise Sites
- Microsoft's October Patch Tuesday Ships 1,408 CVEs, One Actively Exploited
- Google Finds AI Agents Turning Patches into Working Exploits Autonomously
- Silverstripe ships fixes for 9.8-rated flaw allowing unauthenticated code execution