CVE-2026-125396

Ghostscript before 10.08.0 -dSAFER Bypass via .putgstringcopy .forceput Recovery

Published Nov 9, 2026 CVSS 4.0 · 8.5 High EPSS < 1% KEV · Not listed
Description
Ghostscript before 10.08.0 contains a -dSAFER bypass vulnerability in the .putgstringcopy procedure in gs_fonts.ps, which calls the privileged .forceput operator without checking operand types. Attackers can supply crafted PostScript or PDF documents that trigger a type error, recover .forceput via a custom error handler, and cause a use-after-free across save/restore to execute arbitrary code.

Analysis

AI-generated

Technical impact

Ghostscript before version 10.08.0 has a bypass of the -dSAFER protection that allows crafted PostScript or PDF files to trigger a type error. The error handling then recovers a privileged .forceput operator via the .putgstringcopy procedure, leading to a use‑after‑free situation across save/restore. This flaw enables an attacker to execute arbitrary code in the Ghostscript process, potentially giving full control of the host system if the interpreter runs with elevated privileges.

Affected Systems

All installations of the ArtifexSoftware Ghostscript (ghostpdl) build that are not at least 10.08.0 are susceptible. The vulnerability is present in the gs_fonts.ps script referenced by the product. Users running older releases of Ghostscript for PDF or PostScript rendering must verify their version and update or reconfigure accordingly.

Risk and Exploitability

The CVSS score of 8.5 classifies this flaw as high severity. EPSS is not available, so the likelihood of exploitation cannot be quantified, but the lack of a mitigating security feature and the ability to trigger the flaw via user‑supplied content make it a serious threat. The vulnerability is not listed in the CISA KEV catalog as of the last update. Attackers can exploit the flaw by providing maliciously crafted documents that are processed by Ghostscript in an environment where the -dSAFER flag has been set, enabling the bypass of its intended restrictions.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Ghostscript to version 10.08.0 or later, which removes the bypass by correcting the type check before calling .forceput.
  • When upgrading is impossible, run Ghostscript in a restricted user context with no file system or network access and avoid processing untrusted content.
  • Apply any vendor‑released patches for the -dSAFER bypass as soon as they become available.

Generated by OpenCVE AI on November 10, 2026 at 00:39 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4914-1 ghostscript security update
History
Type Values Removed Values Added
First Time appeared Artifex ghostpdl
Artifex Software Inc.
Artifex Software Inc. ghostscript
Vendors & Products Artifex ghostpdl
Artifex Software Inc.
Artifex Software Inc. ghostscript
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Ghostscript before 10.08.0 contains a -dSAFER bypass vulnerability in the .putgstringcopy procedure in gs_fonts.ps, which calls the privileged .forceput operator without checking operand types. Attackers can supply crafted PostScript or PDF documents that trigger a type error, recover .forceput via a custom error handler, and cause a use-after-free across save/restore to execute arbitrary code.
Title Ghostscript before 10.08.0 -dSAFER Bypass via .putgstringcopy .forceput Recovery
First Time appeared Artifex
Artifex ghostscript
Weaknesses CWE-648
CPEs cpe:2.3:a:artifex:ghostscript:*:*:*:*:*:*:*:*
Vendors & Products Artifex
Artifex ghostscript
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.5, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-648

    Incorrect Use of Privileged APIs

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 22, 2026, 4:06 AM
Reserved
Nov 9, 2026, 10:03 PM
Status
Awaiting Analysis
Published
Nov 10, 2026, 12:17 AM
Modified
Nov 22, 2026, 5:18 AM