On November 21, 2026, the security firm pwn.ai published details of a flaw in Ghostscript that it calls Upload2Shell. It is tracked as CVE-2026-125396. The researchers showed that a specially crafted file could get past Ghostscript's built-in safety sandbox and run commands on the server that processes it. In their tests, that worked through ordinary features such as a website upload form, a webmail preview and a network print job.
Artifex, the company behind Ghostscript, fixed the flaw in version 10.08.0 on September 8. The Hacker News reports there have been no reports of it being used in attacks. Now that the details are public, it is a good week to make sure the fixes are in.
The short version: update WordPress, Roundcube webmail and your servers' Ghostscript package. If someone else hosts your website or email, ask them to confirm they have done it.
What Ghostscript is
Ghostscript is software that reads PDF and PostScript files and turns them into images or other formats. Most people never see it. It runs in the background on many Linux servers, web hosts and print servers. Common image tools such as ImageMagick hand certain files to Ghostscript on their own, so an application can use it without calling it directly.
What Upload2Shell is
The flaw is in the part of Ghostscript that loads fonts. A crafted document can use it to switch off Ghostscript's sandbox, which is supposed to stop a document from running commands or reaching files. The file does not have to look like a PDF. The researchers showed that a file named like a normal picture, such as a .jpg or .png, could still end up in Ghostscript when a site made a thumbnail or resized an image.
In their tests, several paths needed no login at all:
- Public upload forms on WordPress sites using the Forminator and Essential Addons for Elementor plugins
- Roundcube webmail, where an emailed attachment was processed as soon as the recipient opened the message, without clicking the attachment
- A shared network print queue on a Debian 13 print server that accepted jobs without a password
On WordPress itself, the researchers needed an account that can upload files, which Authors and higher roles have by default. They also showed the problem in Plesk's bundled Roundcube and several other applications. In each case the command ran as the low-privilege account that does the file processing, which can still be a foothold into the server.
Who is at risk
You may be affected if you run, or your web host runs:
- A WordPress website, especially one with public forms that accept file uploads
- Roundcube webmail, including the copies bundled with cPanel and Plesk hosting
- A Linux print server with shared queues that accept print jobs without a password
- Any website or document system that makes previews or thumbnails of uploaded files
Ghostscript versions before 10.08.0 are affected unless your Linux distribution has added the fix to its own package. The Hacker News notes that some distributions still had a fix pending as of last week, and that a copy of Ghostscript bundled inside an application or container does not get fixed by updating the server itself.
How to fix it
- WordPress: update to 6.8.8, 6.9.7, 7.0.4 or later. WordPress closed its own upload path in a separate fix, CVE-2026-65640. Keep plugins up to date too.
- Roundcube: update to 1.6.20 or later. On cPanel servers, cPanel says updating cPanel/WHM brings this in.
- Ghostscript: update to 10.08.0 or your Linux distribution's fixed package. Check any containers or applications that bundle their own copy.
- Print servers: require a sign-in for shared print queues, and do not expose them to the internet.
A stopgap, not a fix. If a server cannot be updated right away, cPanel describes a temporary change to the ImageMagick settings that stops it from handing files to Ghostscript. This can break previews, thumbnails and image resizing in some apps, so your IT provider or web host should make the change and undo it after the update.
Questions to ask this week
If someone else runs your website, email or servers, these questions will get you a clear answer quickly:
- Is our WordPress site on 6.8.8, 6.9.7, 7.0.4 or later, with plugins updated?
- Do we use Roundcube webmail, and is it on 1.6.20 or later?
- Is Ghostscript installed on our servers, and does it have the 10.08.0 fix or the distribution's backport?
- Do any of our print servers accept jobs without a password?
- Does our web host confirm its servers are patched?
Not sure whether your website, webmail or print server is affected, or whether the fixes are in? We can check your systems, find where Ghostscript is running and help you get it updated. Call 713.980.2000 or send us a note.
Let's Talk →