Skip to content
LATEST
Technology

Critical Ghostscript Vulnerability Enables Remote Code Execution

A critical Ghostscript vulnerability allows remote code execution via disguised file uploads, impacting numerous web services and prompting widespread…

Critical Ghostscript Vulnerability Enables Remote Code Execution

A critical security vulnerability, identified as CVE-2026-125396 and dubbed "Upload2Shell," allows attackers to execute arbitrary code on servers by disguising malicious PostScript files as standard image or PDF documents. The flaw affects Ghostscript versions prior to 10.08.0, which was released on September 8, 2026. The vulnerability exploits a recurring weakness in Ghostscript’s font-handling routines, enabling attackers to bypass the -dSAFER sandbox protection mechanism.

Researchers discovered the flaw using artificial intelligence, confirming successful exploitation across 10 distinct products, including Debian 13 and Roundcube webmail. The vulnerability is particularly dangerous for web services that automatically process file uploads for thumbnail generation, metadata extraction, or document conversion. Because many image processing libraries identify files by content rather than extension, they inadvertently pass disguised malicious files to the vulnerable Ghostscript interpreter.

While no evidence of exploitation in the wild

While no evidence of exploitation in the wild

While no evidence of exploitation in the wild has been reported, the public release of a proof-of-concept increases the risk of opportunistic attacks. Organizations are advised to verify their Ghostscript versions, noting that some Linux distributions may backport security fixes while retaining older version strings. The vulnerability has prompted significant payouts, with researchers receiving total bug bounties in the low six-figure range from multiple organizations, including Dropbox.

Security teams should prioritize auditing applications that utilize ImageMagick, Pillow, or similar libraries in conjunction with Ghostscript. The maintainers of Ghostscript have indicated an ongoing effort to remove the specific privileged internal operations that facilitate this class of sandbox escape. Until these architectural changes are implemented, the risk of similar vulnerabilities remains high for any system handling untrusted file uploads.

More stories

Latest news