Security researchers at pwn.ai have published Upload2Shell, a use-after-free flaw in Ghostscript's Type 1 font loader tracked as CVE-2026-125396. According to the writeup, a crafted document can cross Ghostscript's -dSAFER sandbox, alter native path controls, and run attacker-chosen commands as the rendering process.
The finding matters because Ghostscript rarely sits alone. The software runs beneath print, email, upload and document preview workflows, so a single interpreter can be reached through many everyday features that accept a file. pwn.ai says it confirmed execution across WordPress Core, Debian 13, Roundcube, Plesk, Wikimedia, Google's document renderer, Dropbox, Zoom, Forminator and Elementor, among others.
Ghostscript CVE-2026-125396: how the sandbox is crossed
Ghostscript's -dSAFER option is meant to stop documents from touching the file system or running commands while a page is rendered. The Type 1 font loader flaw breaks that boundary: a document that looks ordinary gains native access inside the rendering process.
pwn.ai also notes that file extensions are not a real barrier. Its earlier ImageMagick research showed that files named .png or .jpg can still reach Ghostscript through image conversion, which is how the same interpreter turns up behind thumbnailers, previewers and print filters.
The upstream flaw was filed with Artifex as Bug 709684 and a fix has been released, after which the issue received its public CVE identifier, CVE-2026-125396. pwn.ai says individual case studies and proofs of concept will be linked from its product table as they are published.
Confirmed routes: WordPress, Debian, Roundcube and Plesk
The published index records several confirmed paths. On WordPress, the Core upload route exposed the renderer to Author-level users and to any Contributor granted upload_files, while public upload fields in multiple plugins needed no login at all. WordPress also shipped a separate fix for CVE-2026-65640.
Debian published its first stable-security Ghostscript update after the report, with the fixed build marked for Upload2Shell. pwn.ai says it confirmed unauthenticated remote command execution through an IPP job to a shared print queue, which ran on the host as the lp user, and sent the network reproduction to Debian Security.
Roundcube restricted unsafe attachment image types before ImageMagick conversion under CVE-2026-114727, and the Roundcube thumbnail path shipped with Plesk Obsidian also produced confirmed command execution, reported to WebPros. Other confirmations include a public registration widget with an upload field, a public PDF form storing files in the WordPress Media Library, a document inbox that imported and rendered external email attachments, and a wiki using its optional ImageMagick backend or anonymous PDF uploads through PdfHandler.


