Ghostscript sandbox escape lets uploads run commands on servers
Security researchers at pwn.ai disclosed CVE-2026-125396, a flaw in Ghostscript's Type 1 font loader that lets a crafted document escape the -dSAFER sandbox and run attacker-chosen commands as the process rendering the file. They confirmed it end to end: an anonymous print job sent to a shared network queue executed on a Debian 13 host as the lp user, and they reproduced the escape in 20 of 20 local conversions. Because Ghostscript sits under printing, email thumbnailing, image conversion and document preview, the same flaw was traced into WordPress (Author-level uploads, plus public upload fields in plugins), Roundcube, MediaWiki, Plesk's Roundcube thumbnailer and several other apps. Fixes are available: Ghostscript 10.08.0 upstream, Debian's 10.05.1~dfsg-1+deb13u3 security build, and Ubuntu packages for seven supported releases on 21 October 2026. WordPress shipped its own fix under CVE-2026-65640 and Roundcube restricted unsafe attachment image types under CVE-2026-114727. The researchers say individual case studies and proofs of concept will be published later, so not every affected product has a public reproduction yet.
Anyone running Ghostscript on a server that accepts files from outside — print queues, mail gateways, CMS uploads, thumbnail services — should upgrade to the fixed package for their distribution now, since the exploit needs no login on an open IPP queue. Teams that cannot patch immediately should stop passing untrusted files to Ghostscript-backed converters, and check whether plugins or optional ImageMagick backends route uploads there even when the core application looks safe.
Commenters argued the root problem is structural: PostScript is a full programming language, Ghostscript is the only implementation of it, and its sandbox is a weak one that keeps failing, so patching CVE by CVE may never settle the issue. One reader said the disclosure page itself is unreadable, and another objected to the title as clickbait.