Ghostscript Upload2Shell: How to Check Your WordPress Site and Server

Illustration of a browser window with the words "Ghostscript Upload2Shell": Check your WordPress site and server

The Solo Toolbox · Software Help for One-Person Businesses

Upload2Shell (CVE-2026-125396) is a flaw in Ghostscript that lets a crafted file escape its -dSAFER sandbox and run commands on the server that converts it, often through an ordinary upload, thumbnail or print feature. The fix is Ghostscript 10.08.0, or your Linux distribution’s patched package; WordPress sites also need WordPress 7.0.4 or a later backport release, which closed a separate step in the same attack chain.

Security firm pwn.ai published its findings this week, and The Hacker News reported them on November 22, 2026. This guide shows how to check whether your WordPress site or server uses Ghostscript, which versions are fixed, and how to cut the risk if you can’t update yet.

Before you start

  • You’ll need: admin access to WordPress, or shell access to your server.
  • Applies to: servers and apps that process uploaded PDFs, PostScript or images through Ghostscript, directly or via ImageMagick, Pillow or similar libraries.
  • Time: 5 minutes to check; longer if you manage the server yourself.
  • How we checked this: pwn.ai’s Upload2Shell disclosure and technical write-up, the WordPress 7.0.4 release notes and The Hacker News report, all read on November 22, 2026. Fixed versions for the affected WordPress plugins were not listed in the sources we reviewed.
Infographic: Ghostscript Upload2Shell CVE-2026-125396, how to check WordPress Site Health and server packages and temporary mitigations

What Upload2Shell is

The bug is a use-after-free in Ghostscript’s Type 1 font loader. A crafted document uses it to switch off the checks that -dSAFER is meant to enforce, then runs commands as the account doing the rendering, usually a low-privilege web or print user. The CVE carries a score of 8.5 out of 10.

Applications don’t have to call Ghostscript themselves. ImageMagick, Pillow, libvips and some Qt plugins hand PostScript or EPS content to Ghostscript even when the file is named .png, .jpg or .pdf. Making a thumbnail or cropping an image can be enough to start it.

Artifex fixed the flaw in Ghostscript 10.08.0 on September 8, 2026. The CVE was assigned on November 9, and no attacks using it had been reported as of November 22.

Which apps were confirmed affected

pwn.ai ran commands on a server through these paths, each with a vulnerable Ghostscript installed:

ApplicationWho could trigger it
WordPress Core (Imagick + Ghostscript)Any user with the upload_files capability: Authors and above by default
Forminator (WordPress plugin)Signed-out visitors, via a public PDF form set to store files in the Media Library
Essential Addons for ElementorSigned-out visitors, via a Login/Register widget with an upload field
Roundcube webmailAn external sender; the recipient only had to view the message
Debian 13 CUPSAnyone who could send a print job to a shared queue
MediaWiki, DokuWiki, Mayan EDMS, ResourceSpace, Plesk ObsidianVaries: anonymous uploads, emailed documents or authenticated uploads

The WordPress Core fix (CVE-2026-65640) and the Ghostscript fix cover different points in the chain. The Hacker News notes that updating one does not remove the need for the other.

How to check a WordPress site

  1. In your dashboard, go to Dashboard > Updates and confirm you are on WordPress 7.0.4 or later. WordPress backported the fix to older branches, so a fully updated older branch also counts.
  2. Go to Tools > Site Health, open the Info tab and expand Media Handling.
  3. Look at Active editor. If it says WP_Image_Editor_Imagick, WordPress uses ImageMagick, which can call Ghostscript. If it says WP_Image_Editor_GD, the Core upload path pwn.ai used isn’t active on your site.
  4. Look at Ghostscript version on the same screen. Below 10.08.0 means your host needs to update it or confirm a backported fix. If no version is shown, WordPress couldn’t detect Ghostscript, which usually means it isn’t installed or isn’t reachable from PHP.
  5. Go to Plugins and update Forminator and Essential Addons for Elementor if you use them. Then review any public form or registration widget that accepts file uploads and turn off uploads you don’t need.

On shared hosting you can’t update Ghostscript yourself. Send your host the CVE number and ask which Ghostscript package their servers run. Our WordPress update check guide shows how to confirm automatic core updates are working.

How to check a Linux server

Start with the version Ghostscript reports:

gs --version

Upstream 10.08.0 or later has the fix. Distribution packages often keep an older version number and backport the patch, so check the package version instead:

dpkg -l ghostscript      # Debian and Ubuntu
rpm -q ghostscript       # RHEL, Fedora, SUSE and Amazon Linux

Compare the result with the fixed packages pwn.ai lists:

DistributionFixed package
Ubuntu 26.04 LTS10.06.0~dfsg-3ubuntu1.2
Ubuntu 24.04 LTS10.02.1~dfsg1-0ubuntu7.10
Ubuntu 22.04 LTS9.55.0~dfsg1-0ubuntu5.15
Debian 13 (Trixie)10.05.1~dfsg-1+deb13u2; current build +deb13u3
Debian 12 (Bookworm)Listed as vulnerable
Amazon Linux 2 and 2023Fix pending
SUSE Linux Enterprise and openSUSE LeapFix in progress or affected, depending on release
Arch, Alpine 3.23+, Gentoo, Fedora Rawhide10.08.0 packages available

pwn.ai could not establish whether current Red Hat, Rocky Linux, AlmaLinux, Oracle Linux or stable Fedora packages carry the fix. Check your vendor’s security tracker for CVE-2026-125396.

On Ubuntu and Debian, sudo apt update && sudo apt install --only-upgrade ghostscript installs the patched package where one exists. Our APT security update guide covers checking that the update took.

Don’t forget containers and bundled copies

Updating the host doesn’t update Ghostscript inside a container image or an application that ships its own copy. Run gs --version inside each document-processing container, rebuild images on a patched base, and redeploy. Paperless-ngx’s official image, for example, includes Ghostscript and calls it for PDF/A conversion, according to pwn.ai’s source review.

If you can’t update yet

  • Stop ImageMagick handing files to Ghostscript. Add <policy domain="coder" rights="none" pattern="{PS,PS2,PS3,EPS,PDF,XPS}" /> to ImageMagick’s policy.xml, usually under /etc/ImageMagick-6/ or /etc/ImageMagick-7/. This stops PDF thumbnails in WordPress and other apps, so treat it as temporary.
  • Require login on print queues. Don’t share CUPS queues with unauthenticated network users.
  • Close public upload fields on forms and registration widgets until the plugin and server are patched.
  • Use AppArmor or SELinux. In one pwn.ai test, an enforced AppArmor profile stopped the compromised interpreter from starting a shell.

Frequently asked questions

Is Upload2Shell being exploited?

No attacks had been reported as of November 22, 2026. pwn.ai has published only a limited proof of concept that changes a value in memory and sets it back, and says more case studies will follow.

Does it affect my Windows or Mac computer?

Only if you’ve installed Ghostscript and open untrusted files with it. Artifex’s Windows installers, Homebrew and MacPorts all offer 10.08.0.

My site uses the GD image editor. Am I safe?

The WordPress Core path pwn.ai used needs Imagick and Ghostscript, so GD sites aren’t exposed through that route. Plugins and other software on the same server can still call ImageMagick or Ghostscript directly, so check the server version too.

What to do next

Open Site Health on each WordPress site you run and note the active image editor and Ghostscript version. Update WordPress and your form plugins today, and send your host the CVE number if Ghostscript is below a fixed version. If you run your own servers, check every container that converts documents, not only the host.

Related guides

Sources

Last checked: November 22, 2026. Distribution fix status changes quickly. If something here is out of date, let us know.

Get smarter software tips in your inbox

Clear tutorials, honest software recommendations, productivity tips and the tech updates that matter to one-person businesses.

Free. We’ll email you a link to confirm. Unsubscribe anytime with one click. We never share your address. Privacy policy

Get smarter software tips in your inbox

Free. Confirm by email, unsubscribe anytime. Privacy policy

Similar Posts