CVE-2026-101258Ghostscript: ghostscript: -dsafer sandbox bypass via type 5 shading oob write and…
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.
What to do
Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | ghostscript | Fixed | 10.07.1~dfsg-1ubuntu2.1 | UBUNTU-CVE-2026-101258 |
| Ubuntu 26.04 | ghostscript | Fixed | 10.06.0~dfsg-3ubuntu1.2 | UBUNTU-CVE-2026-101258 |
| Ubuntu 24.04 | ghostscript | Fixed | 10.02.1~dfsg1-0ubuntu7.10 | UBUNTU-CVE-2026-101258 |
| Ubuntu 22.04 | ghostscript | Fixed | 9.55.0~dfsg1-0ubuntu5.15 | UBUNTU-CVE-2026-101258 |
| Ubuntu 20.04 | ghostscript | Fix pending | 9.50~dfsg-5ubuntu4.15+esm3 (Ubuntu Pro) | UBUNTU-CVE-2026-101258 |
| Ubuntu 18.04 | ghostscript | Fix pending | 9.26~dfsg+0-0ubuntu0.18.04.18+esm6 (Ubuntu Pro) | UBUNTU-CVE-2026-101258 |
| Ubuntu 16.04 | ghostscript | Fix pending | 9.26~dfsg+0-0ubuntu0.16.04.14+esm11 (Ubuntu Pro) | UBUNTU-CVE-2026-101258 |
| Debian 14 | ghostscript | Fixed | 10.08.0~dfsg-1 | DEBIAN-CVE-2026-101258 |
| Debian 13 | ghostscript | Fixed | 10.05.1~dfsg-1+deb13u3 | DEBIAN-CVE-2026-101258 |
| Debian 12 | ghostscript | Fixed | 10.0.0~dfsg-11+deb12u9 | DEBIAN-CVE-2026-101258 |
| Red Hat Enterprise Linux 10 | ghostscript | Fixed | 0:10.02.1-16.el10_2.3 | RHSA-2026:83551 |
| Red Hat Enterprise Linux 10 | libgs | Fixed | 0:10.02.1-16.el10_2.3 | RHSA-2026:83551 |
| Red Hat Enterprise Linux 9 | ghostscript | Fixed | 0:9.54.0-19.el9_8.3 | RHSA-2026:83553 |
| Red Hat Enterprise Linux 9 | libgs | Fixed | 0:9.54.0-19.el9_8.3 | RHSA-2026:83553 |
| Red Hat Enterprise Linux 8 | ghostscript | Fixed | 0:9.27-19.el8_10 | RHSA-2026:83552 |
| Red Hat Enterprise Linux 8 | libgs | Fixed | 0:9.27-19.el8_10 | RHSA-2026:83552 |
| Red Hat Enterprise Linux 7 | ghostscript | Fix pending Affected | ||
| Red Hat Enterprise Linux 7 | ghostscript-chinese | Fix pending Affected | ||
| Red Hat Enterprise Linux 7 | ghostscript-chinese-zh_CN | Fix pending Affected | ||
| Red Hat Enterprise Linux 7 | ghostscript-chinese-zh_TW | Fix pending Affected | ||
| Red Hat Enterprise Linux 7 | ghostscript-cups | Fix pending Affected | ||
| Red Hat Enterprise Linux 7 | ghostscript-devel | Fix pending Affected | ||
| Red Hat Enterprise Linux 7 | ghostscript-doc | Fix pending Affected | ||
| Red Hat Enterprise Linux 7 | ghostscript-fonts | Not affected | ||
| Red Hat Enterprise Linux 7 | ghostscript-gtk | Fix pending Affected | ||
| Red Hat Enterprise Linux 7 | libgs | Fix pending Affected | ||
| Red Hat Enterprise Linux 7 | libgs-devel | Fix pending Affected | ||
| Red Hat Enterprise Linux 6 | ghostscript | Fix pending Affected | ||
| Red Hat Enterprise Linux 6 | ghostscript-devel | Fix pending Affected | ||
| Red Hat Enterprise Linux 6 | ghostscript-doc | Fix pending Affected | ||
| Red Hat Enterprise Linux 6 | ghostscript-fonts | Not affected | ||
| Red Hat Enterprise Linux 6 | ghostscript-gtk | Fix pending Affected | ||
| AlmaLinux 10 | ghostscript-doc | Fixed | 10.02.1-16.el10_2.3 | ALSA-2026:83551 |
| AlmaLinux 10 | ghostscript-tools-dvipdf | Fixed | 10.02.1-16.el10_2.3 | ALSA-2026:83551 |
| AlmaLinux 10 | ghostscript-tools-fonts | Fixed | 10.02.1-16.el10_2.3 | ALSA-2026:83551 |
| AlmaLinux 10 | ghostscript-tools-printing | Fixed | 10.02.1-16.el10_2.3 | ALSA-2026:83551 |
| AlmaLinux 9 | ghostscript | Fixed | 9.54.0-19.el9_8.3 | ALSA-2026:83553 |
| AlmaLinux 9 | ghostscript-doc | Fixed | 9.54.0-19.el9_8.3 | ALSA-2026:83553 |
| AlmaLinux 9 | ghostscript-tools-dvipdf | Fixed | 9.54.0-19.el9_8.3 | ALSA-2026:83553 |
| AlmaLinux 9 | ghostscript-tools-fonts | Fixed | 9.54.0-19.el9_8.3 | ALSA-2026:83553 |
| AlmaLinux 9 | ghostscript-tools-printing | Fixed | 9.54.0-19.el9_8.3 | ALSA-2026:83553 |
| AlmaLinux 9 | ghostscript-x11 | Fixed | 9.54.0-19.el9_8.3 | ALSA-2026:83553 |
| AlmaLinux 9 | libgs | Fixed | 9.54.0-19.el9_8.3 | ALSA-2026:83553 |
| AlmaLinux 9 | libgs-devel | Fixed | 9.54.0-19.el9_8.3 | ALSA-2026:83553 |
| AlmaLinux 8 | ghostscript | Fixed | 9.27-19.el8_10 | ALSA-2026:83552 |
| AlmaLinux 8 | ghostscript-doc | Fixed | 9.27-19.el8_10 | ALSA-2026:83552 |
| AlmaLinux 8 | ghostscript-tools-dvipdf | Fixed | 9.27-19.el8_10 | ALSA-2026:83552 |
| AlmaLinux 8 | ghostscript-tools-fonts | Fixed | 9.27-19.el8_10 | ALSA-2026:83552 |
| AlmaLinux 8 | ghostscript-tools-printing | Fixed | 9.27-19.el8_10 | ALSA-2026:83552 |
| AlmaLinux 8 | ghostscript-x11 | Fixed | 9.27-19.el8_10 | ALSA-2026:83552 |
| AlmaLinux 8 | libgs | Fixed | 9.27-19.el8_10 | ALSA-2026:83552 |
| AlmaLinux 8 | libgs-devel | Fixed | 9.27-19.el8_10 | ALSA-2026:83552 |
| Rocky Linux 10 | ghostscript | Fixed | 0:10.02.1-16.el10_2.3 | RLSA-2026:83551 |
| Rocky Linux 9 | ghostscript | Fixed | 0:9.54.0-19.el9_8.3 | RLSA-2026:83553 |
| Rocky Linux 8 | ghostscript | Fixed | 0:9.27-19.el8_10 | RLSA-2026:83552 |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
Workaround: No mitigation is currently available that meets Red Hat Product Security's standards for usability, deployment, applicability, or stability.
Vendor advisories:
- https://access.redhat.com/errata/RHSA-2026:83551 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:83552 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:83553 (vendor-advisory)
References
- https://access.redhat.com/errata/RHSA-2026:83551
- https://access.redhat.com/errata/RHSA-2026:83552
- https://access.redhat.com/errata/RHSA-2026:83553
- https://access.redhat.com/security/cve/CVE-2026-101258
- https://bugzilla.redhat.com/show_bug.cgi?id=2542396
- https://github.com/v12-security/pocs/tree/main/ghostscript
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.