Description
An issue was discovered in base/gsdevice.c in Artifex Ghostscript before 10.04.0. An integer overflow when parsing the filename format string (for the output filename) results in path truncation, and possible path traversal and code execution.
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.04.0~dfsg-1 | — |
| Debian 13 | ghostscript | 10.04.0~dfsg-1 | — |
| Debian 12 | ghostscript | 10.0.0~dfsg-11+deb12u6 | DSA-5808-1 |
| Debian 11 | ghostscript | 9.53.3~dfsg-7+deb11u9 | DLA-3965-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 24.04 LTS | ghostscript | 10.02.1~dfsg1-0ubuntu7.4 | USN-7103-1 |
| Ubuntu 22.04 LTS | ghostscript | 9.55.0~dfsg1-0ubuntu5.10 | USN-7103-1 |
| Ubuntu 20.04 LTS | ghostscript | 9.50~dfsg-5ubuntu4.14 | USN-7103-1 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 18.04 LTS | ghostscript | 9.26~dfsg+0-0ubuntu0.18.04.18+esm3 | USN-7138-1 |
| Ubuntu Pro 16.04 LTS | ghostscript | 9.26~dfsg+0-0ubuntu0.16.04.14+esm8 | USN-7138-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 10 | libgs +6 | 10.02.1-15.el10_0 | RHSA-2025:7499 |
| RHEL 9 | libgs +7 | 9.54.0-18.el9_6 | RHSA-2025:7422 |
| RHEL 8 | libgs +7 | 9.27-16.el8_10 | RHSA-2025:4362 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 9 | libgs +7 | 9.54.0-18.el9_6 | ALSA-2025:7422 |
| AlmaLinux 8 | libgs +7 | 9.27-16.el8_10 | ALSA-2025:4362 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 8 | ghostscript | 9.27-16.el8_10 | RLSA-2025:4362 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP6 | ghostscript | 9.52-150000.200.1 | SUSE-SU-2024:3941-1 |
| SLES 15 SP5 | ghostscript | 9.52-150000.200.1 | SUSE-SU-2024:3941-1 |
| SLES 15 SP4 | ghostscript | 9.52-150000.200.1 | SUSE-SU-2024:3941-1 |
| SLES 15 SP3 | ghostscript | 9.52-150000.200.1 | SUSE-SU-2024:3941-1 |
| SLES 15 SP2 | ghostscript | 9.52-150000.200.1 | SUSE-SU-2024:3941-1 |
Show 10 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP5 | ghostscript | 9.52-23.86.1 | SUSE-SU-2024:3942-1 |
| SLES for SAP 15 SP4 | ghostscript | 9.52-150000.200.1 | SUSE-SU-2024:3941-1 |
| SLES for SAP 15 SP3 | ghostscript | 9.52-150000.200.1 | SUSE-SU-2024:3941-1 |
| SLES for SAP 15 SP2 | ghostscript | 9.52-150000.200.1 | SUSE-SU-2024:3941-1 |
| SLE HPC 15 SP4 | ghostscript | 9.52-150000.200.1 | SUSE-SU-2024:3941-1 |
| SLE HPC 15 SP3 | ghostscript | 9.52-150000.200.1 | SUSE-SU-2024:3941-1 |
| SLE HPC 15 SP2 | ghostscript | 9.52-150000.200.1 | SUSE-SU-2024:3941-1 |
| SUSE Manager Server 4.3 | ghostscript | 9.52-150000.200.1 | SUSE-SU-2024:3941-1 |
| SUSE Manager Proxy 4.3 | ghostscript | 9.52-150000.200.1 | SUSE-SU-2024:3941-1 |
| SUSE Enterprise Storage 7.1 | ghostscript | 9.52-150000.200.1 | SUSE-SU-2024:3941-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | ghostscript | 10.04.0-1.1 | openSUSE-SU-2024:14423-1 |
| openSUSE Leap 15.6 | ghostscript | 9.52-150000.200.1 | SUSE-SU-2024:3941-1 |
| openSUSE Leap 15.5 | ghostscript | 9.52-150000.200.1 | SUSE-SU-2024:3941-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | ghostscript | 10.04.0-r0 | — |
| Alpine v3.23 | ghostscript | 10.04.0-r0 | — |
| Alpine v3.22 | ghostscript | 10.04.0-r0 | — |
| Alpine v3.21 | ghostscript | 10.04.0-r0 | — |
| Alpine v3.20 | ghostscript | 10.04.0-r0 | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | ghostscript | 10.04.0-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.11 | ALAS2023-2024-774 |
| Amazon Linux 2 | libgs +5 | 9.54.0-9.amzn2.0.7 | ALAS2-2024-2708 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 10 | libgs +6 | 10.02.1-16.el10_0 | ELSA-2025-7499 |
| Oracle Linux 9 | libgs +7 | 9.54.0-18.el9_6 | ELSA-2025-7422 |
| Oracle Linux 8 | libgs +7 | 9.27-16.el8_10 | ELSA-2025-4362 |
Advisories 19
- ALSA-2025:7422 Moderate: ghostscript security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2025:4362 Moderate: ghostscript security update AlmaLinux Security Advisories · Oct 29, 2026
- RHSA-2025:4362 Red Hat Security Advisory: ghostscript security update Red Hat Security Advisories (RHSA) · Aug 7, 2026
- RHSA-2025:7422 Red Hat Security Advisory: ghostscript security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- RHSA-2025:7499 Red Hat Security Advisory: ghostscript security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- USN-7138-1 ghostscript vulnerabilities Ubuntu Security Notices (USN) · Jun 25, 2026
- USN-7103-1 ghostscript vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- DSA-5808-1 ghostscript - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-3965-1 ghostscript - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2024:3941-1 Security update for ghostscript SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:3942-1 Security update for ghostscript SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:14423-1 ghostscript-10.04.0-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- RLSA-2025:4362 Moderate: ghostscript security update Rocky Linux Security Advisories · Jul 29, 2025
- WID-SEC-2024-3373 Ghostscript: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jun 30, 2025
- ELSA-2025-7499 Moderate: ghostscript security update (Oracle Linux 10) Oracle Linux Security Advisories (ELSA) · Jun 30, 2025
- ELSA-2025-7422 Moderate: ghostscript security update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · May 21, 2025
- ELSA-2025-4362 Moderate: ghostscript security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Apr 30, 2025
- ALAS2-2024-2708 Important: ghostscript security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Dec 19, 2024
- ALAS2023-2024-774 Important: ghostscript security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Dec 16, 2024
References
- https://bugs.ghostscript.com/show_bug.cgi?id=707793
- https://github.com/ArtifexSoftware/ghostpdl/blob/master/doc/News.html
- https://www.suse.com/support/update/announcement/2024/suse-su-20243942-1/
- https://cgit.ghostscript.com/cgi-bin/cgit.cgi/ghostpdl.git/commit/?id=1f21a45df0fa3abec4cff12951022b192dda3c00