Description
A trivial sandbox (enabled with the `-dSAFER` option) escape flaw was found in the ghostscript interpreter by injecting a specially crafted pipe command. This flaw allows a specially crafted document to execute arbitrary commands on the system in the context of the ghostscript interpreter. The highest threat from this vulnerability is to confidentiality, integrity, as well as system availability.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | ghostscript | ghostpdl 9.55.0 | — |
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.53.3~dfsg-8 | — |
| Debian 13 | ghostscript | 9.53.3~dfsg-8 | — |
| Debian 12 | ghostscript | 9.53.3~dfsg-8 | — |
| Debian 11 | ghostscript | 9.53.3~dfsg-7+deb11u1 | DSA-4972-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | ghostscript | 9.54.0~dfsg1-0ubuntu2 | — |
| Ubuntu 20.04 LTS | ghostscript | 9.50~dfsg-5ubuntu4.3 | USN-5075-1 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP3 | ghostscript | 9.52-155.1 | SUSE-SU-2021:3044-1 |
| SLES 15 SP3 | libspectre | 0.2.8-3.12.1 | SUSE-SU-2021:3044-1 |
| SLES 15 SP2 | ghostscript | 9.52-155.1 | SUSE-SU-2021:3044-1 |
| SLES 15 SP2 | libspectre | 0.2.8-3.12.1 | SUSE-SU-2021:3044-1 |
| SLES 15 SP1 | ghostscript | 9.52-155.1 | SUSE-SU-2021:3044-1 |
| SLES 15 SP1 | libspectre | 0.2.8-3.12.1 | SUSE-SU-2021:3044-1 |
| SLES 15 | ghostscript | 9.52-155.1 | SUSE-SU-2021:3044-1 |
| SLES 15 | libspectre | 0.2.8-3.12.1 | SUSE-SU-2021:3044-1 |
| SLES 12 SP5 | ghostscript | 9.52-23.42.1 | SUSE-SU-2021:3180-1 |
| SLES 12 SP5 | libspectre | 0.2.7-12.12.1 | SUSE-SU-2021:3180-1 |
Show 19 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP4 | ghostscript | 9.52-23.42.1 | SUSE-SU-2021:3180-1 |
| SLES 12 SP4 | libspectre | 0.2.7-12.12.1 | SUSE-SU-2021:3180-1 |
| SLES 12 SP3 | ghostscript | 9.52-23.42.1 | SUSE-SU-2021:3180-1 |
| SLES 12 SP3 | libspectre | 0.2.7-12.12.1 | SUSE-SU-2021:3180-1 |
| SLES 12 SP2 | ghostscript | 9.52-23.42.1 | SUSE-SU-2021:3180-1 |
| SLES 12 SP2 | libspectre | 0.2.7-12.12.1 | SUSE-SU-2021:3180-1 |
| SLES for SAP 15 SP1 | ghostscript | 9.52-155.1 | SUSE-SU-2021:3044-1 |
| SLES for SAP 15 SP1 | libspectre | 0.2.8-3.12.1 | SUSE-SU-2021:3044-1 |
| SLES for SAP 15 | ghostscript | 9.52-155.1 | SUSE-SU-2021:3044-1 |
| SLES for SAP 15 | libspectre | 0.2.8-3.12.1 | SUSE-SU-2021:3044-1 |
| SLES for SAP 12 SP5 | ghostscript | 9.52-23.42.1 | SUSE-SU-2021:3180-1 |
| SLES for SAP 12 SP5 | libspectre | 0.2.7-12.12.1 | SUSE-SU-2021:3180-1 |
| SLES for SAP 12 SP4 | ghostscript | 9.52-23.42.1 | SUSE-SU-2021:3180-1 |
| SLES for SAP 12 SP4 | libspectre | 0.2.7-12.12.1 | SUSE-SU-2021:3180-1 |
| SLES for SAP 12 SP3 | ghostscript | 9.52-23.42.1 | SUSE-SU-2021:3180-1 |
| SLES for SAP 12 SP3 | libspectre | 0.2.7-12.12.1 | SUSE-SU-2021:3180-1 |
| SLE HPC 15 SP1 | ghostscript | 9.52-155.1 | SUSE-SU-2021:3044-1 |
| SLE HPC 15 SP1 | libspectre | 0.2.8-3.12.1 | SUSE-SU-2021:3044-1 |
| SLE HPC 15 | ghostscript | 9.52-155.1 | SUSE-SU-2021:3044-1 |
| SLE HPC 15 | libspectre | 0.2.8-3.12.1 | SUSE-SU-2021:3044-1 |
| SUSE OpenStack Cloud Crowbar 9 | ghostscript | 9.52-23.42.1 | SUSE-SU-2021:3180-1 |
| SUSE OpenStack Cloud Crowbar 9 | libspectre | 0.2.7-12.12.1 | SUSE-SU-2021:3180-1 |
| SUSE OpenStack Cloud Crowbar 8 | ghostscript | 9.52-23.42.1 | SUSE-SU-2021:3180-1 |
| SUSE OpenStack Cloud Crowbar 8 | libspectre | 0.2.7-12.12.1 | SUSE-SU-2021:3180-1 |
| SUSE OpenStack Cloud 9 | ghostscript | 9.52-23.42.1 | SUSE-SU-2021:3180-1 |
| SUSE OpenStack Cloud 9 | libspectre | 0.2.7-12.12.1 | SUSE-SU-2021:3180-1 |
| SUSE OpenStack Cloud 8 | ghostscript | 9.52-23.42.1 | SUSE-SU-2021:3180-1 |
| SUSE OpenStack Cloud 8 | libspectre | 0.2.7-12.12.1 | SUSE-SU-2021:3180-1 |
| SUSE Manager Server 4.0 | ghostscript | 9.52-155.1 | SUSE-SU-2021:3044-1 |
| SUSE Manager Server 4.0 | libspectre | 0.2.8-3.12.1 | SUSE-SU-2021:3044-1 |
| SUSE Manager Retail Branch Server 4.0 | ghostscript | 9.52-155.1 | SUSE-SU-2021:3044-1 |
| SUSE Manager Retail Branch Server 4.0 | libspectre | 0.2.8-3.12.1 | SUSE-SU-2021:3044-1 |
| SUSE Manager Proxy 4.0 | ghostscript | 9.52-155.1 | SUSE-SU-2021:3044-1 |
| SUSE Manager Proxy 4.0 | libspectre | 0.2.8-3.12.1 | SUSE-SU-2021:3044-1 |
| SUSE HPE Helion OpenStack 8 | ghostscript | 9.52-23.42.1 | SUSE-SU-2021:3180-1 |
| SUSE HPE Helion OpenStack 8 | libspectre | 0.2.7-12.12.1 | SUSE-SU-2021:3180-1 |
| SUSE Enterprise Storage 6 | ghostscript | 9.52-155.1 | SUSE-SU-2021:3044-1 |
| SUSE Enterprise Storage 6 | libspectre | 0.2.8-3.12.1 | SUSE-SU-2021:3044-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | ghostscript | 9.54.0-2.2 | openSUSE-SU-2024:10783-1 |
| openSUSE Leap 15.3 | ghostscript | 9.52-155.1 | openSUSE-SU-2021:3044-1 |
| openSUSE Leap 15.3 | libspectre | 0.2.8-3.12.1 | openSUSE-SU-2021:3044-1 |
| openSUSE Leap 15.2 | ghostscript +1 | 9.52-lp152.2.7.1 | openSUSE-SU-2021:1273-1 |
| openSUSE Leap 15.2 | libspectre | 0.2.8-lp152.4.3.1 | openSUSE-SU-2021:1273-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | ghostscript | 9.54-r1 | — |
| Alpine v3.23 | ghostscript | 9.54-r1 | — |
| Alpine v3.22 | ghostscript | 9.54-r1 | — |
| Alpine v3.21 | ghostscript | 9.54-r1 | — |
| Alpine v3.20 | ghostscript | 9.54-r1 | — |
Show 7 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | ghostscript | 9.54-r1 | — |
| Alpine v3.18 | ghostscript | 9.54-r1 | — |
| Alpine v3.17 | ghostscript | 9.54-r1 | — |
| Alpine v3.16 | ghostscript | 9.54-r1 | — |
| Alpine v3.15 | ghostscript | 9.54-r1 | — |
| Alpine v3.14 | ghostscript | 9.54-r1 | — |
| Alpine v3.13 | ghostscript | 9.53.3-r1 | — |
Advisories 7
- USN-5075-1 ghostscript vulnerability Ubuntu Security Notices (USN) · Apr 22, 2026
- DSA-4972-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
- openSUSE-SU-2021:1273-1 Security update for ghostscript SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2021:3044-1 Security update for ghostscript SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2021:3180-1 Security update for ghostscript SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2021:3044-1 Security update for ghostscript SUSE / openSUSE Security Updates · May 2, 2025