Upload2Shell (CVE-2026-125396)
First reported by Pwn ·
Command execution is now possible on Debian 13, WordPress, Roundcube, Plesk, and other services without authentication or prior login.
A critical vulnerability, dubbed Upload2Shell (CVE-2026-125396), has been identified in Ghostscript, a widely used PostScript and PDF interpreter. Discovered on July 27, 2026, this use-after-free flaw in Ghostscript's Type 1 font loader allows attackers to bypass the -dSAFER sandbox security feature. By crafting malicious documents, attackers can alter alternative path controls and execute arbitrary commands with the privileges of the rendering process. Ghostscript is integral to numerous applications, including print, email, upload, and preview workflows. Researchers demonstrated how files disguised as common image types (like .png or .jpg) could still be processed by Ghostscript via conversion, affecting applications such as ImageMagick. Google's document renderer was an early target, with a proof of concept sent on July 30. WordPress addressed a related issue (CVE-2026-65640) on August 12, impacting its upload functionality. The Ghostscript vulnerability was reported upstream to Artifex on September 2 and fixed in Ghostscript 10.08.0 released on September 8. By mid-September and into October, the vulnerability was confirmed in various applications and distributions, including Debian, Roundcube, Plesk, DokuWiki, MediaWiki, and Google, with fixes and advisories rapidly following.
The widespread integration of Ghostscript across diverse applications, from document rendering in cloud services to web application plugins, underscores its foundational role in digital workflows. Upload2Shell's exploit chain highlights how seemingly innocuous file processing operations, like image thumbnailing or document conversion, can serve as vectors for critical security breaches. The timeline of disclosures and fixes, moving from initial discovery to widespread patching across various platforms and software versions, illustrates the challenges in securing complex, interconnected software ecosystems. The continued surfacing of Ghostscript-related vulnerabilities suggests ongoing auditing efforts may uncover further attack surfaces, particularly in less scrutinized or older components of the interpreter.
The remediation efforts for Upload2Shell involved multiple layers of defense, from upstream Ghostscript patches to downstream application-specific fixes and security advisories. This case emphasizes the critical importance of timely patching and diligent dependency management for software maintainers. The vulnerability's presence in both core OS distributions and popular web plugins indicates a systemic risk that necessitates a comprehensive security strategy. Organizations relying on these applications must prioritize applying updates to Ghostscript and affected software to mitigate the risk of command execution and potential data compromise.
AI-written summary. May contain errors.