Researchers at pwn.ai have demonstrated a Ghostscript sandbox escape, tracked as CVE-2026-125396 and named Upload2Shell, that reaches applications including Roundcube, CUPS print queues and two WordPress plugins. The demonstrations came on November 22, and the full PostScript proof of concept was published on November 23, more than two months after the vendor shipped a fix.
A Use-After-Free in Ghostscript’s Type 1 Font Loader
The flaw is a use-after-free in the Ghostscript Type 1 font loader, which is written in PostScript. A crafted document can use it to disable the -dSAFER sandbox and run commands as the account that renders the file.
Artifex fixed the flaw in Ghostscript 10.08.0 on September 8. Several Linux distributions still ship vulnerable packages. The CVE is classified as local, but the researchers’ tests reached it from the network.
Ten Applications, From Print Queues to Webmail
pwn.ai demonstrated the exploit through about ten applications. Examples include an anonymous print job to a shared Debian 13 queue, an emailed attachment that Roundcube processes when it is opened, and public upload forms in the Forminator and Essential Addons for Elementor WordPress plugins. WordPress Core was also affected for accounts with upload rights, meaning Authors and above.
Files can be named .png, .jpg or .pdf and still reach Ghostscript.
Ghostscript’s -dSAFER setting is meant to stop documents from running commands, and the exploit’s purpose is to switch that protection off. Because renamed files still reach Ghostscript, an upload that looks like a harmless image can carry the payload.
Wider Reach Claimed Across Google and Dropbox Services
According to reporting on the research, the researchers also reached Google Docs, Chat, Drive and Gmail processing, as well as Dropbox, with some of those having separate root causes. The affected software list also names ImageMagick, Pillow, libvips, the Qt EPS plugin and MediaWiki as applications that use Ghostscript.
No Reported Attacks, but a Public Ghostscript Exploit Now Exists
The vulnerability affects Ghostscript releases before 10.08.0 and the applications that call it. The affected list in the disclosure covers ImageMagick, Pillow, libvips, the Qt EPS plugin, Roundcube, CUPS print queues, the WordPress plugins Forminator and Essential Addons for Elementor, and MediaWiki.
CISA’s ADP record lists exploitation as “none,” and no attacks have been reported. A full PostScript proof of concept is now public, however, which changes the position for any server that has not yet applied the September fix.
Servers That Convert Uploaded Files Carry the Ghostscript Exposure
Any server that converts uploaded images or documents may be exposed. The exploit does not depend on a file’s extension, so filtering uploads by name or type does not close the path, based on the researchers’ demonstration that renamed files still reach Ghostscript.
Upgrade to Ghostscript 10.08.0 or a Distribution Backport
The remedy is to upgrade to Ghostscript 10.08.0 or to install a backport from the operating system distributor. Artifex is moving the vulnerable step to safer code.
The timeline in this case is unusual: a fix existed for 11 weeks before the exploit became public, so the delay has been in deployment, not in the vendor’s response. Because Ghostscript sits underneath so many other tools, a system’s owner may not realize the library is present at all, and a distribution that has not shipped the fix leaves that owner exposed without any visible warning.
The email path deserves particular attention. In the Roundcube demonstration, the attachment is processed when the recipient opens it, so an attacker needs only to send a message and wait for it to be viewed. The print queue case works through an anonymous job on a shared queue. Administrators can start by listing which applications on a server call Ghostscript to process uploads, mail attachments or print jobs, then confirm the installed version against 10.08.0 or the vendor’s backport notice.
