--- title: "Ghostscript upload2shell CVE-2026-125396: Update to 10.08.0" url: https://playciso.com/blog/ghostscript-upload2shell-cve-2026-125396 updated: 2026-11-24 section: Blog publisher: PlayCISO --- # Ghostscript upload2shell CVE-2026-125396: Update to 10.08.0 > Ghostscript upload2shell (CVE-2026-125396) escapes -dSAFER via crafted files; fixed in 10.08.0, WordPress CVE-2026-65640 in 7.0.4. No exploitation seen. Source: https://playciso.com/blog/ghostscript-upload2shell-cve-2026-125396 · Published: 2026-11-24 · Publisher: PlayCISO (https://playciso.com) Primary source: https://www.cve.org/CVERecord?id=CVE-2026-125396 --- **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](https://www.cve.org/CVERecord?id=CVE-2026-125396), which the researchers at [pwn.ai](https://pwn.ai/upload2shell/research.html) 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](https://ghostscript.com/releases/) on 8 September 2026. A related WordPress flaw, [CVE-2026-65640](https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-8vr3-7mxf-gx8w), 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](https://github.com/ArtifexSoftware/ghostpdl/commit/1484854e0c8ddfda1baa4ad4cd965b8a9790aa81) 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 | Product | Affected | Fix | Source | | --- | --- | --- | --- | | Ghostscript (Artifex) CVE-2026-125396 | Before 10.08.0 | 10.08.0, or a distribution backport | CVE record, Ghostscript | | Ubuntu Ghostscript packages | Per release | USN-8949-1 (21 Oct 2026); pwn.ai says it carries the fix, but the notice does not name this CVE | Ubuntu | | WordPress core CVE-2026-65640 | 7.0.0-7.0.3, 6.9.0-6.9.6 and every branch back to 4.7.0-4.7.34 | 7.0.4, 6.9.7, 6.8.8 ... 4.7.35 | WordPress advisory | Two discrepancies to know about. The 10.08.0 [release notes](https://ghostscript.readthedocs.io/en/gs10.08.0/News.html) 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](https://www.openwall.com/lists/oss-security/2026/11/22/1), 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. ## Timeline | Date | Event | Source | | --- | --- | --- | | 12 Aug 2026 | WordPress 7.0.4 fixes CVE-2026-65640 (Imagick + Ghostscript upload RCE), backports to 4.7; credit pwn.ai | WordPress, GHSA-8vr3-7mxf-gx8w | | 8 Sep 2026 | Ghostscript 10.08.0 released with the fix | Ghostscript | | 21 Oct 2026 | Ubuntu USN-8949-1 Ghostscript update (pwn.ai says it includes the fix) | Ubuntu, pwn.ai | | 9 Nov 2026 | CVE-2026-125396 published (CNA VulnCheck) | CVE.org | | 21 Nov 2026 | pwn.ai publishes the upload2shell write-up; oss-security thread on 10.08.0 | pwn.ai, oss-security | | 23 Nov 2026 | Neither CVE in the CISA KEV catalog | CISA 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](/tools/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](/tools/vulnerability-prioritizer) or the [SSVC calculator](/tools/ssvc-calculator), and watch its [EPSS score](/tools/epss-lookup) 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](/tools/case-triage). For the vendor records, see [Artifex (Ghostscript)](/breach-index/artifex) and [WordPress](/breach-index/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 - [CVE.org: CVE-2026-125396, Ghostscript before 10.08.0 -dSAFER bypass (CNA VulnCheck, 9 November 2026)](https://www.cve.org/CVERecord?id=CVE-2026-125396) - [Ghostscript releases: Ghostscript 10.08.0 (8 September 2026)](https://ghostscript.com/releases/) - [Ghostscript 10.08.0 release notes](https://ghostscript.readthedocs.io/en/gs10.08.0/News.html) - [Artifex ghostpdl commit 1484854: validate operands to .putgstringcopy](https://github.com/ArtifexSoftware/ghostpdl/commit/1484854e0c8ddfda1baa4ad4cd965b8a9790aa81) - [WordPress security advisory GHSA-8vr3-7mxf-gx8w (CVE-2026-65640, 12 August 2026)](https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-8vr3-7mxf-gx8w) - [WordPress 7.0.4 security release (12 August 2026)](https://wordpress.org/news/2026/08/wordpress-7-0-4-release/) - [CVE.org: CVE-2026-65640 (CNA HackerOne)](https://www.cve.org/CVERecord?id=CVE-2026-65640) - [Ubuntu USN-8949-1: Ghostscript vulnerabilities (21 October 2026)](https://ubuntu.com/security/notices/USN-8949-1) - [CISA Known Exploited Vulnerabilities catalog (version 2026.11.23)](https://www.cisa.gov/known-exploited-vulnerabilities-catalog) - [pwn.ai: upload2shell research (Paulos Yibelo, 21 November 2026)](https://pwn.ai/upload2shell/research.html) - [oss-security: Ghostscript 10.08.0 fixes multiple CVEs, including "upload2shell" (21 November 2026)](https://www.openwall.com/lists/oss-security/2026/11/22/1)