Skip to main content
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious PostScript/EPS document
  2. Delivery
    Deliver via EPS import or print-conversion workflow
  3. Exploit
    Victim or pipeline renders document in Ghostscript
  4. Execution
    Chain memory corruption to bypass -dSAFER controls
  5. Impact
    Execute 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 PoC candidate (unverified) Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Vendor (redhat) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
vuln.today AI 7.8 HIGH

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.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat 7.8 HIGH

Primary rating from Vendor (redhat).

CVSS VectorVendor: redhat

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.2%
Top 96% exploitable
Prevalence
Ubiquitous
Ghostscript ships in nearly every Linux distro and document/print pipeline
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

59
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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

cpe:2.3:a:red_hat:red_hat_enterprise_linux_10:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_enterprise_linux_6:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_enterprise_linux_6:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_enterprise_linux_7:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_enterprise_linux_7:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_enterprise_linux_7:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_enterprise_linux_8:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_enterprise_linux_9:*:*:*:*:*:*:*:*
CVE-2017-8291 HIGH POC
7.8 Apr 27

Artifex Ghostscript through 2017-04-26 allows -dSAFER bypass and remote command execution via .rsdparams type confusion

CVE-2016-7976 HIGH POC
8.8 Aug 07

The PS Interpreter in Ghostscript 9.18 and 9.20 allows remote attackers to execute arbitrary code via crafted userparams

CVE-2018-16509 HIGH POC
7.8 Sep 05

An issue was discovered in Artifex Ghostscript before 9.24. Rated high severity (CVSS 7.8), this vulnerability is no aut

CVE-2012-4405 MEDIUM
6.8 Sep 18

Multiple integer underflows in the icmLut_allocate function in International Color Consortium (ICC) Format library (iccl

CVE-2023-28879 CRITICAL POC
9.8 Mar 31

In Artifex Ghostscript through 10.01.0, there is a buffer overflow leading to potential corruption of data internal to t

CVE-2018-18284 HIGH POC
8.6 Oct 19

Artifex Ghostscript 9.25 and earlier allows attackers to bypass a sandbox protection mechanism via vectors involving the

CVE-2018-17961 HIGH POC
8.6 Oct 15

Artifex Ghostscript 9.25 and earlier allows attackers to bypass a sandbox protection mechanism via vectors involving err

CVE-2016-10317 HIGH POC
7.8 Apr 03

The fill_threshhold_buffer function in base/gxht_thresh.c in Artifex Software, Inc. Rated high severity (CVSS 7.8), this

CVE-2017-9611 HIGH POC
7.8 Jul 26

The Ins_MIRP function in base/ttinterp.c in Artifex Ghostscript GhostXPS 9.21 allows remote attackers to cause a denial

CVE-2017-9835 HIGH POC
7.8 Jul 26

The gs_alloc_ref_array function in psi/ialloc.c in Artifex Ghostscript 9.21 allows remote attackers to cause a denial of

CVE-2017-7948 HIGH POC
7.8 Apr 19

Integer overflow in the mark_curve function in Artifex Ghostscript 9.21 allows remote attackers to cause a denial of ser

CVE-2020-16303 HIGH POC
7.8 Aug 13

A use-after-free vulnerability in xps_finish_image_path() in devices/vector/gdevxps.c of Artifex Software GhostScript v9

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy