Description
The .sethalftone5 function in psi/zht2.c in Ghostscript before 9.21 allows remote attackers to cause a denial of service (application crash) or possibly execute arbitrary code via a crafted Postscript document that calls .sethalftone5 with an empty operand stack.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | ghostscript | 9.19~dfsg-3.1 | — |
| Debian 13 | ghostscript | 9.19~dfsg-3.1 | — |
| Debian 12 | ghostscript | 9.19~dfsg-3.1 | — |
| Debian 8 | ghostscript | 9.06~dfsg-2+deb8u3 | DSA-3691-1 |
| Debian 7 | ghostscript | 9.05~dfsg-6.3+deb7u3 | DLA-674-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | ghostscript | 9.18~dfsg~0-0ubuntu2.2 | USN-3148-1 |
| Ubuntu 14.04 LTS | ghostscript | 9.10~dfsg-0ubuntu10.5 | USN-3148-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 7 | ghostscript +4 | 9.07-20.el7_3.1 | RHSA-2017:0013 |
| RHEL 6 | ghostscript +3 | 8.70-21.el6_8.1 | RHSA-2017:0014 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP1 | ghostscript | 9.15-14.1 | SUSE-SU-2016:2654-1 |
| SLES 11 SP4 | ghostscript-library | 8.62-32.41.1 | SUSE-SU-2016:2723-1 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 12 SP1 | ghostscript | 9.15-14.1 | SUSE-SU-2016:2654-1 |
| SLES for SAP 11 SP4 | ghostscript-library | 8.62-32.41.1 | SUSE-SU-2016:2723-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | ghostscript | 9.20-2.1 | openSUSE-SU-2024:10003-1 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 7 | ghostscript +4 | 9.07-20.el7_3.1 | ELSA-2017-0013 |
Advisories 9
- RHSA-2017:0013 Red Hat Security Advisory: ghostscript security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- RHSA-2017:0014 Red Hat Security Advisory: ghostscript security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- USN-3148-1 ghostscript vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- DLA-674-1 ghostscript - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-3691-1 ghostscript - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2016:2654-1 Security update for ghostscript SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:10003-1 ghostscript-9.20-2.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2016:2723-1 Security update for ghostscript-library SUSE / openSUSE Security Updates · Feb 4, 2026
- ELSA-2017-0013 Moderate: ghostscript security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Jan 4, 2017
References
- DSA-3691 vendor-advisory
- 95311 vdb-entry
- RHSA-2017:0013 vendor-advisory
- RHSA-2017:0014 vendor-advisory
- [oss-security] 20161011 Re: CVE Request - multiple ghostscript -dSAFER sandbox problems mailing-list
- http://git.ghostscript.com/?p=ghostpdl.git%3Ba=commitdiff%3Bh=f5c7555c303
- https://bugs.ghostscript.com/show_bug.cgi?id=697203
- https://ghostscript.com/doc/9.21/History9.htm
- GLSA-201702-31 vendor-advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1383940
- [oss-security] 20161011 Re: CVE Request - multiple ghostscript -dSAFER sandbox problems mailing-list