Security ·
Upload2Shell (CVE-2026-125396): an uploaded file can run commands through Ghostscript
On 17 November 2026 researchers at pwn.ai published Upload2Shell, a flaw in the Ghostscript library. A crafted file uploaded to a website or sent by e-mail can escape the sandbox and run commands on the server.
Ghostscript is an old and very widely used tool for handling PDF, PostScript and fonts. Many websites and apps call it in the background without their owners knowing: when you upload a PDF and the system makes a preview, crops an image or generates a thumbnail, Ghostscript is often doing the work. The flaw named Upload2Shell, tracked as CVE-2026-125396, is reported to be a use-after-free in the Type 1 font loader. It lets an attacker bypass the -dSAFER protection mode and run commands with the privileges of the process that handles the file.
The researchers at pwn.ai, including Paulos Yibelo, published the technical write-up on 17 November 2026. Security media report that upstream Ghostscript versions before 10.08.0 are affected. The researchers described working attacks through a range of common applications, including CUPS on Debian 13, Roundcube, Plesk Obsidian, the WordPress plugins Essential Addons for Elementor and Forminator, Mayan EDMS, DokuWiki, MediaWiki and ResourceSpace. The CVE record lists a CVSS 4.0 score of 8.5 but with a local attack vector. The researchers point out that in their demonstrations the file arrived remotely, so the real risk is higher than the number suggests.
What is the patch status? Upstream, the fix is in Ghostscript 10.08.0. Distributions move at different speeds: as of 21 November, one source says Amazon Linux still listed the fix as pending, SUSE was also pending and Debian Bookworm was already fixed. We found no confirmation of mass exploitation on release day in verified sources. One blog claims it without evidence, so we do not treat it as established.
The question most readers ask is whether this affects their own site. If your website, shop or intranet accepts PDFs, images or documents from users and generates previews, the answer is probably yes, even if nobody ever installed Ghostscript on purpose. Check the version on the server with gs --version and find out which packages or containers bring it in. The flaw also matters for print servers and mail clients that process documents automatically.
What it means for companies
Find out where Ghostscript runs in your infrastructure and update it to the version your distribution marks as fixed, or to upstream 10.08.0. Until then, restrict PDF and PostScript uploads from anonymous users and run file processing in an isolated container with minimal privileges. Regular patching of plugins and server libraries is part of website maintenance, and for WordPress sites of our WordPress services. A review of everything your systems do with uploaded files fits under cyber security.
Sources: Cyber Security News: Upload2Shell flaw, pwn.ai: Upload2Shell write-up