Description
An issue was discovered in Artifex Ghostscript before 10.03.1. Path traversal and command execution can occur (via a crafted PostScript document) because of path reduction in base/gpmisc.c. For example, restrictions on use of %pipe% can be bypassed via the aa/../%pipe%command# output filename.
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 | 10.03.1~dfsg~git20240518-1 | — |
| Debian 13 | ghostscript | 10.03.1~dfsg~git20240518-1 | — |
| Debian 12 | ghostscript | 10.0.0~dfsg-11+deb12u4 | DSA-5692-1 |
| Debian 11 | ghostscript | 9.53.3~dfsg-7+deb11u7 | DSA-5692-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 24.04 LTS | ghostscript | 10.02.1~dfsg1-0ubuntu7.1 | USN-6835-1 |
| Ubuntu 22.04 LTS | ghostscript | 9.55.0~dfsg1-0ubuntu5.7 | USN-6835-1 |
| Ubuntu 20.04 LTS | ghostscript | 9.50~dfsg-5ubuntu4.12 | USN-6835-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 9 | libgs +7 | 9.54.0-17.el9_4 | RHSA-2024:6197 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 9.2 EUS | libgs +7 | 9.54.0-12.el9_2.2 | RHSA-2024:6466 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 9 | libgs +7 | 9.54.0-17.el9_4 | ALSA-2024:6197 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 9 | ghostscript | 9.54.0-17.el9_4 | RLSA-2024:6197 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP6 | ghostscript | 9.52-150000.194.1 | SUSE-SU-2024:2292-1 |
| SLES 15 SP5 | ghostscript | 9.52-150000.194.1 | SUSE-SU-2024:2292-1 |
| SLES 15 SP4 | ghostscript | 9.52-150000.194.1 | SUSE-SU-2024:2292-1 |
| SLES 15 SP3 | ghostscript | 9.52-150000.194.1 | SUSE-SU-2024:2292-1 |
| SLES 15 SP2 | ghostscript | 9.52-150000.194.1 | SUSE-SU-2024:2292-1 |
Show 11 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP5 | ghostscript | 9.52-23.80.1 | SUSE-SU-2024:2276-1 |
| SLES for SAP 15 SP4 | ghostscript | 9.52-150000.194.1 | SUSE-SU-2024:2292-1 |
| SLES for SAP 15 SP3 | ghostscript | 9.52-150000.194.1 | SUSE-SU-2024:2292-1 |
| SLES for SAP 15 SP2 | ghostscript | 9.52-150000.194.1 | SUSE-SU-2024:2292-1 |
| SLES for SAP 12 SP5 | ghostscript | 9.52-23.80.1 | SUSE-SU-2024:2276-1 |
| SLE HPC 15 SP4 | ghostscript | 9.52-150000.194.1 | SUSE-SU-2024:2292-1 |
| SLE HPC 15 SP3 | ghostscript | 9.52-150000.194.1 | SUSE-SU-2024:2292-1 |
| SLE HPC 15 SP2 | ghostscript | 9.52-150000.194.1 | SUSE-SU-2024:2292-1 |
| SUSE Manager Server 4.3 | ghostscript | 9.52-150000.194.1 | SUSE-SU-2024:2292-1 |
| SUSE Manager Proxy 4.3 | ghostscript | 9.52-150000.194.1 | SUSE-SU-2024:2292-1 |
| SUSE Enterprise Storage 7.1 | ghostscript | 9.52-150000.194.1 | SUSE-SU-2024:2292-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | ghostscript | 10.03.1-1.1 | openSUSE-SU-2024:14090-1 |
| openSUSE Leap 15.6 | ghostscript | 9.52-150000.194.1 | SUSE-SU-2024:2292-1 |
| openSUSE Leap 15.5 | ghostscript | 9.52-150000.194.1 | SUSE-SU-2024:2292-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | ghostscript | 10.03.1-r0 | — |
| Alpine v3.23 | ghostscript | 10.03.1-r0 | — |
| Alpine v3.22 | ghostscript | 10.03.1-r0 | — |
| Alpine v3.21 | ghostscript | 10.03.1-r0 | — |
| Alpine v3.20 | ghostscript | 10.03.1-r0 | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | ghostscript | 10.03.1-r0 | — |
| Alpine v3.18 | ghostscript | 10.04.0-r0 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | libgs +8 | 9.56.1-7.amzn2023.0.10 | ALAS2023-2024-691 |
| Amazon Linux 2 | libgs +5 | 9.54.0-9.amzn2.0.6 | ALAS2-2024-2612 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 9 | libgs +7 | 9.54.0-17.el9_4 | ELSA-2024-6197 |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | ghostscript | 10.03.1-r0 | — |
Advisories 13
- ALSA-2024:6197 Moderate: ghostscript security update AlmaLinux Security Advisories · Oct 29, 2026
- RHSA-2024:6466 Red Hat Security Advisory: ghostscript security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- RHSA-2024:6197 Red Hat Security Advisory: ghostscript security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- USN-6835-1 ghostscript vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
- DSA-5692-1 ghostscript - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2024:2276-1 Security update for ghostscript SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:2292-1 Security update for ghostscript SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:14090-1 ghostscript-10.03.1-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- RLSA-2024:6197 Moderate: ghostscript security update Rocky Linux Security Advisories · May 7, 2025
- WID-SEC-2024-1444 Ghostscript: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jan 12, 2025
- ELSA-2024-6197 Moderate: ghostscript security update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · Sep 3, 2024
- ALAS2-2024-2612 Moderate: ghostscript security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Aug 13, 2024
- ALAS2023-2024-691 Moderate: ghostscript security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Aug 6, 2024