A vulnerability in Ghostscript can let a specially crafted document escape the program’s security sandbox and run commands on the server that processes it. Security researcher Paulos Yibelo detailed the technique in a November 21 report for pwn.ai, and Australian technology publication iTnews said on November 23 that it independently reproduced the proof of concept against an older, vulnerable release.

Tracked as CVE-2026-125396 and named Upload2Shell, the flaw is a use-after-free in Ghostscript’s Type 1 font loader. A crafted PostScript or PDF document can exploit the memory error to change the interpreter’s internal security controls and bypass its -dSAFER sandbox, allowing commands to run with the privileges of the process handling the file. Ghostscript versions before 10.08.0 are affected unless a vendor has backported the fix.

The application does not need to launch Ghostscript directly for the attack to work. pwn.ai traced the route through image and document libraries, including ImageMagick, that pass files to the interpreter based on their contents. The researcher demonstrated command execution through an unauthenticated shared CUPS print queue on Debian 13, a Roundcube email attachment that triggered processing when viewed, and public upload fields in the Forminator and Essential Addons for Elementor WordPress plugins. WordPress’s own media-upload route required file-upload privileges, which Author-level accounts have by default; the separate WordPress upload-path issue was addressed in version 7.0.4 under CVE-2026-65640.

The same file-processing pattern has appeared in other security issues covered by Abijita, including a Rails Active Storage vulnerability involving ImageMagick upload handling and a Bricksforge WordPress flaw that allowed crafted uploads to reach server-side PHP execution.

READ
Wellington IT Breach Exposes Irish Credit Union Payee Data

Artifex, the company behind Ghostscript, released version 10.08.0 with the fix on September 8. Linux distributions may backport the correction while keeping an older-looking package version, so the status of a system depends on its vendor’s security update rather than the upstream version number alone. Yibelo’s technical report lists the affected processing paths, while iTnews’ independent test confirmed that the proof of concept worked on a vulnerable build but not on Ghostscript 10.08.0. No exploitation in the wild had been reported at the time of its coverage.


Buy ExpressVPN with PayPal or Credit Card
Advertisement