CVE-2026-101258
Description
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.
Statement
This vulnerability is rated Important severity because a crafted document can achieve arbitrary command execution when Ghostscript processes it, including when the -dSAFER sandbox flag is enabled. Exploitation requires the victim or an application to process attacker-controlled content locally; it is not a remote network attack against a listening Ghostscript service. In typical desktop and document-conversion scenarios, user interaction is required to open or convert the file.
Ghostscript runs as an unprivileged user in most deployments, but commands still run with that user's privileges. SELinux targeted policy in enforcing mode did not prevent exploitation for common domains that run gs directly (for example unconfined_t and initrc_t in Red Hat testing). Some confined domains may limit follow-on file writes depending on policy; there is no Ghostscript-specific SELinux domain. Blocking ImageMagick's Ghostscript delegate via policy.xml is not a practical workaround on Red Hat Enterprise Linux 8, 9, or 10 because the ImageMagick RPM is not shipped on those releases.
Red Hat Enterprise Linux 10 ships Ghostscript 10.02.1 and is affected; command execution under -dSAFER was confirmed on RHEL 10.2 x86_64 lab systems. Red Hat Enterprise Linux 9 (Ghostscript 9.54.0) and Red Hat Enterprise Linux 8 (Ghostscript 9.27) ship older upstream lines; impact on those releases is still under analysis relative to the public proof of concept, which targets the 10.x series. Red Hat In-Vehicle OS and Fedora ship Ghostscript builds that are being tracked under the same flaw. Red Hat Enterprise Linux 6 and 7 Extended Life Cycle Support include Ghostscript packages; affectedness is not yet resolved for those streams.
Mitigation
No mitigation is currently available that meets Red Hat Product Security's standards for usability, deployment, applicability, or stability.
Common Vulnerability Scoring System (CVSS) Score Details
Info alert:Important note
CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).
CVSS v3 Score Breakdown
| Red Hat | NVD | cve.org | |
|---|---|---|---|
| Base Score | 7.8 | N/A | 7.8 |
| Attack Vector | Local | N/A | Local |
| Attack Complexity | Low | N/A | Low |
| Privileges Required | None | N/A | None |
| User Interaction | Required | N/A | Required |
| Scope | Unchanged | N/A | Unchanged |
| Confidentiality | High | N/A | High |
| Integrity Impact | High | N/A | High |
| Availability Impact | High | N/A | High |
Vector
Red Hat: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
cve.org: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Red Hat CVSS v3 Score Explanation
Local file parser vuln (AV:L), reliable exploitation (AC:L), no privs needed (PR:N), user must open/process file (UI:R), same security authority (S:U), full code execution (C:H/I:H/A:H)
Understanding the Weakness (CWE)
Integrity
Technical Impact: Modify Memory; Execute Unauthorized Code or Commands
Write operations could cause memory corruption. In some cases, an adversary can modify control data such as return addresses in order to execute unexpected code.
Availability
Technical Impact: DoS: Crash, Exit, or Restart
Attempting to access out-of-range, invalid, or unauthorized memory could cause the product to crash.
Other
Technical Impact: Unexpected State
Subsequent write operations can produce undefined or unexpected results.
Acknowledgements
Red Hat would like to thank Akiyoshi Kurita and V12 Security (V12 Security) for reporting this issue.
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.