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.
Published: 2026-11-09
Score: 8.5 High
EPSS: n/a
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

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.

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

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

No advisories yet.

History

Mon, 09 Nov 2026 23:45:00 +0000

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'}


Subscriptions

Artifex Ghostscript
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-11-09T23:28:00.084Z

Reserved: 2026-11-09T22:03:13.669Z

Link: CVE-2026-125396

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-10T00:17:13.713

Modified: 2026-11-10T00:17:13.713

Link: CVE-2026-125396

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-10T00:45:07Z

Weaknesses
  • CWE-648

    Incorrect Use of Privileged APIs