Ghostscript Type 1 use-after-free escapes -dSAFER (CVE-2026-125396)
Original title: Upload2Shell · CVE-2026-125396
Researchers confirmed command execution via Google, WordPress uploads, Debian CUPS, Roundcube thumbnails and other preview paths.
pwn.ai published Upload2Shell, a use-after-free in Ghostscript’s Type 1 font loader tracked as CVE-2026-125396 and Artifex Bug 709684. A crafted document can leave the -dSAFER sandbox and run attacker-chosen commands as the rendering process, including through ImageMagick conversion of files named like images. The team reported confirmed routes in Google, WordPress, Debian CUPS, Roundcube, Plesk and several plugins and wikis. Upstream Ghostscript 10.08.0 and Debian, Ubuntu, WordPress and Roundcube fixes are available; some case studies remain unpublished.
Unconfirmed: Criminal exploitation is not stated; Box, Zoom and two redacted routes lack published proofs here, and product PoCs are still being linked.
- Debian 13 fixed build is 10.05.1~dfsg-1+deb13u3; Ghostscript 10.08.0 entered Debian unstable.
- Ubuntu USN-8949-1 covers the font-loader finding on seven releases.
- WordPress shipped a separate fix as CVE-2026-65640; Roundcube hardened resizing under CVE-2026-114727.
- Debian CUPS proof ran an IPP job as lp; Roundcube’s ImageMagick delegate ran as www-data.
- A September 25 teaser also named Box, Dropbox and Zoom; two production routes stay redacted.
Impact: command execution as the rendering process
| Product | Affected | Fixed in |
|---|---|---|
| Artifex Ghostscript | — | 10.08.0 |
| Debian Ghostscript | Debian 13 | 10.05.1~dfsg-1+deb13u3 |
| Canonical Ghostscript | seven Ubuntu releases | — |
| WordPress Core | — | — |
| Roundcube | — | — |
- 1.Install upstream Ghostscript 10.08.0 or Debian 13 build 10.05.1~dfsg-1+deb13u3.
- 2.Apply Ubuntu packages from USN-8949-1.
- 3.Apply the WordPress CVE-2026-65640 fix and Roundcube’s CVE-2026-114727 image-type restrictions.
Vulnerabilities mentioned
All| CVE | Vulnerability | CVSS | EPSS | Signals | Published |
|---|---|---|---|---|---|
| CVE-2026-114727 | Unsafe SVG/EPS sent to ImageMagick in Roundcube Webmail | 8.3 | — | ||
| CVE-2026-125396 | -dSAFER bypass and code execution in Ghostscript before 10.08.0 | 8.5 | <1% | PoC ×2 | |
| CVE-2026-65640 | Author-Level RCE in WordPress Core via Malicious Postscript File Upload | 8.8 | 2% |
From the original article
8 min read at pwn.ai
A use-after-free in Ghostscript’s Type 1 font loader lets a crafted document cross Ghostscript’s -dSAFER sandbox, alter native path controls, and execute attacker-chosen commands as the rendering process. Ghostscript sits beneath print, email, upload, and preview workflows. Our ImageMagick research showed how files named .
By f311a · pwn.ai
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.