Ghostscript is one of those programs most people have never heard of and most servers have installed. It reads PostScript and PDF, and it gets called whenever something needs to turn a document into an image: a thumbnail in a file manager, a preview in webmail, a page on its way to a printer.
The security firm pwn.ai has spent the autumn showing what happens when that quiet helper has a bad bug. Their name for it is Upload2Shell, and the bug is CVE-2026-125396. You send a file. The server makes a thumbnail. The server runs your commands.
There's a fix, and it has been out since 8 September. That's the good news. The rest of this article is about why so many servers still won't have it.
What the flaw is
It is a use-after-free in the code Ghostscript uses to load Type 1 fonts. A crafted document can use it to switch off -dSAFER, the sandbox that's supposed to stop a document from running commands or touching files. Ken Sharp, the Artifex developer who handled the fix, described the code involved as "an ancient piece of code well known to be a vulnerability, but difficult to eradicate", according to The Hacker News. Artifex is moving that step into safer code.
The CVE only appeared on 9 November. Ghostscript 10.08.0 fixed it two months earlier. If you watch CVE feeds and nothing else, you were nine weeks behind before you started.
Why "local" is misleading
The VulnCheck advisory scores it 8.5 and classes it as local. That's technically right and practically wrong. Hardly anyone runs Ghostscript by hand. Software runs it for them, and that software is often on the internet.
The applications don't even need to know Ghostscript is there. ImageMagick, Pillow, libvips and others will hand PostScript or EPS content to it, and they'll do so for a file called holiday.png if the contents say PostScript. Cropping, resizing and thumbnailing are enough.
pwn.ai got command execution through ten applications, including:
- A shared print queue on Debian 13. One anonymous print job, no login.
- Roundcube webmail. An outside sender emails an attachment and the recipient opens the message.
- Forminator and Essential Addons for Elementor, two WordPress plugins, through public upload forms.
- MediaWiki with PdfHandler, DokuWiki and Mayan EDMS, through anonymous uploads or an email inbox.
- WordPress itself, for anyone with upload rights (Author and above by default), and Plesk via its Roundcube thumbnails.
Google was running an affected version in production and mitigated it on 10 November. pwn.ai also reached the renderer in Gradio, ComfyUI, the AUTOMATIC1111 Stable Diffusion web UI, Paperless-ngx, Home Assistant and others, without completing a full chain. I'd expect that list to grow.
Where the fix hasn't arrived
Ubuntu shipped fixed packages in October and Debian 13 has a fixed build. Elsewhere it's patchier. pwn.ai's survey, as reported, lists Debian 12 as vulnerable, Amazon Linux 2 and 2023 as fix pending, and several SUSE and openSUSE releases as in progress or affected. They couldn't establish the position for Red Hat, Rocky, Alma, Oracle Linux or Fedora. That's package status, not a test, but it's what most of us go on.
The bigger gap is the copies that never see a package update. A container image built in August carries the Ghostscript it was built with. So does an appliance, or a vendor's application that bundles its own. Updating the host does nothing for those.
There's also a second fix to check. WordPress closed its own part of the chain in 7.0.4 in August (CVE-2026-65640), and Roundcube restricted unsafe attachment types under CVE-2026-114727. Each covers a different step, and you need them as well as the Ghostscript update.
No attacks yet
Nobody has reported Upload2Shell being used in the wild, and the published proof of concept only demonstrates the memory trick without running anything. I'd still treat this as urgent. Upload forms are designed to accept files from strangers, and the gap between a write-up like this and a working exploit has been measured in hours lately. We wrote about SSHole going from proof of concept to first breach in under two days.
What to check
- Find every Ghostscript, not just the system package. Search container images, appliances and application bundles for the
gsbinary and libgs. Anything below 10.08.0 without a distribution backport needs attention. - List the features that take files from outside: upload forms, email ingestion, document import, print queues. For each one, find out what renders the file.
- Tell ImageMagick not to touch PostScript. If you don't need PS, EPS, PDF or XPS conversion, block those coders in its policy file. Most web applications don't need them.
- Close anonymous printing. Shared CUPS queues should require authentication. This one is easy to forget because printers feel harmless.
- Patch WordPress and Roundcube as well, for their halves of the chain.
- Contain the renderer. In pwn.ai's testing, an AppArmor profile stopped the compromised process from starting a shell. Running thumbnailing in a locked-down container or separate service gives you the same kind of backstop for the next font bug.
The last point matters more than it looks. Ghostscript has had sandbox escapes before and the maintainer has more or less told us there may be more in that code. A conversion service that can't reach anything useful is worth more than one more patch.
If you'd like help finding the file renderers in your estate, write to sales@halfteck.com.
Sources: pwn.ai Upload2Shell impact index; pwn.ai technical analysis; The Hacker News, 22 November 2026; VulnCheck advisory; Ghostscript bug 709684; WordPress 7.0.4 release notes.