---
title: Upload2Shell (CVE-2026-125396): a Ghostscript font-loader use-after-free lets a crafted file escape -dSAFER and run commands wherever uploads, mail previews or print jobs reach Ghostscript; fixed in 10.08.0 | ctxsec
url: https://ctxsec.com/items/ghostscript-upload2shell-cve-2026-125396-font-loader-uaf-dsafer-bypass-rce-via-image-uploads-roundcube-wordpress-cups-fixed-10-08-0
description: "Researcher Paulos Yibelo (pwn.ai) published details of CVE-2026-125396, a use-after-free in Ghostscript's Type 1 font loader: a crafted PostScript or PDF document can trigger a type error in the .putgstringcopy helper, recover the privileged .forceput operation, and get arbitrary native memory writes that switch off the -dSAFER sandbox. Artifex fixed it on Sep 2 by validating the helper's operands, and the fix shipped in Ghostscript 10.08.0; an Oracle engineer flagged on oss-security on Nov 21 that the CVE is now public. pwn.ai shows the bug reached through ordinary features: a Roundcube server ran its command when a recipient merely viewed an email with a PostScript file disguised as a .jpg, WordPress upload previews via Imagick (fixed separately in WordPress 7.0.4 as CVE-2026-65640), and an unauthenticated print job to a shared CUPS queue on Debian 13. pwn.ai says its wider Ghostscript research also reached Google, Dropbox and other production services, though some of those findings stem from different bugs. Debian has fixed packages for Bookworm (DLA-4914-1) and Trixie (DSA-6516-1); Ubuntu shipped fixes in USN-8949-1 in October, before the CVE was assigned. pwn.ai lists Amazon Linux and some SUSE lines as still pending as of Nov 12. No in-the-wild exploitation has been reported."
status: "official (Artifex fix commit and Debian tracker; researcher write-up by pwn.ai; oss-security notice Nov 21, 2026); no in-the-wild exploitation reported"
published: 2026-11-21
---

> Researcher Paulos Yibelo (pwn.ai) published details of CVE-2026-125396, a use-after-free in Ghostscript's Type 1 font loader: a crafted PostScript or PDF document can trigger a type error in the .putgstringcopy helper, recover the privileged .forceput operation, and get arbitrary native memory writes that switch off the -dSAFER sandbox. Artifex fixed it on Sep 2 by validating the helper's operands, and the fix shipped in Ghostscript 10.08.0; an Oracle engineer flagged on oss-security on Nov 21 that the CVE is now public. pwn.ai shows the bug reached through ordinary features: a Roundcube server ran its command when a recipient merely viewed an email with a PostScript file disguised as a .jpg, WordPress upload previews via Imagick (fixed separately in WordPress 7.0.4 as CVE-2026-65640), and an unauthenticated print job to a shared CUPS queue on Debian 13. pwn.ai says its wider Ghostscript research also reached Google, Dropbox and other production services, though some of those findings stem from different bugs. Debian has fixed packages for Bookworm (DLA-4914-1) and Trixie (DSA-6516-1); Ubuntu shipped fixes in USN-8949-1 in October, before the CVE was assigned. pwn.ai lists Amazon Linux and some SUSE lines as still pending as of Nov 12. No in-the-wild exploitation has been reported.

[← Cybersecurity News](/news) · [markdown](/items/ghostscript-upload2shell-cve-2026-125396-font-loader-uaf-dsafer-bypass-rce-via-image-uploads-roundcube-wordpress-cups-fixed-10-08-0.md)

official (Artifex fix commit and Debian tracker; researcher write-up by pwn.ai; oss-security notice Nov 21, 2026); no in-the-wild exploitation reported

2026-11-21 7:40 PM ET

### Upload2Shell (CVE-2026-125396): a Ghostscript font-loader use-after-free lets a crafted file escape -dSAFER and run commands wherever uploads, mail previews or print jobs reach Ghostscript; fixed in 10.08.0

- **Patch:** Ghostscript 10.08.0 or your distro's fixed package (Debian 12 10.0.0~dfsg-11+deb12u9, Debian 13 10.05.1~dfsg-1+deb13u2 or later, Ubuntu per USN-8949-1). Check containers and bundled copies, not just the host.
- **Exposed:** anything that thumbnails or converts untrusted files with ImageMagick/Imagick or Ghostscript (webmail, CMS media libraries, document previews), and CUPS queues that accept unauthenticated jobs.
- See the tip and hunt below, and the playbook.

Sources: [pwn.ai (Paulos Yibelo): How We Hacked the Pipes, Upload2Shell, CVE-2026-125396 (dated Nov 17, 2026)](https://pwn.ai/upload2shell/research.html) · [oss-security (Alan Coopersmith, Oracle): Ghostscript 10.08.0 fixes multiple CVEs, including upload2shell (Nov 21, 2026)](https://www.openwall.com/lists/oss-security/2026/11/21/2) · [Artifex ghostpdl commit 1484854: PS interpreter - validate operands to .putgstringcopy (Bug #709684, Sep 2, 2026)](https://github.com/ArtifexSoftware/ghostpdl/commit/1484854e0c8ddfda1baa4ad4cd965b8a9790aa81) · [Debian security tracker: CVE-2026-125396 (DSA-6516-1, DLA-4914-1)](https://security-tracker.debian.org/tracker/CVE-2026-125396)
