A Ghostscript security flaw can turn a document-processing feature into a route for running commands with the renderer's permissions, researchers and security vendors warn. The upstream fix is in version 10.08.0, but administrators using packaged software need to check their distributor's security updates: a backported fix can carry an older version number. [1][2][3]
The issue, CVE-2026-125396, affects upstream Ghostscript releases before 10.08.0, according to security firm Sophos. On November 21, researcher Paulos Yibelo of pwn.ai published details of tests showing how crafted files could reach the interpreter through application workflows. Sophos said on November 23 that proof-of-concept code was public, but it was not aware of public reports of exploitation in the wild. That is a statement about reports known to Sophos at that time, not proof that no attack has occurred. [1][4]
How a Ghostscript file reaches a server
Ghostscript processes formats including PostScript and PDF. A server may invoke it indirectly when another library creates a preview or converts an uploaded document. In controlled tests, pwn.ai found that some image-processing paths passed supplied content to Ghostscript; whether a particular service is exposed depends on its installed components, configuration and whether it processes untrusted files. The researchers' demonstrations do not establish that every installation of a named application is vulnerable. [4]
The flaw can bypass Ghostscript's `-dSAFER` restrictions. A successful attack could run commands with the privileges of the process handling the file, rather than automatically gaining every privilege on the machine. Artifex's change validates inputs to a font-loading helper to prevent the described problem. [1][3]
Why the Ghostscript version needs context
Artifex tagged the 10.08.0 release in September. Debian's security tracker lists a fixed package for Debian 12, known as bookworm, with a 10.0.0-based version and fixed Debian 13, or trixie, packages based on 10.05.1. Those package versions illustrate a backport: an older upstream version string alone does not establish that a distributor's package remains vulnerable. Operators should check the specific release and package against their vendor's current notice. [2][3][5]
Reducing Ghostscript exposure until a fix
Sophos advises operators to prioritize systems that process untrusted documents and to check bundled copies and containers as well as directly installed packages. While a fix is being deployed, it suggests avoiding untrusted PostScript, EPS and PDF processing or isolating conversion with limited privileges. The company says it has not validated those temporary measures and that they should be tested; its advisory does not present `-dSAFER` alone as a fix. [1]
Sophos also said it was reviewing its own products and services. Its general advice for other systems does not establish that any particular Sophos product is affected or that all distribution packages have the same patch status. [1]