CVE-2026-101258 Ghostscript: ghostscript: -dsafer sandbox bypass via type 5 shading oob write and procedure-stream use-after-free
Attackers can bypass the -dSAFER sandbox in Ghostscript to execute arbitrary shell commands via crafted PostScript or EPS documents.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2026-101258?
CVE-2026-101258 is a high-severity code injection vulnerability in Red Hat Enterprise Linux 10, published on 6 Oct 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-787
Which versions are affected by CVE-2026-101258?
How do I fix CVE-2026-101258?
Apply the vendor's patch.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2026-101258 being exploited?
There is no known exploitation of CVE-2026-101258 in the wild and no public exploit code.
Sources
Also known as BELL-CVE-2026-101258, CLSA-2026-1792809195, CLSA-2026-1792809614, DEBIAN-CVE-2026-101258, ECHO-b554-1d48-28ad, GHSA-g96p-c3cq-wp28 and 1 more.