CVE-2026-112177Ghostscript: reintroduction of .charkeys -dsafer bypass in rhel 8
A flaw was found in Ghostscript as shipped with Red Hat Enterprise Linux 8. The correction for CVE-2019-14869 was omitted during the rebase from version 9.25 to 9.27, leaving privileged .forceput operations in the .charkeys procedure insufficiently protected. Processing a specially crafted PostScript file may allow an attacker to bypass -dSAFER restrictions and access files outside the permitted paths or execute commands with the permissions of the Ghostscript process.
What to do
Fixed builds are available from AlmaLinux, Red Hat, Rocky Linux: see the table below for the fixed version per release.
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 |
|---|---|---|---|---|
| Red Hat Enterprise Linux 10 | ghostscript | Not affected | ||
| Red Hat Enterprise Linux 10 | ghostscript-doc | Not affected | ||
| Red Hat Enterprise Linux 10 | ghostscript-tools-dvipdf | Not affected | ||
| Red Hat Enterprise Linux 10 | ghostscript-tools-fonts | Not affected | ||
| Red Hat Enterprise Linux 10 | ghostscript-tools-printing | Not affected | ||
| Red Hat Enterprise Linux 10 | libgs | Not affected | ||
| Red Hat Enterprise Linux 10 | libgs-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | ghostscript | Not affected | ||
| Red Hat Enterprise Linux 9 | ghostscript-doc | Not affected | ||
| Red Hat Enterprise Linux 9 | ghostscript-tools-dvipdf | Not affected | ||
| Red Hat Enterprise Linux 9 | ghostscript-tools-fonts | Not affected | ||
| Red Hat Enterprise Linux 9 | ghostscript-tools-printing | Not affected | ||
| Red Hat Enterprise Linux 9 | ghostscript-x11 | Not affected | ||
| Red Hat Enterprise Linux 9 | libgs | Not affected | ||
| Red Hat Enterprise Linux 9 | libgs-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | ghostscript | Fixed | 0:9.27-20.el8_10 | RHSA-2026:93978 |
| Red Hat Enterprise Linux 7 | ghostscript | Not affected | ||
| Red Hat Enterprise Linux 7 | ghostscript-cups | Not affected | ||
| Red Hat Enterprise Linux 7 | ghostscript-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | ghostscript-doc | Not affected | ||
| Red Hat Enterprise Linux 7 | ghostscript-gtk | Not affected | ||
| Red Hat Enterprise Linux 7 | libgs | Not affected | ||
| Red Hat Enterprise Linux 7 | libgs-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | ghostscript | Not affected | ||
| Red Hat Enterprise Linux 6 | ghostscript-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | ghostscript-doc | Not affected | ||
| Red Hat Enterprise Linux 6 | ghostscript-gtk | Not affected | ||
| AlmaLinux 8 | ghostscript | Fixed | 9.27-20.el8_10 | ALSA-2026:93978 |
| AlmaLinux 8 | ghostscript-doc | Fixed | 9.27-20.el8_10 | ALSA-2026:93978 |
| AlmaLinux 8 | ghostscript-tools-dvipdf | Fixed | 9.27-20.el8_10 | ALSA-2026:93978 |
| AlmaLinux 8 | ghostscript-tools-fonts | Fixed | 9.27-20.el8_10 | ALSA-2026:93978 |
| AlmaLinux 8 | ghostscript-tools-printing | Fixed | 9.27-20.el8_10 | ALSA-2026:93978 |
| AlmaLinux 8 | ghostscript-x11 | Fixed | 9.27-20.el8_10 | ALSA-2026:93978 |
| AlmaLinux 8 | libgs | Fixed | 9.27-20.el8_10 | ALSA-2026:93978 |
| AlmaLinux 8 | libgs-devel | Fixed | 9.27-20.el8_10 | ALSA-2026:93978 |
| Rocky Linux 8 | ghostscript | Fixed | 0:9.27-20.el8_10 | RLSA-2026:93978 |
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 8
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 9
Workaround: Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability. --- CME Mitigation Guidance (2026-10-20) --- Disclaimer: The following mitigation solutions are provided as a courtesy, pending the application of an official patch. This content was generated utilizing AI tools in conjunction with data from https://cmetaxonomy.org. Customers are advised to independently evaluate and test these temporary mitigations within their own infrastructure. The highest-value action is to eliminate privileged .forceput operations in the .charkeys procedure to enforce -dSAFER sandbox boundaries: upgrade to the fixed Ghostscript builds, which replace .forceput invocations with standard put operations in the /.charkeys procedure in…
Vendor advisories:
- https://access.redhat.com/errata/RHSA-2026:93978 (vendor-advisory)
References
- https://access.redhat.com/errata/RHSA-2026:93978
- https://access.redhat.com/security/cve/CVE-2026-112177
- https://bugzilla.redhat.com/show_bug.cgi?id=2555564
- https://github.com/ArtifexSoftware/ghostpdl/commit/485904772c5f0aa1140032746e5a0abfc40f4cef
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.