The short answer

Researchers at pwn.ai showed that a file dressed up as a PDF can take over the Ghostscript program that many web servers use to make PDF thumbnails, and from there run commands on the server. On WordPress, they reached it through ordinary media uploads and, without any login, through public upload forms in the Forminator and Essential Addons for Elementor plugins. Keep WordPress and your plugins updated, but know that the real fix is on the server: Ghostscript 10.08.0 or your Linux vendor’s patched package. Ask your host whether your server has it.

An IT technician in a blue shirt types on a laptop in a server room, with network cables coiled on the desk beside him.

What happened

Details
VulnerabilityCVE-2026-125396, nicknamed Upload2Shell, in Ghostscript, the program many servers use to read PDF and PostScript files
What it allowsA crafted document can escape Ghostscript’s safety mode (-dSAFER) and run commands on the server as the web server’s user
Severity8.5 High under CVSS 4.0 (scored as a local attack). The researchers showed remote attacks through WordPress and other software.
Fixed inGhostscript 10.08.0 (released September 8, 2026), or a Linux vendor’s patched package with an older version number
WordPress sideCVE-2026-65640, fixed in WordPress 7.0.4 on August 12, 2026 and backported to every branch back to 4.7
Being exploited?No confirmed attacks reported as of November 30, but exploit code is public. Not in CISA’s Known Exploited Vulnerabilities catalog (version 2026.11.27).

When someone uploads a PDF, WordPress can create a preview image of its first page. To do that it hands the file to Imagick, which passes it to ImageMagick, which in turn calls Ghostscript. The researchers found that the file only has to look like a PDF. Its contents can be PostScript, a programming language Ghostscript runs, and a bug in how Ghostscript loads one type of font let their file switch off Ghostscript’s sandbox and run a command. WordPress never calls Ghostscript itself, which is why this kind of flaw is easy to miss in a normal plugin or security review.

The research, published November 21, also reached Roundcube webmail, MediaWiki, Debian print servers and file pipelines at Google and Dropbox. For WordPress owners, three paths matter.

The three WordPress paths the researchers tested

WhereWho could trigger itResult
WordPress core (7.0.3 and earlier, 6.9.6 and earlier)A logged-in Author, Editor or Admin uploads the fileFixed in WordPress 7.0.4, 6.9.7 and older-branch backports
Forminator 1.55.1 on WordPress 7.0.2A signed-out visitor uses a public form with a PDF upload field set to save files to the Media LibraryCommand ran as the web server user in 5 of 5 tests
Essential Addons for Elementor Lite 6.7.0 on WordPress 7.0.2A signed-out visitor uses the public Login/Register widget with a custom upload field, with registration turned onCommand ran as the web server user in 5 of 5 tests

Two details matter here. First, the plugin tests ran on WordPress 7.0.2, before the core fix. The researchers do not say whether WordPress 7.0.4 or later also blocks the plugin routes, so do not assume it does. Second, both plugin paths depend on settings: a public form that accepts PDFs and saves them to the Media Library, or public registration with an upload field. Forminator has since reached 1.58.6 and Essential Addons 6.8.10; their changelogs list several “security hardening” releases but do not mention Ghostscript or this flaw.

Why updating WordPress is not enough

Ghostscript belongs to the server, not to WordPress. Your host installs and updates it. Artifex released the fix in Ghostscript 10.08.0 on September 8, and many Linux distributions have shipped it, but not all. Here is the status for this exact flaw on each vendor’s own security tracker, checked November 30:

PlatformStatus for CVE-2026-125396
Ubuntu (seven releases, including 22.04, 24.04 and 26.04 LTS)Fixed October 21 (notice USN-8949-1, which lists it as “No CVE number”)
Debian 13 (Trixie)Fixed (DSA-6516-1, package 10.05.1~dfsg-1+deb13u2 or later)
Debian 12 (Bookworm)Fixed in the security repository (DLA-4914-1, package 10.0.0~dfsg-11+deb12u9). The researchers’ November 12 table still showed it vulnerable.
Red Hat Enterprise Linux 8, 9 and 10Fixed November 25 (RHSA-2026:103524, 103523 and 103517). RHEL 7 is listed as affected.
Amazon Linux 2 and 2023Fix pending (Amazon Linux 2027 Preview fixed November 19)
SUSE Linux Enterprise and openSUSE LeapMany products still listed as affected or in progress

A version number alone can mislead. Linux vendors often patch an older version without changing its main number, so a server showing Ghostscript 10.05 may be fixed, and one that recently installed a different Ghostscript patch may still be exposed. Containers are another trap: updating the host operating system does not update a copy of Ghostscript built into a container image.

What to check this week

1. Update WordPress and your plugins

Make sure WordPress is on the current release (7.1.5 at the time of writing). That covers the core path, CVE-2026-65640. Update Forminator, Essential Addons and any other plugin that accepts file uploads.

2. See whether your site uses Ghostscript

In the WordPress dashboard, go to Tools > Site Health > Info and open Media Handling. It shows the active image editor (Imagick or GD), the ImageMagick version and a Ghostscript version line. If Ghostscript is not installed, or the active editor is GD, WordPress is not using the PDF preview path described here. Other software on the same server could still call Ghostscript, so ask your host anyway.

3. Ask your host one specific question

“Does the Ghostscript on our server, or in our container image, include the fix for CVE-2026-125396 (Ghostscript 10.08.0 or your vendor’s backport)?” If you are on Amazon Linux 2 or 2023, RHEL 7 or one of the SUSE branches above, ask what their plan is. If you are on Debian 12 or RHEL 8 to 10, ask whether the November security updates are installed. If you do not need PDF previews, ask whether ImageMagick can be set to refuse PDF and PostScript files.

4. Review public upload forms

List every form that lets visitors upload files without logging in. Turn off PDF uploads you do not need, and avoid saving public uploads straight into the Media Library. Check whether public registration is turned on and whether its form has an upload field.

5. Review who can upload

In core, any account with the Author role or higher can upload media. Remove old or unused Author and Editor accounts.

Where the sources differ

  • Local or remote? The Ghostscript CVE is scored as a local attack (8.5 under CVSS 4.0). The researchers say their tests reached it remotely through WordPress and other software. WordPress scored its own CVE-2026-65640 at 8.8 under CVSS 3.0 as a network attack by a logged-in user.
  • Disclosure timing. WordPress shipped its fix on August 12 and Ghostscript on September 8, but the CVE was published November 9 and the full write-up on November 21. On the oss-security mailing list, one researcher criticized that coordination. For site owners the takeaway is simple: the fixes have existed for months, so unpatched servers are the problem.
  • Exploits. pwn.ai’s own proof-of-concept file demonstrates the memory corruption but does not run a command, and its WordPress case studies are marked “not yet published”. Security firms including Sophos report that exploit code is now public, with other researchers posting tools since November 22. As of November 30 we found no confirmed attacks in the wild.
  • Which Linux versions are fixed. The researchers’ table is dated November 12 and lists Debian 12 as vulnerable and RHEL as unknown. Debian and Red Hat have both shipped fixes since then, so check your vendor’s tracker rather than older articles.

What it means for a small business

Most WordPress owners never think about the programs their server uses to make thumbnails. This flaw sits exactly there, below WordPress and below the plugins, so the right fix depends on whoever runs the server. If you use managed hosting, one email answers it. If your site runs on a server or container someone set up years ago, it is worth having that person check. Our look at November’s surge in AI-found WordPress bugs explains why routine updates, on the server as well as in WordPress, matter more every month.

FAQ

What is Upload2Shell?

Upload2Shell is the nickname for CVE-2026-125396, a flaw in Ghostscript before 10.08.0. A crafted PDF or PostScript file can escape Ghostscript's safety mode and run commands on the server. Researchers reached it through WordPress PDF previews and plugin upload forms.

Does updating WordPress fix Upload2Shell?

Partly. WordPress 7.0.4 and later fix the core path for logged-in users (CVE-2026-65640). The root fix is a patched Ghostscript on the server, either version 10.08.0 or a vendor backport, which your host has to install.

Which WordPress plugins were affected?

The researchers showed signed-out attacks through Forminator 1.55.1 (a public form with a PDF upload field saved to the Media Library) and Essential Addons for Elementor Lite 6.7.0 (the Login/Register widget with an upload field and registration on). Both tests used WordPress 7.0.2.

How do I know if my WordPress site uses Ghostscript?

Go to Tools, Site Health, Info, and open Media Handling. It shows the active image editor and a Ghostscript version line. A version number alone does not prove the fix is in, because Linux vendors often patch older versions, so confirm with your host.

Is Upload2Shell being exploited?

As of November 30, 2026 there are no confirmed attacks and it is not in CISA's Known Exploited Vulnerabilities catalog, but security firms report that exploit code is public. The fixes have been available since August (WordPress) and September (Ghostscript), so patch now.

Sources

  1. pwn.ai, "How We Hacked the Pipes: Upload2Shell" (November 21, 2026), read in full. https://pwn.ai/upload2shell/research.html
  2. WordPress.org, "WordPress 7.0.4 Release" (August 12, 2026), read in full. https://wordpress.org/news/2026/08/wordpress-7-0-4-release/
  3. WordPress security advisory GHSA-8vr3-7mxf-gx8w (CVE-2026-65640). https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-8vr3-7mxf-gx8w
  4. National Vulnerability Database, CVE-2026-125396 (published November 10, 2026 UTC), read via the NVD API. https://nvd.nist.gov/vuln/detail/CVE-2026-125396
  5. National Vulnerability Database, CVE-2026-65640 (published August 17, 2026), read via the NVD API. https://nvd.nist.gov/vuln/detail/CVE-2026-65640
  6. oss-security mailing list, "Re: Ghostscript 10.08.0 fixes multiple CVEs, including upload2shell" (November 21, 2026), read in full. https://www.openwall.com/lists/oss-security/2026/11/22/1
  7. Forminator plugin changelog on WordPress.org (version 1.58.6, November 16, 2026), read directly. https://wordpress.org/plugins/forminator/#developers
  8. Essential Addons for Elementor plugin changelog on WordPress.org (version 6.8.10, November 29, 2026), read directly. https://wordpress.org/plugins/essential-addons-for-elementor-lite/#developers
  9. WordPress source, Site Health debug data (Media Handling, Ghostscript version field). https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/includes/class-wp-debug-data.php
  10. Red Hat CVE page for CVE-2026-125396 (fixes for RHEL 8, 9 and 10 released November 25, 2026), read via the Red Hat security data API. https://access.redhat.com/security/cve/CVE-2026-125396
  11. Debian security tracker, CVE-2026-125396, checked November 30, 2026. https://security-tracker.debian.org/tracker/CVE-2026-125396
  12. Amazon Linux security center, CVE-2026-125396, checked November 30, 2026. https://explore.alas.aws.amazon.com/CVE-2026-125396.html
  13. SUSE CVE page, CVE-2026-125396, checked November 30, 2026. https://www.suse.com/security/cve/CVE-2026-125396.html
  14. Sophos X-Ops, "Proof-of-concept exploit code available for Ghostscript Upload2Shell vulnerability", via search excerpt. https://www.sophos.com/en-us/blog/proof-of-concept-available-for-ghostscript-upload2shell
  15. CISA Known Exploited Vulnerabilities catalog, version 2026.11.27, checked November 30, 2026. https://www.cisa.gov/known-exploited-vulnerabilities-catalog