---
schema: 1
kind: vulnerability
title: "CVE-2026-125396, Ghostscript before 10.08.0 (Upload2Shell): a font-loader use-after-free breaks the -dSAFER sandbox, and pwn.ai reaches it from an anonymous print job, a viewed Roundcube attachment and public WordPress upload forms; fixed since 2026-09-08, no exploitation reported (CVSS 4.0 8.5)"
headline: "Ghostscript CVE-2026-125396: print jobs, Roundcube attachments and upload forms reach the sandbox escape; update"
summary: >
  Artifex fixed CVE-2026-125396 in Ghostscript 10.08.0 on 2026-09-08: a crafted PostScript or PDF document turns a use-after-free in the font loader into code execution outside the -dSAFER sandbox, scored CVSS 4.0 8.5 with a local vector. pwn.ai's writeup of 2026-11-21 shows that applications hand untrusted files to Ghostscript indirectly, and it reaches command execution from an anonymous print job to a shared CUPS queue, an emailed attachment viewed in Roundcube and public WordPress upload forms; no source reports exploitation, and only a partial proof of concept is public. Debian and Ubuntu ship fixed packages, and a host update does not reach a copy of Ghostscript bundled in a container image or application.
discovered_at: "2026-11-23T04:37:00Z"
updated_at: null
event_date: "2026-11-21"
run_id: 2026-11-23T0355Z-intel
priority: notable
immediate_action: null
tags: [vulnerabilities, rce, pre-auth, patch-available]
regions: [global]
sectors: [technology]
entities: ["tool:upload2shell", "product:ghostscript", "product:cups", "product:wordpress"]
techniques: [T1190, T1566.001, T1059.004, T1211]
affected_products: ["Ghostscript", "Roundcube Webmail", "CUPS", "WordPress", "Forminator", "Essential Addons for Elementor", "ImageMagick"]
cves:
  - id: CVE-2026-125396
    cvss: "8.5 (CVSS 4.0)"
    epss: null
    type: rce
    vector: zero-click
    auth: pre-auth
    status: [patch-available]
    affected: "Ghostscript before 10.08.0"
    fixed: "10.08.0 (2026-09-08); Debian 12 10.0.0~dfsg-11+deb12u9, Debian 13 10.05.1~dfsg-1+deb13u2; Ubuntu per USN-8949-1"
sources:
  - url: "https://pwn.ai/upload2shell/research.html"
    publisher: "pwn.ai (Upload2Shell research)"
    date: "2026-11-21"
    role: primary
  - url: "https://www.vulncheck.com/advisories/ghostscript-before-10.08.0-dsafer-bypass-via-putgstringcopy-forceput-recovery"
    publisher: "VulnCheck advisory (CVE record text)"
    date: "2026-11-09"
    role: corroborating
  - url: "https://thehackernews.com/2026/11/researchers-demonstrate-ghostscript.html"
    publisher: "The Hacker News"
    date: "2026-11-22"
    role: corroborating
  - url: "https://security-tracker.debian.org/tracker/CVE-2026-125396"
    publisher: "Debian Security Tracker"
    date: "2026-11-23"
    role: corroborating
closed_sources: []
evidence:
  - quote: "was fixed on September 8, and there have been no reports of it being used in attacks."
    publisher: "The Hacker News"
    source_url: "https://thehackernews.com/2026/11/researchers-demonstrate-ghostscript.html"
  - quote: "An attacker only had to send a crafted email to someone using the Roundcube server and have the recipient view the message."
    publisher: "pwn.ai"
    source_url: "https://pwn.ai/upload2shell/research.html"
  - quote: "Requiring authentication on the queue blocked the unauthenticated submission."
    publisher: "pwn.ai"
    source_url: "https://pwn.ai/upload2shell/research.html"
  - quote: "which calls the privileged .forceput operator without checking operand types"
    publisher: "VulnCheck"
    source_url: "https://www.vulncheck.com/advisories/ghostscript-before-10.08.0-dsafer-bypass-via-putgstringcopy-forceput-recovery"
verification: multi-source
sourcing_note: >
  The flaw, the fixed release and the Debian status are corroborated by the CVE record text (VulnCheck, the CNA) and Debian's tracker; the application chains and the reachability claims are pwn.ai's own test results as the single discoverer, which The Hacker News restates without independent testing. The Ubuntu fixed versions and the Amazon Linux and SUSE status are pwn.ai's reading as of 2026-11-12 and were not re-checked.
confidence: medium
references: []
deep_dive: false
deep_dive_category: null
org_triage: null
classification:
  reliability: B
  credibility: 2
watchlist_hit: false
actions:
  - "Update Ghostscript to 10.08.0 or a distribution build that carries the CVE-2026-125396 fix (Debian 12 10.0.0~dfsg-11+deb12u9, Debian 13 10.05.1~dfsg-1+deb13u2, Ubuntu per USN-8949-1) on every Roundcube mail server, CUPS print server and web server with public upload forms, and rebuild the container images that bundle their own copy, because pwn.ai reached the sandbox escape from an anonymous print job, a viewed email attachment and public upload forms, and a host package update does not reach a bundled copy."
updates: []
migrated_from: null
---

Artifex fixed CVE-2026-125396 in Ghostscript 10.08.0 on 2026-09-08 ([The Hacker News, 2026-11-22](https://thehackernews.com/2026/11/researchers-demonstrate-ghostscript.html)). The CVE record says the `.putgstringcopy` procedure in the font loader calls the privileged `.forceput` operator without checking operand types, so a crafted PostScript or PDF document triggers a type error, recovers `.forceput` through a custom error handler and causes a use-after-free across save and restore that executes arbitrary code; VulnCheck scores it CVSS 4.0 8.5 with a local attack vector ([VulnCheck, 2026-11-09](https://www.vulncheck.com/advisories/ghostscript-before-10.08.0-dsafer-bypass-via-putgstringcopy-forceput-recovery)). pwn.ai's writeup of 2026-11-21 shows the flaw is reachable from the network because applications pass untrusted files to Ghostscript indirectly, through ImageMagick, Pillow, libvips or a print filter, even when the file is named like an image or a PDF ([pwn.ai, 2026-11-21](https://pwn.ai/upload2shell/research.html); [The Hacker News, 2026-11-22](https://thehackernews.com/2026/11/researchers-demonstrate-ghostscript.html)).

pwn.ai ran a command as the rendering account through an anonymous IPP print job to a shared CUPS queue on Debian 13 (as the `lp` user), through an emailed attachment declared as a JPEG but holding PostScript that a Roundcube 1.7.2 user only had to view, with a permissive ImageMagick delegate required (as `www-data`), and through public WordPress upload forms in Forminator, a public PDF field storing to the Media Library, and in Essential Addons for Elementor, a public registration widget with an upload field ([pwn.ai, 2026-11-21](https://pwn.ai/upload2shell/research.html)). WordPress closed its own upload path in 7.0.4 on 2026-08-12 under CVE-2026-65640, a different point in the same chain ([The Hacker News, 2026-11-22](https://thehackernews.com/2026/11/researchers-demonstrate-ghostscript.html)). No source reports exploitation, and the one published proof-of-concept file shows only the core memory trick and fails on 10.08.0 ([The Hacker News, 2026-11-22](https://thehackernews.com/2026/11/researchers-demonstrate-ghostscript.html)).

Debian's tracker lists fixed packages for bookworm (10.0.0~dfsg-11+deb12u9), trixie (10.05.1~dfsg-1+deb13u2) and unstable ([Debian Security Tracker, 2026-11-23](https://security-tracker.debian.org/tracker/CVE-2026-125396)). pwn.ai records Ubuntu fixes for seven releases in USN-8949-1 of 2026-10-21, a notice that predates the CVE assignment and carries no CVE number, and, as of 2026-11-12, Amazon Linux fixes pending and several SUSE branches affected or in progress ([pwn.ai, 2026-11-21](https://pwn.ai/upload2shell/research.html)). Updating the host does not update a separate copy of Ghostscript bundled inside a container image or an application ([The Hacker News, 2026-11-22](https://thehackernews.com/2026/11/researchers-demonstrate-ghostscript.html)).

**Exposure:** Ghostscript before 10.08.0, or a distribution package without the backport, on a host that renders untrusted files: a mail server that thumbnails attachments, a CUPS server with a shared queue that takes jobs without credentials, or a web server with public upload forms that build image previews ([pwn.ai, 2026-11-21](https://pwn.ai/upload2shell/research.html)). Read the package version, and note that a distribution backport can fix the flaw under an older version number ([pwn.ai, 2026-11-21](https://pwn.ai/upload2shell/research.html)).

**Detection:** a shell or other unexpected child process of the Ghostscript renderer running as the web-service or print account is the sign of success, since the proof ran its command through Ghostscript's pipe device ([pwn.ai, 2026-11-21](https://pwn.ai/upload2shell/research.html)). Delivery looks like a mail attachment or upload whose declared type or extension (image/jpeg, .jpg, .png, .pdf) holds PostScript, or an anonymous Print-Job request to a shared CUPS queue ([pwn.ai, 2026-11-21](https://pwn.ai/upload2shell/research.html)). In one test an AppArmor profile stopped the compromised interpreter from starting a shell ([The Hacker News, 2026-11-22](https://thehackernews.com/2026/11/researchers-demonstrate-ghostscript.html)).

**Defender takeaway:** update Ghostscript wherever untrusted files reach it, mail, print and upload servers first and bundled container copies included; until then require authentication on shared print queues and limit the file types image processors accept ([The Hacker News, 2026-11-22](https://thehackernews.com/2026/11/researchers-demonstrate-ghostscript.html)).
