Ghostscript Upload2Shell Flaw Enables Remote Code Execution via Malicious Files

Summary
Ghostscript’s Upload2Shell flaw can enable remote code execution through malicious files processed by vulnerable applications. Artifex patched the issue in Ghostscript 10.08.0, with additional fixes from vendors and Linux distributions.
Key points
- CVE-2026-125396 affects Ghostscript’s Type 1 font loader and can allow command execution with the affected service’s permissions.
- Malicious PostScript files disguised as images or documents can trigger the flaw through upload, email, or network print workflows.
- Researchers reported that viewing a crafted email in Roundcube could trigger RCE without opening its attachment; tests also covered Debian 13 print servers and other applications under specific configurations.
- The reported attack involves memory corruption and bypassing Ghostscript’s -dSAFER sandbox.
- Artifex patched the vulnerability in Ghostscript 10.08.0; affected software vendors and Linux distributions also issued fixes.
Article Details
- Vulnerability Types
- Memory corruption
- Sandbox bypass
- Remote code execution
- Severity
- CVSS 4.0: 8.5
- Exploitation Status
- reported
- Exploit Availability
- unknown
- Patch Status
- available
MITRE ATT&CK
CVE
Vendors
Products
DokuWikiResearchers also identified vulnerable processing paths involving MediaWiki, DokuWiki, Plesk, and several document management systems. The attacks exploit how applications pass untrusted files to Ghostscript throughElementorSimilar attacks were successfully tested against Debian 13 print servers, WordPress, Forminator, Elementor, and other applications under specific configurations.Forminatorthe attachment. Similar attacks were successfully tested against Debian 13 print servers, WordPress, Forminator, Elementor, and other applications under specific configurations.GhostscriptA critical Ghostscript vulnerability allows attackers to execute commands on vulnerable servers through malicious file uploads, email attachments, and even network print jobs; CVE-2026-125396.MediaWikiResearchers also identified vulnerable processing paths involving MediaWiki, DokuWiki, Plesk, and several document management systems. The attacks exploit how applications pass untrusted files to Ghostscript throughRoundcube WebmailSecurity researchers at pwn.ai demonstrated that simply viewing a crafted email in Roundcube could trigger remote code execution without clicking the attachment. Similar attacks were successfully tested against DebianWebPros PleskResearchers also identified vulnerable processing paths involving MediaWiki, DokuWiki, Plesk, and several document management systems. The attacks exploit how applications pass untrusted files to Ghostscript throughWordPressclicking the attachment. Similar attacks were successfully tested against Debian 13 print servers, WordPress, Forminator, Elementor, and other applications under specific configurations.
