Description
Ghostscript GhostPDL 9.50 through 9.54.0 has a heap-based buffer overflow in sampled_data_finish (called from sampled_data_continue and interp).
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.55.0~dfsg-1 | — |
| Debian 13 | ghostscript | 9.55.0~dfsg-1 | — |
| Debian 12 | ghostscript | 9.55.0~dfsg-1 | — |
| Debian 11 | ghostscript | 9.53.3~dfsg-7+deb11u2 | DSA-5038-1 |
| Debian 10 | ghostscript | 9.27~dfsg-2+deb10u5 | DSA-5038-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 9 | ghostscript | 9.26a~dfsg-0+deb9u8 | DLA-2879-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | ghostscript | 9.50~dfsg-5ubuntu4.5 | USN-5224-1 |
| Ubuntu 18.04 LTS | ghostscript | 9.26~dfsg+0-0ubuntu0.18.04.15 | USN-5224-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 16.04 LTS | ghostscript | 9.26~dfsg+0-0ubuntu0.16.04.14+esm1 | USN-5224-2 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP3 | ghostscript | 9.52-161.1 | SUSE-SU-2022:0088-1 |
| SLES 15 SP2 | ghostscript | 9.52-161.1 | SUSE-SU-2022:0088-3 |
| SLES 15 SP1 | ghostscript | 9.52-161.1 | SUSE-SU-2022:0088-3 |
| SLES 12 SP5 | ghostscript | 9.52-23.48.1 | SUSE-SU-2022:0081-1 |
Show 9 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 15 SP2 | ghostscript | 9.52-161.1 | SUSE-SU-2022:0088-3 |
| SLES for SAP 15 SP1 | ghostscript | 9.52-161.1 | SUSE-SU-2022:0088-3 |
| SLES for SAP 12 SP5 | ghostscript | 9.52-23.48.1 | SUSE-SU-2022:0081-1 |
| SLE Real Time 15 SP2 | ghostscript | 9.52-161.1 | SUSE-SU-2022:0088-2 |
| SLE HPC 15 SP2 | ghostscript | 9.52-161.1 | SUSE-SU-2022:0088-3 |
| SLE HPC 15 SP1 | ghostscript | 9.52-161.1 | SUSE-SU-2022:0088-3 |
| SUSE Package Hub 12 SP1 | htmldoc | 1.8.28-9.1 | openSUSE-SU-2022:0088-1 |
| SUSE Enterprise Storage 7 | ghostscript | 9.52-161.1 | SUSE-SU-2022:0088-3 |
| SUSE Enterprise Storage 6 | ghostscript | 9.52-161.1 | SUSE-SU-2022:0088-3 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | ghostscript | 9.54.0-3.1 | openSUSE-SU-2024:11744-1 |
| openSUSE Leap 15.3 | ghostscript | 9.52-161.1 | openSUSE-SU-2022:0088-1 |
Advisories 11
- USN-5224-1 ghostscript vulnerabilities Ubuntu Security Notices (USN) · Oct 8, 2026
- USN-5224-2 ghostscript vulnerabilities Ubuntu Security Notices (USN) · Oct 8, 2026
- DSA-5038-1 ghostscript - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-2879-1 ghostscript - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2022:0088-2 Security update for ghostscript SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11744-1 ghostscript-9.54.0-3.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2022:0088-1 Security update for ghostscript SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:0088-1 Security update for ghostscript SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:0081-1 Security update for ghostscript SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:0088-3 Security update for ghostscript SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2023-0232 Ghostscript: Mehrere Schwachstellen ermöglichen Codeausführung BSI CERT-Bund (WID) · Jan 30, 2023
References
- https://github.com/google/oss-fuzz-vulns/blob/main/vulns/ghostscript/OSV-2021-803.yaml
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=34675
- https://git.ghostscript.com/?p=ghostpdl.git%3Ba=commit%3Bh=2a3129365d3bc0d4a41f107ef175920d1505d1f7
- DSA-5038 vendor-advisory
- [debian-lts-announce] 20220114 [SECURITY] [DLA 2879-1] ghostscript security update mailing-list