Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious PostScript/EPS document
-
DeliveryDeliver via EPS import or print-conversion workflow
-
ExploitVictim or pipeline renders document in Ghostscript
-
ExecutionChain memory corruption to bypass -dSAFER controls
-
ImpactExecute arbitrary shell commands as Ghostscript process
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that a crafted PostScript or EPS document be rendered by Ghostscript on the target host - directly opened, imported as EPS, or processed by a format/print-conversion workflow that delegates to Ghostscript (including common server-side pipelines such as PDF conversion or ImageMagick thumbnailing). The -dSAFER sandbox, normally relied upon as a mitigation, is itself bypassed by the exploit chain, so running with -dSAFER does NOT protect affected versions. Limiting factors: user interaction is required (UI:R) - a human or automated process must render the attacker's file - and the vector is local (AV:L), meaning the malicious document must first reach the processing system; no authentication or prior privileges are needed (PR:N). Automated rendering pipelines effectively satisfy the interaction requirement without human action. |
| Impact | This is a genuine high-priority issue rather than a CVSS-inflated one, but its risk profile is nuanced. The CVSS 3.1 vector (AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H, base 7.8) describes a LOCAL attack vector requiring user interaction - the crafted PostScript/EPS document must be rendered on the host, so this is not a directly network-remotely-triggerable flaw. However, PR:N means no privileges are needed and the impact is full confidentiality/integrity/availability compromise within the Ghostscript process context, including a -dSAFER sandbox escape to arbitrary shell command execution. Publicly available exploit code exists (v12-security GitHub PoC), which materially raises practical risk and lowers the bar for attackers. No EPSS score was provided, so exploitation probability cannot be quantified, and no CISA KEV listing is present in the input, so there is no confirmed active exploitation. No SSVC decision data (exploitation status, automatable, technical impact) was supplied. The signals are consistent rather than conflicting: a high-technical-impact, PoC-backed sandbox-escape RCE whose only real brake is the UI:R/AV:L requirement that a victim or automated pipeline process the malicious document. Because Ghostscript is frequently invoked server-side by automated conversion/thumbnailing pipelines (which effectively satisfy the 'user interaction' automatically), the UI:R mitigation is weaker in practice than it appears. |
| Exploit ScenarioDerived | An attacker crafts a malicious EPS/PostScript file and delivers it through a workflow that delegates rendering to Ghostscript - for example an uploaded document that a server converts to PDF/thumbnail, or an EPS imported into a document pipeline. When Ghostscript renders it, chained memory corruption disables the -dSAFER path controls and runs attacker-supplied shell commands as the Ghostscript process user. A public proof-of-concept exists (v12-security/pocs), so weaponization effort is low. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 06, 2026
Ghostscript can execute arbitrary shell commands with the privileges of its process when it renders a crafted PostScript or EPS document, chaining memory corruption in document parsing with a runtime bypass of the -dSAFER sandbox. The flaw affects Ghostscript as shipped in Red Hat Enterprise Linux 6, 7, 8, 9, and 10, and the assessed vector is CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H, meaning no privileges are required but a victim or automated pipeline must render the malicious file, with the malicious document first reaching the processing system. Publicly available exploit code exists, including a GitHub proof-of-concept, but the provided data does not confirm CISA KEV active exploitation, so -dSAFER should not be treated as a protective mitigation for affected versions.
RemediationAI
No vendor-released patch with an exact fixed version is identified in the provided data at time of analysis; monitor https://access.redhat.com/security/cve/CVE-2026-101258 and https://bugzilla.redhat.com/show_bug.cgi?id=2542396 for Red Hat Ghostscript errata and update packages as soon as they are published. Because the exploit specifically bypasses -dSAFER, do not rely on that sandbox setting as a mitigation. Until patched packages are available, avoid rendering untrusted PostScript or EPS through Ghostscript; disable or tightly restrict Ghostscript-based conversion and thumbnailer paths in server pipelines, for example by disabling PS, EPS, and PDF coders in ImageMagick policy.xml where those conversions are not essential, accepting that this breaks document conversion workflows. Where Ghostscript must run, isolate it in a low-privilege account, container, or sandbox with SELinux or AppArmor confinement and restricted file system and network access; this reduces post-exploitation impact but does not fix the underlying memory-corruption bypass. Block untrusted document types at ingress and use the public PoC to test exposure, while remembering that publicly available exploit code is not the same as confirmed active exploitation.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is CWE-787, an out-of-bounds write during parsing of PostScript or EPS content, which can corrupt memory and be chained with a second stage that disables Ghostscript's internal path access controls at runtime. Ghostscript is the interpreter used to render PostScript, EPS, and PDF files, and its -dSAFER sandbox normally restricts file system and shell access; this issue bypasses that control, allowing shell command execution in the Ghostscript process context. The CPE data identifies affected Red Hat Enterprise Linux 6, 7, 8, 9, and 10 packages rather than a standalone upstream Ghostscript version, so remediation should follow Red Hat's Ghostscript errata and advisory. Exploitation requires a crafted document to be rendered directly, imported via EPS, or processed by a print or PDF conversion workflow, including server-side pipelines such as ImageMagick thumbnailers, and the public PoC demonstrates that the memory-corruption and sandbox-bypass chain is reproducible.
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
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Malicious file must be rendered locally (AV:L) and a victim/pipeline must process it (UI:R); no privileges needed (PR:N); sandbox escape to shell execution yields full C/I/A impact within the process.
Primary rating from Vendor (redhat).
CVSS VectorVendor: redhat
DescriptionCVE.org
A flaw was found in Ghostscript. When Ghostscript renders a crafted PostScript or EPS document, it can bypass the -dSAFER sandbox and execute arbitrary shell commands in the context of the Ghostscript process. The issue chains memory corruption in document parsing with disabling of internal path access controls at runtime. An attacker can deliver the document directly or through formats that delegate rendering to Ghostscript (for example EPS import or print conversion workflows). Successful exploitation can compromise confidentiality, integrity, and availability of data accessible to the process running Ghostscript.
Technical POC Analysis
CWE-787 (out-of-bounds write), chained with a use-after-free leak.
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
A high-severity flaw in Ghostscript allows a crafted PostScript or EPS document to run arbitrary shell commands with the privileges of the rendering process, and it affects every version of the tool shipped across Red Hat Enterprise Linux 6 through 10 - one of the widest platform footprints we have seen in a single finding. Because Ghostscript is embedded silently in document conversion, print, imaging, and email-scanning pipelines, untrusted files entering the organization through routine business channels can become a path to host or server compromise. With no vendor patch available and publicly available exploit code already circulating, leadership should treat this as a time-bound exposure requiring containment rather than a routine patch cycle.
No vendor-released patch identified at time of analysis. Interim mitigations: remove or disable Ghostscript where not operationally required; run mandatory rendering workloads in restricted containers under non-privileged accounts with seccomp and MAC confinement; disable Ghostscript delegates in ImageMagick and similar wrappers via hardened policy configuration; block or quarantine PostScript/EPS input at mail, web, and file-share gateways; enforce source allowlisting so only trusted documents reach conversion pipelines; and monitor rendering processes for anomalous shell, child-process, and network activity. Do not rely on -dSAFER as a protective control for affected versions.
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
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
Affected Products (CPE)CVE.org
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
A use-after-free vulnerability in xps_finish_image_path() in devices/vector/gdevxps.c of Artifex Software GhostScript v9
EUVD-2026-93982
GHSA-g96p-c3cq-wp28
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB