Skip to content
All posts

Ghostscript upload2shell CVE-2026-125396: Update to 10.08.0

November 24, 2026 · Team PlayCISO
TL;DR · the short version

CVE-2026-125396, which researchers at pwn.ai call "upload2shell", is a flaw in Ghostscript before 10.08.0: per the CVE record, a crafted PostScript or PDF document can escape the -dSAFER sandbox through the .putgstringcopy procedure and run code. Artifex fixed it in Ghostscript 10.08.0, dated 8 September 2026 on its releases page; the CVE was published on 9 November and the researchers' write-up on 21 November. The researchers say they reached Ghostscript remotely through applications that hand uploads to it, such as ImageMagick, Pillow, WordPress, Roundcube and a CUPS print server. A related WordPress flaw, CVE-2026-65640 (CVSS 8.8), let an Author-level user run code on sites using Imagick and Ghostscript; WordPress fixed it on 12 August in 7.0.4 and backported it to 4.7. No in-the-wild exploitation of either has been reported, and neither is in CISA KEV. Update Ghostscript everywhere it is installed, including containers and bundled copies.

Put it into practice
Rank upload2shell against the rest of your backlog
Score it on exposure and impact in your own pipelines, not on the local-vector CVSS base score.
Open the Vulnerability Prioritizer

Update Ghostscript to 10.08.0 or your distribution's patched build: a crafted document can break out of its sandbox, and many web apps feed it uploads without you knowing. CVE-2026-125396, which the researchers at pwn.ai call upload2shell, lets a malicious PostScript or PDF file escape Ghostscript's -dSAFER mode and run code. Artifex shipped the fix in Ghostscript 10.08.0 on 8 September 2026. A related WordPress flaw, CVE-2026-65640, was fixed on 12 August in WordPress 7.0.4 and backported to every branch down to 4.7. No exploitation in the wild has been reported for either.

Who this is for: CISOs, platform and application owners who run anything that makes thumbnails, previews or conversions of uploaded images and PDFs, WordPress site owners, and teams that run print servers.

Based on the CVE records, Ghostscript's releases page and release notes, the Artifex fix commit, WordPress's release post and GitHub advisory, Ubuntu's notice, the oss-security list and the researchers' write-up, read on 24 November 2026. PlayCISO is not affiliated with Artifex, WordPress or pwn.ai. We publish no exploit details.

Confirmed vs not yet known

Confirmed (CVE record, Artifex): Ghostscript before 10.08.0 is affected; the .putgstringcopy procedure calls the privileged .forceput operator without checking operand types, which a crafted PostScript or PDF file can abuse to bypass -dSAFER and run arbitrary code. Artifex's fix commit validates those operands. Fixed in 10.08.0.

Confirmed (WordPress): CVE-2026-65640, Author-level remote code execution "on sites that use Imagick and Ghostscript", CVSS 8.8, fixed in 7.0.4 and backported to 4.7.35.

Claimed by the researchers: remote reach through ImageMagick, Pillow, libvips, WordPress plugins, Roundcube, MediaWiki, DokuWiki, document management systems and a Debian CUPS print server, in their own tests. A Debian CUPS proof-of-concept is promised in a later post.

Not reported: exploitation in the wild. CISA's enrichment marks exploitation "none" for both CVEs, and neither is in the KEV catalog (version 2026.11.23).

Affected and fixed versions

ProductAffectedFixSource
Ghostscript (Artifex) CVE-2026-125396Before 10.08.010.08.0, or a distribution backportCVE record, Ghostscript
Ubuntu Ghostscript packagesPer releaseUSN-8949-1 (21 Oct 2026); pwn.ai says it carries the fix, but the notice does not name this CVEUbuntu
WordPress core CVE-2026-656407.0.0-7.0.3, 6.9.0-6.9.6 and every branch back to 4.7.0-4.7.347.0.4, 6.9.7, 6.8.8 ... 4.7.35WordPress advisory

Two discrepancies to know about. The 10.08.0 release notes carry the heading date 19 May 2026 and say only that the release "addresses a number of potential security issues"; Ghostscript's releases page and the oss-security list date the release to 8 September 2026, which we use. And the CVE record scores the Ghostscript flaw with a local attack vector (CVSS 3.1 7.8), while the researchers say they reached it remotely through applications that process uploads. On oss-security, one participant argued the issue should be treated as public from the September release, and criticised how the disclosure was coordinated.

Why an upload becomes a shell

Ghostscript interprets PostScript, a full programming language, to render PostScript and PDF files. Its -dSAFER mode is meant to stop a document from touching files or running commands. Many applications never call Ghostscript directly: an image library sees a file it thinks is PostScript or EPS and hands it to Ghostscript to make a thumbnail. That is why the researchers' recommendations focus on the whole chain: check a file's real type before generating a preview, require authentication on shared print queues, stop the rendering process from starting a shell, and audit which components can reach Ghostscript, not only the upload form.

Useful next, if this was relevant to you

Showing 1 of 3: CISO Readiness Scorecard

Timeline

DateEventSource
12 Aug 2026WordPress 7.0.4 fixes CVE-2026-65640 (Imagick + Ghostscript upload RCE), backports to 4.7; credit pwn.aiWordPress, GHSA-8vr3-7mxf-gx8w
8 Sep 2026Ghostscript 10.08.0 released with the fixGhostscript
21 Oct 2026Ubuntu USN-8949-1 Ghostscript update (pwn.ai says it includes the fix)Ubuntu, pwn.ai
9 Nov 2026CVE-2026-125396 published (CNA VulnCheck)CVE.org
21 Nov 2026pwn.ai publishes the upload2shell write-up; oss-security thread on 10.08.0pwn.ai, oss-security
23 Nov 2026Neither CVE in the CISA KEV catalogCISA KEV

What security leaders should do this week

  • Find every copy of Ghostscript, not just the one on the host OS: container images, application bundles, document and print servers, CI runners and appliances. The researchers stress that updating the host may not update a bundled copy.
  • Update to 10.08.0 or your vendor's backport. Distribution version numbers differ from upstream, so check each vendor's advisory. Where a vendor has not shipped a fix yet, record the exception with an owner and a date in your risk register.
  • Update WordPress to the latest release of its branch (7.0.4 or later, or the backport such as 6.9.7). Review who holds Author or higher roles, and remove upload rights that are not needed.
  • Cut the path from upload to renderer. Check real file types before previews, disable PostScript, EPS and PDF processing in image pipelines that do not need it, run renderers as low-privilege users in a sandbox, and put shared print queues behind authentication.
  • Prioritise on reachability, not the base score. The local-vector CVSS undersells an internet-facing upload that reaches Ghostscript. Rank it with the Vulnerability Prioritizer or the SSVC calculator, and watch its EPSS score now the write-up is public.
  • Know how you would triage a hit. If a renderer process ever spawns a shell, you want the case already scoped: practise in SOC Case Triage.

For the vendor records, see Artifex (Ghostscript) and WordPress in the Breach Index. These are product vulnerabilities, not breaches of Artifex or WordPress.

Frequently asked questions

What is upload2shell?

Upload2shell is the name the researchers at pwn.ai gave to CVE-2026-125396, a flaw in Ghostscript that lets a crafted PostScript or PDF document escape Ghostscript's -dSAFER sandbox and run code. Their point is that many web applications pass uploaded files to Ghostscript indirectly, for example to make thumbnails through ImageMagick, so an upload can become a shell. Their write-up was published on 21 November 2026.

Which Ghostscript version fixes CVE-2026-125396?

Ghostscript 10.08.0, which Ghostscript's releases page dates to 8 September 2026. The CVE record says every version before 10.08.0 is affected. Linux distributions ship backported fixes under their own version numbers, so check your distribution's advisory rather than the upstream version string.

Is CVE-2026-125396 exploited in the wild?

No in-the-wild exploitation has been reported. The researchers describe their own proof-of-concept tests only, CISA's enrichment on the CVE record marks exploitation as "none", and neither CVE is in the CISA KEV catalog as of 23 November 2026. A detailed public write-up raises the risk, so patch anyway.

What is CVE-2026-65640 in WordPress?

CVE-2026-65640 is a remote code execution flaw in WordPress core on sites that use Imagick and Ghostscript: a logged-in user with the upload_files capability (Author role or higher) can upload a malicious file and run code. WordPress rates it CVSS 8.8 and fixed it on 12 August 2026 in 7.0.4, with backports to every branch down to 4.7 (for example 6.9.7, 6.8.8 and 4.7.35). WordPress credits the pwn.ai team.

Is my WordPress site affected by CVE-2026-65640?

Only if the server uses Imagick and Ghostscript and an attacker has an account that can upload files. WordPress fixed it in 7.0.4 and backported the fix to all branches back to 4.7, so a site on the latest release of its branch is patched. Updating Ghostscript on the server as well closes the underlying flaw for every other application on the same host.

Does the CVSS score understate upload2shell?

The CVE record scores Ghostscript's flaw with a local attack vector (CVSS 3.1 7.8; the researchers quote 8.5 under CVSS 4.0), because Ghostscript itself processes a local file. The researchers say they reached it remotely through several applications that hand uploaded files to Ghostscript. Score it by how your own applications use Ghostscript, not by the base number.

Which applications pass files to Ghostscript?

In the researchers' own tests: ImageMagick's PostScript delegate, Pillow when it decodes EPS, libvips and other image stacks depending on build, WordPress and two plugins, Roundcube, MediaWiki with PdfHandler, DokuWiki, document management systems and a Debian CUPS print server, among others. These are the researchers' claims; check how your own image, PDF and print pipelines are built.

Was Artifex or WordPress hacked?

No. These are vulnerabilities in Ghostscript, made by Artifex Software, and in WordPress core. Nothing reported shows an intrusion at Artifex or at the WordPress project.

Sources

Rank upload2shell against the rest of your backlog
Score it on exposure and impact in your own pipelines, not on the local-vector CVSS base score.
Open the Vulnerability Prioritizer
Take this with you
Affected and fixed versions · Why an upload becomes a shell · Timeline · What security leaders should do this week · Sources

Ready to practise the decisions these articles describe?

Run your first Cyber War Room free →

Pro