CVE-2026-125396
Received Received - Intake

Ghostscript -dSAFER Bypass via .putgstringcopy in gs_fonts.ps

Vulnerability report for CVE-2026-125396, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-10

Last updated on: 2026-11-10

Assigner: VulnCheck

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-10
Last Modified
2026-11-10
Generated
2026-11-10
AI Q&A
2026-11-10
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
ArtifexSoftware ghostpdl From 0 (inc) to 10.8.0 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-648 The product does not conform to the API requirements for a function call that requires extra privileges. This could allow attackers to gain privileges by causing the function to be called incorrectly.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is a -dSAFER bypass in Ghostscript versions before 10.08.0. It occurs in the .putgstringcopy procedure in gs_fonts.ps, which calls the privileged .forceput operator without checking operand types. Attackers can exploit this by creating malicious PostScript or PDF files 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.

Detection Guidance

To detect this vulnerability, check the installed Ghostscript version using commands like 'gs --version' or 'ghostscript --version'. Compare the output against version 10.08.0 or later. Inspect system logs for crashes or unusual PostScript/PDF processing errors. Monitor network traffic for suspicious file transfers involving PostScript or PDF formats.

Impact Analysis

This vulnerability allows attackers to execute arbitrary code on systems running vulnerable Ghostscript versions. This could lead to unauthorized access, data theft, malware installation, or system compromise. Users could be impacted if they process untrusted PostScript or PDF files with affected software.

Compliance Impact

This vulnerability enables arbitrary code execution through crafted PostScript or PDF files, which could allow attackers to bypass security controls. For GDPR, this may lead to unauthorized data access or processing, violating integrity and confidentiality principles. Under HIPAA, it could permit unauthorized access to protected health information, compromising compliance with safeguard requirements.

Mitigation Strategies

Immediately update Ghostscript to version 10.08.0 or later. Disable processing of untrusted PostScript or PDF files until patched. Restrict user permissions to limit exposure. Review and remove any custom error handlers in PostScript environments that might interact with .forceput.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-125396. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...