- Plain-language security guides for Central Florida businesses/
- News/
- Upload2Shell: What to Ask Whoever Runs Your Website, Webmail or Print Server/
Upload2Shell: What to Ask Whoever Runs Your Website, Webmail or Print Server

Table of Contents
What happened #
Ghostscript reads PDF and PostScript files. PostScript is a small programming language, so showing one of these files means running its program. Ghostscript keeps that program in a sandbox, which is meant to stop it from touching files or starting other programs. pwn.ai found a way out of the sandbox. A crafted file could run commands on the server, as the account that handled the file.
Ghostscript’s makers fixed this in version 10.08.0 on September 8, 2026. The flaw got its public number, CVE-2026-125396, on November 9. Sophos, a security firm, wrote that pwn.ai had described a working demonstration of the attack on November 21. Sophos also said there were no reports of active attacks. The flaw was not among the ones CISA, the US cyber agency, added to its list of flaws known to be used in attacks on November 20.
How a file reaches Ghostscript #
A website does not call Ghostscript itself. It hands a file to an image tool, and the image tool passes it on. The file can be named like a photo or a PDF while its contents are PostScript. pwn.ai showed the attack working on these setups:
- A shared print queue. A Linux print server that accepted print jobs without a login ran a command for an anonymous sender.
- Webmail. On Roundcube, an outside sender could email an attachment, and the server ran a command when the recipient opened the message. Nobody had to click the attachment. This needed a permissive setting in the image tool.
- WordPress. Anyone logged in as an Author or higher could do it, on sites that use the ImageMagick image tool together with Ghostscript. Two plugins, Forminator and Essential Addons for Elementor, let a visitor with no login do it through a public upload form.
- Other tools. pwn.ai also tested a wiki and a document-management program.
What this means for a business owner #
Updating WordPress is not enough. WordPress released its own fix on August 12, in version 7.0.4, and said it was copying the fix to older versions. cPanel lists fixed versions 6.8.8 and 6.9.7. We do not know whether every older version has one. But the flaw sits in Ghostscript, which is part of the server. This is the same pattern as PHP2Shell: the update has to happen on the server, by whoever runs it.
Your host or IT person has to update Ghostscript. cPanel, a hosting control panel, says WordPress should be on 6.8.8, 6.9.7 or 7.0.4 or newer, and Roundcube on 1.6.20 or newer. Plesk, another control panel, says updating Plesk does not update Ghostscript. That comes from the operating system.
Linux versions are uneven. On November 12, pwn.ai listed Debian 12, Amazon Linux and some SUSE versions as still waiting for a fix. Ubuntu and Debian 13 already had one. AlmaLinux released fixed packages on November 23. pwn.ai did not find out whether current Red Hat-family versions have the fix. Your provider can tell you the status for your version.
Copies and restarts matter. Some containers and software packages carry their own copy of Ghostscript, so updating the server does not reach them. A program that is already running keeps using the old copy until it is restarted.
Not every site is exposed. Some image tools never start Ghostscript. Whether yours does depends on how the site or mail server is built. Only whoever runs it can say.
What we do not know #
- Whether anyone is using the flaw. We found no report of attacks. A working demonstration is public, so this could change.
- How many sites have the exposed setup. We found no count.
- Which fixed versions exist for every Linux release. The reports we read cover only the ones named above.
- Whether the temporary measures are enough. cPanel’s advice is to stop the image tool from handing PDF and PostScript files to Ghostscript. It warns this can break previews and thumbnails. We cannot say it is enough. The update is the fix.
Five questions to ask this week #
- Which of our systems turn uploads, email attachments or print jobs into previews or other formats, and who looks after each? Think of the website, webmail, document tools and any Linux print server.
- Has Ghostscript been updated to version 10.08.0 or to a fixed package from our Linux provider, and were the programs that use it restarted? Please answer in writing, with the version. Ask about copies inside containers and software packages too.
- Is our WordPress on a fixed version, and which plugins let visitors upload files without logging in? Ask who can upload files to the site, and whether each upload form is still needed.
- If we run our own webmail, is Roundcube on version 1.6.20 or 1.7.5 or newer? cPanel names 1.6.20, and Roundcube’s own notice lists both versions.
- If an update is not ready, can previews of PDF and PostScript files be turned off for now, and is any print server shared with guests or outsiders without a login? This lowers the risk but does not fix the flaw.
These questions will not prevent an attack. The update is the fix.
If you think a system was already broken into #
Call your IT person or provider right away. Ask them to keep every log and record before they change anything, and to check who has been uploading files that look like photos but are not.
Take this to your next IT meeting #
Send the five questions today and ask for written answers. If you are not sure whether your website, email or printers use Ghostscript, that is the first thing to find out.
For a step-by-step version of these questions, read our guide on how to check, in writing.
If your IT person wants a checklist, we collected one in an open repository, with sources and a hunting guide: Upload2Shell hunt guide on GitHub. It lists what to check, not what attackers used, because no source has published attacker signs. It is not tested, and it will go stale, so check the dates in it.
At SOC-Lite, a named analyst reviews your alerts, calls you when one is real, works with your IT person or MSP on the fix, and keeps the evidence. A visibility check is free, it takes 20 minutes, and you talk to us by phone or at your office. Book a visibility check
Updates #
2026-11-24: First published, based on the sources below as of this date.
2026-11-24: Added a link to our open repository of exposure checks and a hunting guide.
2026-11-24: Added a link to our guide on how to check, in writing.
2026-11-24: Corrected how we described WordPress’s fixes for older versions. WordPress said it was backporting the fix, and we cannot confirm every older version has one.
Sources #
- pwn.ai, How We Hacked the Pipes: Upload2Shell: what the flaw is, the setups tested (print queue, Roundcube, WordPress and two plugins, other tools), the dates (Ghostscript fix September 8, public number November 9, WordPress fix August 12), and the Linux status tables as of November 12.
- Sophos, Proof-of-concept exploit code available for Ghostscript Upload2Shell: the note about the November 21 demonstration and no reports of active attacks.
- CISA, Adds Four Known Exploited Vulnerabilities to Catalog (November 20): the four flaws added that day did not include this one.
- WordPress, WordPress 7.0.4 Release: the August 12 security fix for sites that use ImageMagick and Ghostscript, and the note that backports to older versions were in progress.
- Roundcube, Security updates 1.6.20 and 1.7.5 released: the October 19 fix for passing attachments to ImageMagick.
- cPanel, Security: CVE-2026-125396 - Ghostscript - Upload2Shell: the fixed WordPress and Roundcube versions, the temporary measure and its warning.
- Plesk, Vulnerability CVE-2026-125396 and CVE-2026-114727 (Upload2Shell): Plesk does not update Ghostscript, which comes from the operating system.
- AlmaLinux, Upload2Shell (CVE-2026-125396): Patched Ghostscript released: fixed packages on November 23, restarting programs that use Ghostscript, containers carrying their own copy, and no known Red Hat fix.
- SOC-Lite by BansalAI, Upload2Shell indicators and hunt guide: our own collection of exposure checks and a hunt guide, with the sources it draws on.
- Debian Security Tracker, CVE-2026-125396: the description of the flaw.