---
title: "CVE-2026-125396: Ghostscript - Command Injection"
description: "Ghostscript < 10.08.0 contains a command injection caused by a -dSAFER bypass in .putgstringcopy procedure in gs_fonts.ps, letting attackers execute arbitrary code via crafted PostScript or PDF documents, exploit requires crafted documents."
url: https://panop.io/threat-heartbeat/CVE-2026-125396/
---

# CVE-2026-125396 Ghostscript - Command Injection

Ghostscript < 10.08.0 contains a command injection caused by a -dSAFER bypass in .putgstringcopy procedure in gs\_fonts.ps, letting attackers execute arbitrary code via crafted PostScript or PDF documents, exploit requires crafted documents.

CVSS base score 7.8 /10

High

CISA KEV

Not listed

Public exploit

None known

Authentication

Not required

EPSS

0.13% chance of exploitation in 30 days

[View the NVD record ↗](https://nvd.nist.gov/vuln/detail/CVE-2026-125396)

## Details

Type

Command Injection

Impact

Remote Code Execution

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Published

10 November 2026

Updated

11 November 2026

Weakness

[CWE-648](https://cwe.mitre.org/data/definitions/648.html)

## Vendor fix

Upgrade to version 10.08.0 or later.

Patching closes this CVE. It does not tell you which of your systems run the affected version, or what else is exposed alongside them.

## References

- [https://nvd.nist.gov/vuln/detail/CVE-2026-125396](https://nvd.nist.gov/vuln/detail/CVE-2026-125396)
- [https://bugs.ghostscript.com/show\_bug.cgi?id=709684](https://bugs.ghostscript.com/show_bug.cgi?id=709684)
- [https://github.com/ArtifexSoftware/ghostpdl](https://github.com/ArtifexSoftware/ghostpdl)
- [https://github.com/ArtifexSoftware/ghostpdl/blob/ghostpdl-10.07.0/Resource/Init/gs\_fonts.ps#L1026-L1035](https://github.com/ArtifexSoftware/ghostpdl/blob/ghostpdl-10.07.0/Resource/Init/gs_fonts.ps#L1026-L1035)
- [https://github.com/ArtifexSoftware/ghostpdl/commit/1484854e0c8ddfda1baa4ad4cd965b8a9790aa81](https://github.com/ArtifexSoftware/ghostpdl/commit/1484854e0c8ddfda1baa4ad4cd965b8a9790aa81)
- [https://www.vulncheck.com/advisories/ghostscript-before-10.08.0-dsafer-bypass-via-putgstringcopy-forceput-recovery](https://www.vulncheck.com/advisories/ghostscript-before-10.08.0-dsafer-bypass-via-putgstringcopy-forceput-recovery)

[← All CVEs](https://panop.io/threat-heartbeat/)

## What this record can't tell you

- Whether you run the affected software, and where
- Whether an attacker can actually reach and exploit it
- The misconfigurations that never get a CVE number
- What it would cost the business, ranked into what to fix first

Panop answers these inside your environment, for this CVE and every other finding.

[Book a demo](https://panop.io/demo)
