Skip to content
Ghostscript Flaw CVE-2026-125396 Allows Sandbox Escape via File Uploads

Ghostscript Flaw CVE-2026-125396 Allows Sandbox Escape via File Uploads

News.Lavx.Hu • November 22, 2026

A use-after-free in Ghostscript's font loader allowed crafted files to disable the -dSAFER sandbox and run commands on servers that process uploads. Artifex fixed the flaw in Ghostscript 10.08.0 on Sept. 8, but many renderers and Linux packages still need updates.

A use-after-free in Ghostscript's font loader allowed crafted files to disable the -dSAFER sandbox and run commands on servers that process uploads. Artifex fixed the flaw in Ghostscript 10.08.0 on Sept. 8. The flaw carries identifier CVE-2026-125396 and a severity score of 8.5 out of 10. Security firm pwn.ai demonstrated the flaw through 10 common applications. No one has reported attacks.

Ghostscript converts PDFs, PostScript, EPS files, and images on many Linux servers. Applications often do not call the interpreter themselves. Libraries such as ImageMagick, Pillow, libvips, and Qt plugins pass PostScript or EPS content to Ghostscript even when the file name ends in .png, .jpg, or .pdf. Thumbnail and crop operations can start the interpreter. The exact path depends on the libraries an application uses.

pwn.ai fed crafted files through 10 applications and watched a command run on each server as the low-privilege account that performs rendering. Several paths required no authentication: an anonymous print job to a shared Debian 13 queue, an emailed attachment that Roundcube webmail processed when the recipient opened the message, and public upload forms in the WordPress plugins Forminator and Essential Addons for Elementor. WordPress Core required an account with file upload capability, which Authors and higher roles have by default.

The flaw is a use-after-free in the code that loads fonts. A crafted document uses that memory error to disable the checks in -dSAFER, the sandbox meant to block command execution and file access. Ken Sharp, the Artifex developer who handled the fix, described the vulnerable step in the bug report as "an ancient piece of code well known to be a vulnerability, but difficult to eradicate." Artifex moved that internal step into safer code in version 10.08.0.

Although the CVE is classified as a local flaw, pwn.ai reached Ghostscript over the network through print jobs, email, and web uploads. The tested versions and required access for each application appear in the firm's impact index.

WordPress closed its own upload path in version 7.0.4 on Aug. 12 under a separate identifier, CVE-2026-65640. That fix and the Ghostscript fix cover different points in the same chain, so updating one does not remove the need for the other.

The Ghostscript fix helps where it reaches the renderer an application actually uses. Updating the host operating system does not update a separate Ghostscript copy bundled inside a container image or an application, so a document worker can keep running old code after the host package is replaced. Coverage across Linux distributions is uneven. As of last week, several distributions shipped a vulnerable Ghostscript or had a fix pending, according to pwn.ai's survey. The list records package status, not a tested attack path for each system:

Debian 12 (Bookworm): listed as vulnerable

Amazon Linux 2, 2023, and 2027 Preview: fix pending

SUSE Linux Enterprise 12 SP5 and parts of 15: fix in progress

SUSE Linux Enterprise Server 16.0 and 16.1: fix in progress

openSUSE Leap 16.0 and 16.1: affected

pwn.ai did not establish whether current Red Hat, Rocky Linux, AlmaLinux, Oracle Linux, or stable Fedora packages carry the fix.

Until the renderer is updated, administrators can reduce exposure by requiring authentication on print queues and by limiting which file types an image processor accepts. System controls help. In one test, an AppArmor profile stopped the compromised interpreter from starting a shell.

One published proof-of-concept file demonstrates the core memory trick. It changes a value inside the running interpreter and restores it, without running a shell command or touching files on the host. On the patched 10.08.0 build, it fails before that point.

pwn.ai's broader research extended to production services, including Google, which fixed the affected path last week. Reports of similar problems at Dropbox and other unnamed services involve separate Ghostscript bugs, not CVE-2026-125396.

Source : Researchers Demonstrate Ghostscript Sandbox-Escape RCE via Crafted File Uploads in Popular Apps , by The Hacker News , The Hacker News , Nov 22, 2026

The full story

This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.