Home/Research/Post

Ghostscript Upload2Shell Flaw Enables Remote Code Execution

Ghostscript Upload2Shell Flaw Enables Remote Code Execution

A 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.

Security 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 Debian 13 print servers, WordPress, Forminator, Elementor, and other applications under specific configurations.

The vulnerability, dubbed Upload2Shell, carries a CVSS 4.0 score of 8.5 and affects Ghostscript’s Type 1 font loader. Attackers can disguise malicious PostScript files as ordinary images or documents, exploit a memory corruption flaw, bypass Ghostscript’s -dSAFER sandbox, and execute commands with the permissions of the affected service.

Researchers also identified vulnerable processing paths involving MediaWiki, DokuWiki, Plesk, and several document management systems. The attacks exploit how applications pass untrusted files to Ghostscript through image conversion and preview functions.

Artifex patched the underlying vulnerability in Ghostscript 10.08.0, released September 8, with additional fixes issued by affected software vendors and Linux distributions. Administrators are urged to install patched versions and verify that applications and containers are not using vulnerable Ghostscript builds.

Sources:

https://pwn.ai/upload2shell/research.html

https://security-tracker.debian.org/tracker/CVE-2026-125396

Source: Dark Web Informer · 2026-11-23