Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDeliver crafted PostScript/PDF document
-
DeliveryVictim processes file under -dSAFER
-
ExploitTrigger type error in .putgstringcopy
-
ExecutionRecover .forceput via custom error handler
-
PersistProvoke use-after-free across save/restore
-
ImpactExecute arbitrary code outside sandbox
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V6 - Authentication Incorrect use of privileged APIs
|
| Exploitation Conditions | Exploitation requires a vulnerable Ghostscript (any version before 10.08.0) to parse an attacker-crafted PostScript or PDF document, specifically while relying on the -dSAFER sandbox that this flaw bypasses. The crafted document must trigger a type error in the .putgstringcopy procedure and install a custom PostScript error handler to recover the privileged .forceput operator, then force a use-after-free across a save/restore cycle. Limiting factors: a document must actually be processed (UI:P / passive user interaction - e.g., opening, printing, or converting a file), and the installation must be older than 10.08.0; there is no network-service-listening component, so reach depends on whether Ghostscript is exposed to untrusted documents (print spoolers, CUPS, ImageMagick delegates, PDF/image conversion services increase exposure). |
| Impact | This is a genuine high-priority issue rather than a CVSS-inflated one, but its risk profile is nuanced. The only CVSS vector provided is CVSS 4.0 (AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N), scoring 8.5: local attack vector, low complexity, no privileges, passive user interaction, and high confidentiality/integrity/availability impact to the vulnerable system with no subsequent-system scope change. The class of flaw is severe - a -dSAFER sandbox bypass leading to arbitrary code execution, which defeats the primary isolation mechanism security-conscious Ghostscript deployments rely on. However, several decision signals are MISSING or must be noted: no EPSS score was supplied, the CVE is NOT in CISA KEV (no confirmed active exploitation), and no PoC was flagged as confirmed working exploit code. A vendor advisory (VulnCheck) and the fixing commit exist, so the technical details are public and a working exploit is plausible in the near term, but that is not the same as in-the-wild activity. The vuln.today priority label is 'this_week', consistent with a serious but not emergency-grade issue. Note a nuance a defender should verify: CVSS marks this AV:L (local), yet Ghostscript is frequently invoked server-side on untrusted documents (print spoolers, PDF/image conversion services, ImageMagick delegates), where the practical reachability is closer to remote - the local rating reflects the need for a document to be processed, not a requirement for interactive local access. |
| Exploit ScenarioDerived | An attacker crafts a malicious PostScript or PDF document and gets a victim or a server-side service to process it with a vulnerable Ghostscript (before 10.08.0) that is relying on -dSAFER for isolation. The document deliberately triggers a type error in .putgstringcopy, installs a custom error handler to recover the privileged .forceput operator, then abuses it to provoke a use-after-free across a save/restore boundary, escaping the sandbox to execute arbitrary code. No confirmed public exploit code is identified, but the fixing commit and a vendor advisory publicly describe the mechanism. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 10, 2026
Ghostscript versions before 10.08.0 can be driven outside the -dSAFER sandbox by crafted PostScript or PDF input, enabling arbitrary code execution through recovery of the privileged .forceput operator and a use-after-free across save/restore. The issue is rated 8.5 under CVSS 4.0 and assessed as CVSS 3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H; no privileges are required, but the attacker must get a document processed, so exposure concentrates in print spoolers, CUPS, ImageMagick delegates, and PDF/image conversion services. It carries a this_week priority and high-priority but nuanced risk: no CISA KEV entry and no public exploit code were identified at the time of analysis, and reachability depends on whether Ghostscript handles untrusted documents.
RemediationAI
Vendor-released patch: Ghostscript 10.08.0. Upgrade to 10.08.0 or later; the input identifies 10.08.0 as the fixed release boundary and references upstream commit 1484854e0c8ddfda1baa4ad4cd965b8a9790aa81, with the vendor bug at https://bugs.ghostscript.com/show_bug.cgi?id=709684. The supplied evidence does not identify a complete vendor workaround beyond updating, so until 10.08.0 is deployed, reduce exposure by preventing untrusted PostScript/PDF from reaching Ghostscript-backed paths such as print spoolers, CUPS filters, ImageMagick delegates, and PDF/image conversion services, and by disabling or constraining those delegations where they are not required. Those compensating controls can break document conversion and printing workflows, so they should be scoped to untrusted input handling rather than applied blindly.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Ghostscript's -dSAFER mode is a security sandbox intended to prevent PostScript and PDF content from invoking privileged operators or performing unauthorized file operations. The vulnerable .putgstringcopy procedure in Resource/Init/gs_fonts.ps calls the privileged .forceput operator without checking operand types; crafted input can trigger a type error, use a custom error handler to recover .forceput, and then force a use-after-free across a save/restore cycle to execute arbitrary code. The root cause class is CWE-648 (Incorrect Use of Privileged APIs), and the supplied source evidence identifies gs_fonts.ps lines 1026-1035 in the ghostpdl-10.07.0 tag plus upstream fix commit 1484854e0c8ddfda1baa4ad4cd965b8a9790aa81. The exact heap layout and memory-corruption primitive beyond the described use-after-free are not detailed in the available sources; the confirmed chain is a -dSAFER bypass that escalates to code execution when a malicious document is processed.
Know when Ghostscript gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
A crafted document must be processed (AV:L, UI:R) with no privileges or special configuration (PR:N, AC:L); sandbox escape yields full code execution (C/I/A:H), kept S:U to match the vendor's no-subsequent-impact scoring.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
Lifecycle Timeline
2DescriptionCVE.org
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.
Technical POC Analysis
CWE-648: Incorrect Use of Privileged APIs.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Latest POC
1 PoC candidate from github (unverified)
Sign in to open the public PoC links collected for this CVE.
Executive ViewAI
CVE-2026-125396 is a high-severity Ghostscript vulnerability that allows attackers to escape the sandbox and execute arbitrary code when malicious documents are processed. Any system or service that uses Ghostscript to handle untrusted files-such as print servers, document converters, or email gateways-is at risk, potentially leading to full system compromise. Leadership should prioritize remediation because this could enable attackers to gain a foothold in the network, especially if such services are internet-facing or widely accessible.
No vendor-released patch identified at time of analysis; interim mitigations include restricting Ghostscript processing to trusted documents only, disabling or isolating vulnerable services that handle untrusted files, and implementing application-level sandboxing or containerization.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
More in Ghostscript
View allArtifex Ghostscript through 2017-04-26 allows -dSAFER bypass and remote command execution via .rsdparams type confusion
The PS Interpreter in Ghostscript 9.18 and 9.20 allows remote attackers to execute arbitrary code via crafted userparams
An issue was discovered in Artifex Ghostscript before 9.24. Rated high severity (CVSS 7.8), this vulnerability is no aut
Multiple integer underflows in the icmLut_allocate function in International Color Consortium (ICC) Format library (iccl
In Artifex Ghostscript through 10.01.0, there is a buffer overflow leading to potential corruption of data internal to t
Artifex Ghostscript 9.25 and earlier allows attackers to bypass a sandbox protection mechanism via vectors involving the
Artifex Ghostscript 9.25 and earlier allows attackers to bypass a sandbox protection mechanism via vectors involving err
The fill_threshhold_buffer function in base/gxht_thresh.c in Artifex Software, Inc. Rated high severity (CVSS 7.8), this
The Ins_MIRP function in base/ttinterp.c in Artifex Ghostscript GhostXPS 9.21 allows remote attackers to cause a denial
The gs_alloc_ref_array function in psi/ialloc.c in Artifex Ghostscript 9.21 allows remote attackers to cause a denial of
Integer overflow in the mark_curve function in Artifex Ghostscript 9.21 allows remote attackers to cause a denial of ser
Ghostscript can execute arbitrary shell commands with the privileges of its process when it renders a crafted PostScript
EUVD-2026-120559
GHSA-hg3g-c775-3fpj
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB