CVE-2026-101258

Ghostscript: ghostscript: -dsafer sandbox bypass via type 5 shading oob write and procedure-stream use-after-free

Published Oct 6, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

A memory corruption flaw in Ghostscript allows a crafted PostScript or EPS document to bypass the -dSAFER sandbox flag and subsequently execute arbitrary shell commands in the context of the Ghostscript process. The vulnerability is achieved by an out‑of‑bounds write in type 5 shading, followed by a use‑after‑free of a procedure stream that removes internal path access controls during parsing, thus enabling the escape from the sandbox environment.

Affected Systems

The flaw affects Ghostscript runs on Red Hat Enterprise Linux 6, 7, 8, 9 and 10. All versions of the OS package that include Ghostscript prior to the official fix are vulnerable and consequently any system that processes PostScript or EPS files through Ghostscript is at risk.

Risk and Exploitability

The CVSS base score of 7.8 classifies the issue as high severity. No EPSS score is reported, so exploitation likelihood remains uncertain; however the vulnerability is listed in Red Hat advisories and is not yet in the CISA KEV catalog. The attack vector most commonly involves the delivery of malicious EPS or PostScript content to a system that employs Ghostscript for rendering, printing, or conversion workflows. Successful exploitation grants full control over the Ghostscript process, enabling an attacker to compromise the confidentiality, integrity, and availability of any data or services that the process can access.

Remediation

Vendor Workaround

No mitigation is currently available that meets Red Hat Product Security's standards for usability, deployment, applicability, or stability.


OpenCVE Recommended Actions

  • Verify the current Ghostscript version and remove or disable Ghostscript for untrusted documents until a vendor patch becomes available.
  • Restrict Ghostscript execution to a non‑privileged user or encapsulate it in a tightly‑controlled container with no external network access.
  • Follow Red Hat security advisories and apply any future fix when released; in the meantime monitor for suspicious command execution by the Ghostscript process.

Generated by OpenCVE AI on October 6, 2026 at 23:38 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4914-1 ghostscript security update
Debian DSA Debian DSA DSA-6550-1 ghostscript security update
History
Type Values Removed Values Added
First Time appeared Redhat rhel Els
CPEs cpe:/o:redhat:enterprise_linux:6
cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:rhel_els:6
cpe:/o:redhat:rhel_els:7
Vendors & Products Redhat rhel Els
Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:9
cpe:/a:redhat:enterprise_linux:9::appstream
cpe:/a:redhat:enterprise_linux:9::crb
cpe:/o:redhat:enterprise_linux:10.2
References
Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:8 cpe:/a:redhat:enterprise_linux:8::appstream
cpe:/a:redhat:enterprise_linux:8::crb
References
Type Values Removed Values Added
First Time appeared Ghostscript
Ghostscript ghostscript
Vendors & Products Ghostscript
Ghostscript ghostscript
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Ghostscript: ghostscript: -dsafer sandbox bypass via type 5 shading oob write and procedure-stream use-after-free
First Time appeared Redhat
Redhat enterprise Linux
Weaknesses CWE-787
CPEs cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:6
cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat enterprise Linux
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Nov 4, 2026, 9:43 PM
Reserved
Sep 28, 2026, 10:28 AM
Status
Awaiting Analysis
Published
Oct 6, 2026, 9:17 PM
Modified
Nov 4, 2026, 10:17 PM
Severity
Important
Public date
Oct 6, 2026, 3:56 PM