Upload2Shell (CVE-2026-125396): Ghostscript Type 1 Font Loader Use-After-Free and the 10.08.0 Fix

Upload2Shell is a use-after-free in Ghostscript's Type 1 font loader that lets a crafted document cross Ghostscript's -dSAFER sandbox, alter native path controls, and execute attacker-chosen commands as the rendering process. It was published as CVE-2026-125396 on 9 November 2026, and Ghostscript 10.08.0 is the upstream release that fixes it.

The finding matters because Ghostscript sits beneath print, email, upload, and preview workflows that most applications never expose directly. The researchers behind the disclosure state that their earlier ImageMagick research showed how files named .png or .jpg can still reach Ghostscript through image conversion.

What the vulnerability actually is

Upload2Shell is a use-after-free in Ghostscript's Type 1 font loader. A crafted document that reaches the font loader gains native access inside the rendering process, which allows it to alter native path controls and run commands chosen by the attacker under the identity of the process doing the rendering.

The flaw defeats Ghostscript's -dSAFER sandbox, the mechanism Ghostscript uses to restrict file and command access when processing untrusted documents. The researchers describe the escape as reaching "native access inside the rendering process" after crossing the -dSAFER boundary.

Disclosure timeline

The disclosure ran from discovery on 27 July 2026 to CVE publication on 9 November 2026, with vendor reports concentrated on 17–18 September 2026.

Date Event
27 Jul 2026 Discovery of the Type 1 font-loader path out of Ghostscript's -dSAFER boundary
By 30 Jul 2026 Production proof sent to Google after a signed-out request for an attacker-hosted file reached Ghostscript in Google's document renderer
12 Aug 2026 WordPress shipped its separate CVE-2026-65640 fix
By 02 Sep 2026 Filed upstream with Artifex as Bug 709684
08 Sep 2026 Upstream Ghostscript release
By 09 Sep 2026 Dropbox production document-processing finding confirmed (separate case study)
12 Sep 2026 Ghostscript 10.08.0 entered Debian unstable
17 Sep 2026, 23:53 ET Debian 13 CUPS report sent to Debian Security
18 Sep 2026, 00:25–00:30 ET Roundcube, Plesk, Elementor, Forminator, Mayan EDMS, DokuWiki and Wikimedia reports sent
By 18 Sep 2026 ResourceSpace confirmed
By 25 Sep 2026 Two further production routes confirmed and redacted
25 Sep 2026 Debian published its first stable-security Ghostscript update
10 Oct 2026 Debian published 10.05.1~dfsg-1+deb13u3, marked fixed for Upload2Shell
19 Oct 2026 Roundcube hardened image resizing under CVE-2026-114727
21 Oct 2026 Ubuntu published USN-8949-1 with fixed packages for seven releases
06 Nov 2026 CVE assignment requested
09 Nov 2026 CVE-2026-125396 published
10 Nov 2026 Google mitigated the affected production path

On 25 September 2026 the researchers published a teaser stating:

We have found one zeroday that preauth RCE'd Debian 13, Google, Roundcube, Plesk, Wikimedia, Box, Dropbox, Zoom, Forminator, Elementor, WordPress Core, among many more. Details soon!

Which products were confirmed exploitable

The first ten entries in the researchers' evidence index record confirmed Upload2Shell execution. Each entry below lists the access condition and the observed command context as published.

Product Version tested Access required Observed result
Debian 13 CUPS Ghostscript 10.05.1~dfsg-1+deb13u1 Anonymous IPP Print-Job to a shared network queue Command on the host as uid=7(lp)
Roundcube 1.7.2, Ghostscript 10.05.1 External sender; recipient views message; tested ImageMagick delegate required Command as uid=33(www-data); no attachment click
Forminator 1.55.1, WordPress 7.0.2, Ghostscript 10.05.1 Signed-out public PDF form with Media Library storage enabled Command as uid=33(www-data)
Essential Addons for Elementor Lite 6.7.0, Elementor 4.2.0, WordPress 7.0.2, Ghostscript 10.05.1 Signed-out public Login/Register widget with a configured upload field Command as uid=33(www-data)
MediaWiki + PdfHandler 1.46.0, Ghostscript 10.05.1 Anonymous PDF upload and thumbnail on a site configured for anonymous uploads Command as uid=33(www-data)
DokuWiki 2026-07-14a, Ghostscript 10.05.1 Open wiki; anonymous upload and resize; optional ImageMagick backend Command as uid=33(www-data)
Mayan EDMS 4.11.5 official image, Ghostscript 10.05.1 External email to a configured POP3 document source Command as uid=1000 inside the application container
ResourceSpace 11.0 r29423, Ghostscript 10.05.1 Authenticated upload or valid upload-share capability Command in the preview worker
WordPress Core 7.0.0–7.0.3, 6.9.0–6.9.6 and earlier branches upload_files capability: Author+ by default, or a Contributor granted it; Imagick and Ghostscript required Remote code execution confirmed by WordPress; exact delegate ran as uid=33
Plesk Obsidian 18.0.79, Roundcube 1.6.17, Ghostscript 9.54.0 Roundcube thumbnail path in the Plesk distribution Command as uid=995(roundcube_sysuser) in 5/5 direct component trials

For Plesk, the researchers note that AppArmor blocked the shell in an enforced test and that the deployed endpoint was not tested.

WordPress Core: CVE-2026-65640

WordPress Core is affected through its upload path, which exposes the renderer to Author+ users and to any Contributor granted the upload_files capability. The researchers also state that public upload fields in multiple plugins required no WordPress login at all.

WordPress shipped its own fix under CVE-2026-65640 on 12 August 2026, separate from the Ghostscript root cause. The advisory covers WordPress 7.0.0–7.0.3, 6.9.0–6.9.6, and earlier branches. The local renderer used for testing was WordPress 6.9.4 with Ghostscript 10.05.1, and the researchers report 10/10 exact renderer trials.

Production services affected

Google's image and document processing pipeline was confirmed reachable with Ghostscript 10.05.0. A signed-out request for an attacker-hosted file reached Ghostscript in Google's document renderer, and the observed impact was native renderer control plus a bounded worker file read. Google mitigated the affected path on 10 November 2026.

Dropbox was confirmed to have a production document-processing finding in the same broader Ghostscript research, but the researchers state that its individual root and proof belong to a separate case study. Two further production routes are listed as redacted, with their access paths, roots, and proofs reserved for their own case studies.

Fixes and patched versions

Ghostscript 10.08.0 is the upstream release that fixes Upload2Shell. Distribution and application fixes followed:

  • Debian: Ghostscript 10.08.0 entered Debian unstable on 12 September 2026. Debian published its first stable-security Ghostscript update on 25 September 2026, and the current fixed Debian 13 security build is 10.05.1~dfsg-1+deb13u3, published 10 October 2026.
  • Ubuntu: USN-8949-1, published 21 October 2026, included the font-loader finding and fixed package versions for seven Ubuntu releases, including Ubuntu Pro and Legacy branches. The notice described the font-loader finding before the CVE number was assigned.
  • WordPress: fixed the Author+ upload path under CVE-2026-65640.
  • Roundcube: restricted unsafe attachment image types before ImageMagick conversion under CVE-2026-114727 on 19 October 2026.
  • Google: mitigated the affected image and document processing path on 10 November 2026.

Applications that reach Ghostscript indirectly

Beyond the confirmed exploitable entries, the researchers traced additional applications whose renderers route to Ghostscript or to Pillow-based image processing. These are source-mapped paths rather than confirmed executions, and the researchers label them as such.

  • Gradio 6.32.0 (Pillow 13.0.0, Ubuntu 24.04, Ghostscript installed): image submission to an unauthenticated gr.Image app; HTTP preprocessing loaded EPS bytes named .png through Pillow, and gs -dSAFER started before the app function ran. This is recorded as a live HTTP-to-Ghostscript handoff.
  • InvokeAI (source revision 5921fd6e): single-user image upload with no login on a reachable service; upload calls Pillow Image.open() and load().
  • AUTOMATIC1111 Stable Diffusion WebUI (source revision 82a973c0, Gradio 3.41.2, Pillow 9.5.0): shared img2img upload, login only if configured; Gradio image preprocessing converts pixels through Pillow.
  • ComfyUI (source revision 0263e488): image upload and preview on a reachable service; preview opens and converts the uploaded file with Pillow.
  • Frappe / ERPNext (source revision 2bf593fd): image upload with an account, or as a guest when enabled; image optimization calls Pillow thumbnail processing.
  • Home Assistant Core (source revision e87199c7, image upload integration): account image upload and public thumbnail endpoint; thumbnail loads and resizes through Pillow.
  • CVAT (source revision b976874b): task-data upload with an account; frame worker calls Pillow Image.open().load().
  • Paperless-ngx (source revision bcfdfcaa, official image includes Ghostscript): email attachment through a configured inbox; PDF/A conversion calls Ghostscript directly. Listed as a source candidate.
  • django-filer (source revision 42ab4a73): authenticated django-filer image upload; image model opens the file with Pillow.

Why Ghostscript keeps producing this class of bug

The core structural problem is that PostScript is a full programming language, and running a programming language inside a secure sandbox is hard. Ghostscript's -dSAFER mode is a pseudo-sandbox rather than an operating-system-level isolation boundary, and it has failed repeatedly.

Hacker News commenter hannob framed the issue this way:

It's been known for a while, and certainly long before the recent AI vuln flood, that ghostscript is really problematic in terms of security. Ultimately, postscript is its own programming language, and executing a programming language in a secure, sandboxed way is not trivial. ghostscript has only a very poor pseudo sandbox that fails regularly. Unfortunately, ghostscript is the only implementation of postscript that's out there. All of that would matter much less if people only used it to parse postscript. But it's used indirectly by imagemagick (you can disable it), which means many people using imagemagick to parse images from untrusted sources get exposed to ghostscript's poor security.

baggy_trough summarized the practical consequence bluntly:

If you want to use Ghostscript in a secure manner, you're going to have a bad time.

Ghostscript is also widely deployed and, as commenter rietta noted, is AGPL-licensed:

ghostscript is everywhere. It's also AGPL, which I am not certain is commonly understood.

Ghostscript's security history is long enough to have produced notable incidents. Commenter Dwedit recalled one:

A GhostScript bug (from a very outdated version) famously led to the compromise of 4chan.

The proposed mitigation: sandbox the renderer, not just the interpreter

The recurring recommendation in the discussion is to treat document renderers as untrusted code and confine them with operating-system primitives rather than relying on the renderer's own sandbox. Commenter megous argued for exactly that:

ghostscript, imagemagick, ffmpeg, etc. etc. all these passthrough data in data out programs that don't need much of anything from the system, I'd think people would run them with untrusted input in a tight whitelist based seccomp+landlock sandbox. it's a bit annoying if they are not statically compiled, due to ld.so loading libraries, but possible.

A related question raised by dvh is whether the industry will address the underlying accumulation of legacy code rather than patching one CVE at a time:

Do you think people will finally start removing decade old cruft from libraries and/or start creating single purpose minimal libraries? Or will the defense be just reactionary and on per cve basis?

Counterpoint: the blast radius of the reported RCEs

Not every reader accepted the framing of the disclosure. Commenter varenc questioned how much the reported remote code executions actually demonstrate, arguing that document rendering services are expected to be sandboxed beyond Ghostscript's own boundary:

I'm dubious of some of the claims in the timeline. I have no doubt they found an RCE vuln, but people know that your document rendering service should be sandboxed (beyond Ghostscript's sandbox). So it's a bit disingenuous not to acknowledge that their RCEs for companies like Google and Dropbox almost certainly only get them into tightly sandboxed servers that lacked any sensitive access, exactly for this reason.

The researchers' own evidence is consistent with a bounded impact in at least one case: the Google finding is described as "native renderer control and a bounded worker file read," and Google's fix is described as a mitigation of the affected path rather than a full compromise.

Criticism of the writeup and the vulnerability name

The Hacker News thread was as critical of the presentation as of the technical content. Commenter dabinat wrote:

This seems like important information but this page is completely unreadable.

int0x29 objected specifically to the timeline format:

That timeline is unreadable. Just say what was found impacted when with versions along with patch dates and versions. I don't need to know about case studies that will hypothetically be written. I don't need little blurbs under everything. "What we said" should instead be "publicly disclosed." Honestly the whole thing should be a table so you can group the different bits of the timeline for different software/services by software/service rather than time.

The name drew repeated criticism. derac wrote:

this name is god awful. ask an llm to name your thing or something

freecodeio called the title "clickbait," and philipwhiuk argued the name should have referenced the actual component:

Weird title. Feels like it should be GhostScript2Shell. And the disclosure process is problematic if it's all the same issue.

Others treated the naming convention as a non-issue. topranks wrote:

Seems like they did the right thing disclosure wise anyway. Who cares about the name all bugs get stupid names.

Alternative names proposed in the thread included "Shell In The Ghost" (dgacmu) and "Stairway2Shell" (layer8).

What remains unresolved

The researchers state that they found several other Ghostscript issues with lower or comparable impact and reported them upstream, and that the Dropbox finding and two redacted production routes will be published as separate case studies. They also expect further affected software to surface, writing that Ghostscript "sits beneath more file-processing features than most applications expose directly" and that additional software reaching the vulnerability through uploads, thumbnails, print jobs, and document imports is likely to be found.

The practical takeaway for operators is that patching Ghostscript to 10.08.0 or to a distribution backport is necessary but not sufficient on its own: the confirmed exploitation paths ran through application-level upload, thumbnail, print, and email-import features that accepted untrusted files from unauthenticated or low-privilege users.

Sources