Ghostscript “Upload2Shell” CVE-2026-125396: the font loader that walked out of -dSAFER
Ghostscript is the PostScript and PDF interpreter hiding under a lot of upload forms, mail thumbnails and print queues. CVE-2026-125396, a -dSAFER sandbox bypass in its font-loading code, was fixed upstream in Ghostscript 10.08.0 on September 8, 2026, got its CVE on November 9, and got its full write-up and the nickname “Upload2Shell” from researcher Paulos Yibelo of pwn.ai on November 17. the patch is old news. whether your servers have it is the news. the researcher says several vendor trackers still listed unpatched packages as late as November 12.
.forceput through a custom error handler, and “cause a use-after-free across save/restore to execute arbitrary code.” Artifex tracked it as bug 709684, titled “Type 1 font-loader .forceput save/restore UAF”. The fix, commit 1484854e by Ken Sharp, is dated September 2, 2026 and shipped in Ghostscript 10.08.0 on September 8, 2026. The CVE record credits Paulos Yibelo and pwn.ai as finders and Ken Sharp for the fix.the exact condition, no inflation
- what triggers it: Ghostscript interpreting a crafted PostScript or PDF document. that is it. no special Ghostscript option is named as a requirement, and the record says the bypass works against
-dSAFER, the sandbox mode that has been Ghostscript’s default since 9.50. - what the attacker gets: code execution as whatever account runs Ghostscript. on a web server that is usually the web user, on a print server it is the print filter’s account. not root by itself.
- why “local” scores and remote headlines both exist: VulnCheck scores it attack vector Local with user interaction, because Ghostscript processes a file it is handed. it becomes remote only when an application hands Ghostscript a file from someone outside. that part is about your application path, not the bug.
- the disguised image angle: ImageMagick can pass files to Ghostscript based on their content rather than their name, so a file called
.pngor.jpgcan still end up in the PostScript interpreter if your ImageMagick policy allows those coders. pwn.ai documented this in earlier ImageMagick research and again here.
where the researcher says it reached (their tests, their words)
these are pwn.ai’s reported results, not independent confirmation. each one depended on a specific setup, and pwn.ai lists most case studies and proofs as not yet published.
- Debian 13 CUPS: an anonymous IPP print job to a shared network queue that accepted jobs without authentication ran a command on the print server as the
lpuser, on Ghostscript 10.05.1~dfsg-1+deb13u1 (before Debian’s fix). a queue you never shared, or one that requires authentication, changes that picture. - Roundcube: remote execution as
www-datawhen a recipient viewed an email whose attachment was thumbnailed, with a permissive ImageMagick delegate setup in the tested build. Roundcube separately stopped passing SVG and EPS into ImageMagick on image resize in 1.6.20 and 1.7.5 (CVE-2026-114727). - WordPress: WordPress 7.0.4 (August 12, 2026, backported to 4.7 and later branches) fixed CVE-2026-65640, which WordPress describes as remote code execution via malicious PostScript upload by an Author-level user or higher on sites with Imagick and Ghostscript in use. pwn.ai also reports signed-out routes through specific plugin upload forms (Forminator, Essential Addons for Elementor) when those forms are configured to accept uploads.
- Google: pwn.ai says a signed-out request for an attacker-hosted file reached Ghostscript in a Google image and document processing pipeline, and that Google mitigated that path on November 10, 2026. Google has not published its own statement that we could find.
- others they list: MediaWiki with PdfHandler on a wiki configured for anonymous PDF uploads, DokuWiki with its optional ImageMagick backend, Mayan EDMS, ResourceSpace and the Roundcube shipped in Plesk Obsidian, plus source-traced (not exploited) paths in tools like Paperless-ngx and several image-upload apps.
scores, status, and who gave them
- VulnCheck (the CNA): CVSS 3.1 7.8 High,
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H; CVSS 4.0 8.5 High. CWE-648, incorrect use of privileged APIs. - NVD: “Awaiting Analysis,” no NIST score yet.
- CISA (SSVC on the CVE record, November 10): exploitation “none,” automatable “no,” technical impact “total.”
- CISA KEV: not listed as of catalog 2026.11.20. we found no report of exploitation in the wild.

affected and fixed
- upstream: every Ghostscript (GhostPDL) release before 10.08.0 is listed as affected. fixed in 10.08.0, released September 8, 2026.
- Debian: Debian 12 bookworm fixed in 10.0.0~dfsg-11+deb12u9 (DLA-4914-1); Debian 13 trixie fixed in 10.05.1~dfsg-1+deb13u2 (DSA-6516-1), current build deb13u3; forky and sid on 10.08.0.
- Ubuntu: USN-8949-1 (October 21, 2026) credits Paulos Yibelo for a font operand validation sandbox bypass, listed as “No CVE number” because it predates the CVE, with fixed packages for 26.10, 26.04 LTS (10.06.0~dfsg-3ubuntu1.2), 24.04 LTS (10.02.1~dfsg1-0ubuntu7.10), 22.04 LTS (9.55.0~dfsg1-0ubuntu5.15) and Pro releases back to 16.04. pwn.ai says that entry is this bug. Ubuntu’s own CVE-2026-125396 page still read “Needs evaluation” when last updated November 18, so treat the mapping as likely, not Ubuntu-confirmed.
- Red Hat and friends: Red Hat had no published page for this CVE when we checked. pwn.ai says it could not establish the status of RHEL, Rocky, AlmaLinux, Oracle Linux or stable Fedora, and reported Amazon Linux as pending fix and several SUSE branches as affected or in progress as of November 12. check your vendor’s tracker for this exact CVE.
- containers and bundles: a host update does not patch a Ghostscript copy baked into a container image, a document worker or an app bundle. those need their own rebuilds.
what to do today
- inventory.
gs --versionon every host, then the package build (dpkg -l 'libgs*' ghostscriptorrpm -q ghostscript), then go find the copies the package manager does not know about: containers,/opt, document-processing workers. - patch to Ghostscript 10.08.0 or your distro’s fixed build, and rebuild images that bundle it.
- shrink the path in. if a server does not need ImageMagick to render PostScript, EPS, PDF or XPS, disable those coders in
policy.xml. it breaks PDF thumbnails, so test first. this is defense in depth, not a fix: pwn.ai’s own earlier research targeted ImageMagick policies, so patch Ghostscript either way. - print servers: unshare queues nobody needs, require authentication for job submission, and keep tcp/631 off networks that do not need it.
- apps: update WordPress (7.0.4 or a backport) and Roundcube (1.6.20 or 1.7.5), and review any plugin or form that lets signed-out visitors upload files.


download the Kali defensive checks
ghostscript-125396-defensive-check.zip contains three defensive scripts with the fixed versions baked in. gs-125396-version-check.sh prints gs --version, compares Debian and Ubuntu packages against the published fixed builds, and lists other gs and libgs copies on the box. imagemagick-gs-policy-harden.sh reports whether the Ghostscript-backed coders are disabled and, only with --apply, backs up policy.xml and adds the coder policy. cups-shared-queue-check.sh reads your CUPS config and listeners and flags shared, unauthenticated queues. none of them exploit anything, and none of them prove or disprove compromise.
sloth take
Ghostscript is plumbing, and nobody inventories plumbing until it floods. the fix has been out since September, but the paths into it run through image thumbnails, mail previews, print queues and upload forms that most teams do not think of as “running a PostScript interpreter.” no exploitation has been reported and it is not on KEV, which means this is the calm window. use it. patch the interpreter, then go find the copies hiding in containers. slowly, but this week.
sources
- CVE-2026-125396 record (VulnCheck CNA, published November 9, 2026) and NVD CVE-2026-125396
- VulnCheck, Ghostscript before 10.08.0 -dSAFER Bypass via .putgstringcopy .forceput Recovery
- Artifex, Ghostscript bug 709684, fix commit 1484854e and Ghostscript 10.08.0 release notes (September 8, 2026)
- Debian, security tracker CVE-2026-125396 (DSA-6516-1, DLA-4914-1)
- Ubuntu, USN-8949-1 (October 21, 2026) and Ubuntu CVE page
- WordPress, WordPress 7.0.4 release (CVE-2026-65640); Roundcube CVE-2026-114727
- Paulos Yibelo / pwn.ai, “Upload2Shell” disclosure and technical write-up (November 17, 2026). not linked here because the write-up includes proof-of-concept material.
While you’re here, check your own front door
Reading about someone else’s bad week is a good time to glance at your own exposure. Dark Edge Consulting runs a Free External Security Snapshot: a passive, no-touch look at your domain, email, and website, graded A to F with the fixes spelled out. No login, nothing scanned on your side, just what attackers already see from the outside.
See what attackers see from the outside →
Rather talk it through with a human? Book a strategy call →
