Vulnerability
Published 2026-11-10 New
Verified 2026-11-22

Ghostscript CVE-2026-125396 "Upload2Shell": -dSAFER bypass in Ghostscript before 10.08.0 (CVE record: CVSS 4.0 8.5); pwn.ai says it ran commands remotely through Roundcube, WordPress uploads and an unauthenticated CUPS print queue

The CVE record published on 9 November 2026 at 23:28 UTC (10 November, 07:28 AWST) says Ghostscript before 10.08.0 contains a -dSAFER bypass in the .putgstringcopy procedure in gs_fonts.ps, where crafted PostScript or PDF documents can recover the privileged .forceput operator and cause a use-after-free to execute arbitrary code; the record scores it CVSS 4.0 8.5 and CVSS 3.1 7.8 with a local attack vector (source: CVE record).

In research published on 17 November 2026, pwn.ai, which calls the flaw Upload2Shell, said ordinary preview, thumbnail and print features passed files to Ghostscript, letting it run commands remotely despite the local rating (source: pwn.ai). pwn.ai said a crafted email to a Roundcube 1.7.2 user ran a command on the server as www-data when the recipient viewed the message, without clicking the attachment, where a permissive ImageMagick delegate was in place; that a PDF upload reached Ghostscript in WordPress with Imagick; and that an anonymous IPP print job to a shared CUPS queue on Debian 13 ran a command on the print server as the lp account (source: pwn.ai). pwn.ai said Artifex released the root fix in Ghostscript 10.08.0 on 8 September 2026, that coverage across Linux distributions is uneven, and that as of 12 November Debian still listed Bookworm as vulnerable, Amazon Linux listed a pending fix and several SUSE branches remained affected or in progress (source: pwn.ai). pwn.ai said requiring authentication on the CUPS queue blocked the unauthenticated submission in its test (source: pwn.ai).

Artifex's release notes say Ghostscript 10.08.0 (2026-09-08) addresses a number of potential security issues, without naming this CVE (source: Artifex Ghostscript).

Product
Artifex Ghostscript (PostScript/PDF interpreter), reached through ImageMagick/Imagick previews, mail thumbnails and CUPS print filters
Versions
Ghostscript before 10.08.0, per the CVE record. Distribution backports differ: pwn.ai lists the fixed Debian 13 (Trixie) package as 10.05.1~dfsg-1+deb13u2 and that, as of 12 November, Debian 12 (Bookworm) was still listed vulnerable.
CVSS
(CVSS 4.0) / 7.8 (CVSS 3.1), per the CVE record (local attack vector)
Exploited in Australia?
unknown
Patch to
Update Ghostscript to 10.08.0, or to your distribution's package that lists CVE-2026-125396 as fixed (for example Debian 13 10.05.1~dfsg-1+deb13u2 or later, per pwn.ai). pwn.ai says to check the package actually installed or bundled by each service, notes that updating the host does not update a separate copy inside a container image or application bundle, and says requiring authentication on a shared CUPS queue blocked unauthenticated submission in its test.

vulnerabilities