Description
psi/zdevice2.c in Artifex Ghostscript before 9.26 allows remote attackers to bypass intended access restrictions because available stack space is not checked when the device remains the same.
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.26~dfsg-1 | — |
| Debian 13 | ghostscript | 9.26~dfsg-1 | — |
| Debian 12 | ghostscript | 9.26~dfsg-1 | — |
| Debian 9 | ghostscript | 9.26~dfsg-0+deb9u1 | DSA-4346-1 |
| Debian 8 | ghostscript | 9.06~dfsg-2+deb8u12 | DLA-1598-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | ghostscript | 9.26~dfsg+0-0ubuntu0.18.04.1 | USN-3831-1 |
| Ubuntu 16.04 LTS | ghostscript | 9.26~dfsg+0-0ubuntu0.16.04.1 | USN-3831-1 |
| Ubuntu 14.04 LTS | ghostscript | 9.26~dfsg+0-0ubuntu0.14.04.1 | USN-3831-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 7 | ghostscript +4 | 9.07-31.el7_6.9 | RHSA-2019:0229 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 | ghostscript | 9.26-3.9.4 | SUSE-SU-2018:4087-1 |
| SLES 15 | libspectre | 0.2.8-3.4.3 | SUSE-SU-2018:4087-1 |
| SLES 12 SP4 | ghostscript | 9.26-23.16.1 | SUSE-SU-2018:4090-1 |
| SLES 12 SP4 | libspectre | 0.2.7-12.4.1 | SUSE-SU-2018:4090-1 |
| SLES 12 SP3 | ghostscript | 9.26-23.16.1 | SUSE-SU-2018:4090-1 |
| SLES 12 SP3 | libspectre | 0.2.7-12.4.1 | SUSE-SU-2018:4090-1 |
| SLES 12 SP2 | ghostscript | 9.26-23.16.1 | SUSE-SU-2018:4090-1 |
| SLES 12 SP2 | libspectre | 0.2.7-12.4.1 | SUSE-SU-2018:4090-1 |
| SLES 12 SP1 | ghostscript | 9.26-23.16.1 | SUSE-SU-2018:4090-1 |
| SLES 12 SP1 | libspectre | 0.2.7-12.4.1 | SUSE-SU-2018:4090-1 |
Show 7 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 | ghostscript | 9.26-23.16.1 | SUSE-SU-2018:4090-1 |
| SLES 12 | libspectre | 0.2.7-12.4.1 | SUSE-SU-2018:4090-1 |
| SLES for SAP 12 SP4 | ghostscript | 9.26-23.16.1 | SUSE-SU-2018:4090-1 |
| SLES for SAP 12 SP4 | libspectre | 0.2.7-12.4.1 | SUSE-SU-2018:4090-1 |
| SLES for SAP 12 SP3 | ghostscript | 9.26-23.16.1 | SUSE-SU-2018:4090-1 |
| SLES for SAP 12 SP3 | libspectre | 0.2.7-12.4.1 | SUSE-SU-2018:4090-1 |
| SLES for SAP 12 SP2 | ghostscript | 9.26-23.16.1 | SUSE-SU-2018:4090-1 |
| SLES for SAP 12 SP2 | libspectre | 0.2.7-12.4.1 | SUSE-SU-2018:4090-1 |
| SLES for SAP 12 SP1 | ghostscript | 9.26-23.16.1 | SUSE-SU-2018:4090-2 |
| SLES for SAP 12 SP1 | libspectre | 0.2.7-12.4.1 | SUSE-SU-2018:4090-2 |
| SUSE OpenStack Cloud 7 | ghostscript | 9.26-23.16.1 | SUSE-SU-2018:4090-1 |
| SUSE OpenStack Cloud 7 | libspectre | 0.2.7-12.4.1 | SUSE-SU-2018:4090-1 |
| SUSE Enterprise Storage 4 | ghostscript | 9.26-23.16.1 | SUSE-SU-2018:4090-1 |
| SUSE Enterprise Storage 4 | libspectre | 0.2.7-12.4.1 | SUSE-SU-2018:4090-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | ghostscript | 9.54.0-2.2 | openSUSE-SU-2024:10783-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | ghostscript | 9.26-r0 | — |
| Alpine v3.23 | ghostscript | 9.26-r0 | — |
| Alpine v3.22 | ghostscript | 9.26-r0 | — |
| Alpine v3.21 | ghostscript | 9.26-r0 | — |
| Alpine v3.20 | ghostscript | 9.26-r0 | — |
Show 15 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | ghostscript | 9.26-r0 | — |
| Alpine v3.18 | ghostscript | 9.26-r0 | — |
| Alpine v3.17 | ghostscript | 9.26-r0 | — |
| Alpine v3.16 | ghostscript | 9.26-r0 | — |
| Alpine v3.15 | ghostscript | 9.26-r0 | — |
| Alpine v3.14 | ghostscript | 9.26-r0 | — |
| Alpine v3.13 | ghostscript | 9.26-r0 | — |
| Alpine v3.12 | ghostscript | 9.26-r0 | — |
| Alpine v3.11 | ghostscript | 9.26-r0 | — |
| Alpine v3.10 | ghostscript | 9.26-r0 | — |
| Alpine v3.9 | ghostscript | 9.26-r0 | — |
| Alpine v3.8 | ghostscript | 9.26-r0 | — |
| Alpine v3.7 | ghostscript | 9.26-r0 | — |
| Alpine v3.6 | ghostscript | 9.26-r0 | — |
| Alpine v3.5 | ghostscript | 9.26-r0 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2 | libgs +5 | 9.25-5.amzn2 | ALAS2-2021-1598 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 7 | ghostscript +4 | 9.07-31.el7_6.9 | ELSA-2019-0229 |
Advisories 10
- RHSA-2019:0229 Red Hat Security Advisory: ghostscript security and bug fix update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- USN-3831-1 ghostscript vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- DSA-4346-1 ghostscript - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-1598-1 ghostscript - security update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2024:10783-1 ghostscript-9.54.0-2.2 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:4087-1 Security update for ghostscript SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:4090-2 Security update for ghostscript SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:4090-1 Security update for ghostscript SUSE / openSUSE Security Updates · Feb 4, 2026
- ALAS2-2021-1598 Important: ghostscript security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Feb 19, 2021
- ELSA-2019-0229 Important: ghostscript security and bug fix update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Jan 31, 2019
References
- DSA-4346 vendor-advisory
- RHSA-2019:0229 vendor-advisory
- USN-3831-1 vendor-advisory
- http://git.ghostscript.com/?p=ghostpdl.git%3Ba=commit%3Bh=3005fcb9bb160af199e761e03bc70a9f249a987e
- https://bugs.ghostscript.com/show_bug.cgi?id=700153
- https://semmle.com/news/semmle-discovers-severe-vulnerability-ghostscript-postscript-pdf
- 106154 vdb-entry
- [debian-lts-announce] 20181128 [SECURITY] [DLA 1598-1] ghostscript security update mailing-list
- https://www.ghostscript.com/doc/9.26/History9.htm#Version9.26
- http://git.ghostscript.com/?p=ghostpdl.git%3Ba=commit%3Bh=aeea342904978c9fe17d85f4906a0f6fcce2d315
- RHBA-2019:0327 vendor-advisory