home / blog

2026-11-22 · high

CVE-2026-125396: Ghostscript Code Execution Vulnerability

CVE-2026-125396: High severity vulnerability in Ghostscript allows -dSAFER bypass and arbitrary code execution.

CVE-2026-125396: Ghostscript Code Execution Vulnerability

CVE-2026-125396 is a critical vulnerability in Ghostscript, the popular PDF processing engine. The flaw resides in the .putgstringcopy procedure in gs_fonts.ps, which calls the privileged .forceput operator without checking operand types. This allows an attacker to supply malicious PostScript or PDF documents that trigger a type error, recover .forceput via a custom error handler, and execute arbitrary code.

The vulnerability severity is rated CVSS 7.8 (high level) and was officially published on NVD on November 10, 2026. The -dSAFER bypass represents a significant risk as this function is supposed to limit dangerous operations when processing untrusted documents. Currently no public exploits are reported, but the high severity requires immediate attention.

Recommended defenses include immediate updating to Ghostscript 10.08.0 or later versions. Alternatively, you can disable PostScript support if not strictly necessary. Organizations should also implement additional controls on untrusted PDF documents, such as sandbox analysis or blocking suspicious content. It's recommended to monitor official sources for any updates on the vulnerability.

At a glance

What
Vulnerability in Ghostscript's .putgstringcopy procedure in gs_fonts.ps that bypasses -dSAFER
Severity
High (CVSS 7.8)
Affected versions
Before 10.08.0
Fix
Update to Ghostscript 10.08.0 or later
Status
Officially published on NVD on 11/10/2026
Action
Apply patches immediately and verify untrusted PDF documents

Sources: NVD, CVE-2026-125396

← All articles