Skip to content
NewA calmer, faster ZeroHour

Ghostscript Type 1 use-after-free escapes -dSAFER (CVE-2026-125396)

Original title: Upload2Shell · CVE-2026-125396

Hacker News · securityby f311a ()8 min read1
Part of a story covered by 5 sourcesGhostscript Upload2Shell lets crafted uploads escape the sandboxMerged summary & timeline
AI summary · x-ai/grok-4.7Summaries by Vani AI

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.

Key facts
  • 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.
Security assessment · AI, from the article

Impact: command execution as the rendering process

ProductAffectedFixed in
Artifex Ghostscript—10.08.0
Debian GhostscriptDebian 1310.05.1~dfsg-1+deb13u3
Canonical Ghostscriptseven Ubuntu releases—
WordPress Core——
Roundcube——
What to do
  1. 1.Install upstream Ghostscript 10.08.0 or Debian 13 build 10.05.1~dfsg-1+deb13u3.
  2. 2.Apply Ubuntu packages from USN-8949-1.
  3. 3.Apply the WordPress CVE-2026-65640 fix and Roundcube’s CVE-2026-114727 image-type restrictions.
Analyze CVE-2026-125396 with Vani AIImpact, affected versions, exploitation, mitigations and detection

Vulnerabilities mentioned

All
CVEVulnerabilityCVSSEPSSSignalsPublished
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.82%

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 .

Hacker News · security

By f311a · pwn.ai

Read the full article at Hacker News · security

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.