Upload2Shell (CVE-2026-125396) is a use-after-free in Ghostscript’s Type 1 font loader. A specially crafted document can escape Ghostscript’s `-dSAFER` sandbox, change native path controls, and run commands with the rendering process’s permissions. Because Ghostscript is embedded in print, email, upload, and preview workflows, the flaw can be reached through file-processing features that users may not recognize as PostScript or PDF rendering. ImageMagick and Pillow routes are among those examined; some application paths were confirmed through testing, while others were traced in source or observed starting Ghostscript without a complete exploit demonstration.
Confirmed command execution included unauthenticated IPP printing on Debian 13 CUPS, public WordPress form and registration uploads, anonymous uploads to configured MediaWiki and DokuWiki sites, and email attachment processing in Roundcube and Mayan EDMS. Execution ran under service accounts such as `lp` and `www-data`; other routes required an account or upload-sharing capability. WordPress separately fixed its upload exposure, while Ghostscript 10.08.0 addressed the underlying flaw. Debian and Ubuntu later shipped fixed packages, and Google mitigated an affected document-processing path. The record distinguishes this vulnerability from separate Ghostscript findings involving Dropbox and other services, and notes that some product-specific proofs and case studies remain unpublished.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.