Description
In Artifex Ghostscript through 10.01.0, there is a buffer overflow leading to potential corruption of data internal to the PostScript interpreter, in base/sbcp.c. This affects BCPEncode, BCPDecode, TBCPEncode, and TBCPDecode. If the write buffer is filled to one byte less than full, and one then tries to write an escaped character, two bytes are written.
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.0.0~dfsg-11 | — |
| Debian 13 | ghostscript | 10.0.0~dfsg-11 | — |
| Debian 12 | ghostscript | 10.0.0~dfsg-11 | — |
| Debian 11 | ghostscript | 9.53.3~dfsg-7+deb11u4 | DSA-5383-1 |
| Debian 10 | ghostscript | 9.27~dfsg-2+deb10u7 | DLA-3381-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | ghostscript | 9.55.0~dfsg1-0ubuntu5.2 | USN-6017-1 |
| Ubuntu 20.04 LTS | ghostscript | 9.50~dfsg-5ubuntu4.7 | USN-6017-1 |
| Ubuntu 18.04 LTS | ghostscript | 9.26~dfsg+0-0ubuntu0.18.04.18 | USN-6017-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+esm5 | USN-6017-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 9 | libgs +7 | 9.54.0-13.el9 | RHSA-2023:6544 |
| RHEL 8 | libgs +7 | 9.27-11.el8 | RHSA-2023:7053 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 9 | libgs +7 | 9.54.0-13.el9 | ALSA-2023:6544 |
| AlmaLinux 8 | libgs +7 | 9.27-11.el8 | ALSA-2023:7053 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP4 | ghostscript | 9.52-150000.164.1 | SUSE-SU-2023:1799-1 |
| SLES 15 SP3 | ghostscript | 9.52-150000.164.1 | SUSE-SU-2023:1799-1 |
| SLES 15 SP2 | ghostscript | 9.52-150000.164.1 | SUSE-SU-2023:1799-1 |
| SLES 15 SP1 | ghostscript | 9.52-150000.164.1 | SUSE-SU-2023:1799-1 |
| SLES 12 SP5 | ghostscript | 9.52-23.51.1 | SUSE-SU-2023:1797-1 |
Show 17 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP4 | ghostscript | 9.52-23.51.1 | SUSE-SU-2023:1797-1 |
| SLES 12 SP2 | ghostscript | 9.52-23.51.1 | SUSE-SU-2023:1797-1 |
| SLES for SAP 15 SP3 | ghostscript | 9.52-150000.164.1 | SUSE-SU-2023:1799-1 |
| SLES for SAP 15 SP2 | ghostscript | 9.52-150000.164.1 | SUSE-SU-2023:1799-1 |
| SLES for SAP 15 SP1 | ghostscript | 9.52-150000.164.1 | SUSE-SU-2023:1799-1 |
| SLES for SAP 12 SP5 | ghostscript | 9.52-23.51.1 | SUSE-SU-2023:1797-1 |
| SLES for SAP 12 SP4 | ghostscript | 9.52-23.51.1 | SUSE-SU-2023:1797-1 |
| SLE Real Time 15 SP3 | ghostscript | 9.52-150000.164.1 | SUSE-SU-2023:1799-1 |
| SLE HPC 15 SP3 | ghostscript | 9.52-150000.164.1 | SUSE-SU-2023:1799-1 |
| SLE HPC 15 SP2 | ghostscript | 9.52-150000.164.1 | SUSE-SU-2023:1799-1 |
| SLE HPC 15 SP1 | ghostscript | 9.52-150000.164.1 | SUSE-SU-2023:1799-1 |
| SUSE OpenStack Cloud Crowbar 9 | ghostscript | 9.52-23.51.1 | SUSE-SU-2023:1797-1 |
| SUSE OpenStack Cloud 9 | ghostscript | 9.52-23.51.1 | SUSE-SU-2023:1797-1 |
| SUSE Manager Server 4.2 | ghostscript | 9.52-150000.164.1 | SUSE-SU-2023:1799-1 |
| SUSE Manager Proxy 4.2 | ghostscript | 9.52-150000.164.1 | SUSE-SU-2023:1799-1 |
| SUSE Enterprise Storage 7.1 | ghostscript | 9.52-150000.164.1 | SUSE-SU-2023:1799-1 |
| SUSE Enterprise Storage 7 | ghostscript | 9.52-150000.164.1 | SUSE-SU-2023:1799-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | ghostscript | 9.56.1-2.1 | openSUSE-SU-2024:12853-1 |
| openSUSE Leap 15.4 | ghostscript | 9.52-150000.164.1 | SUSE-SU-2023:1799-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.17 | ghostscript | 10.0.0-r1 | — |
| Alpine v3.16 | ghostscript | 9.56.1-r1 | — |
| Alpine v3.15 | ghostscript | 9.55.0-r1 | — |
| Alpine v3.14 | ghostscript | 9.54.0-r2 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | libgs +8 | 9.56.1-7.amzn2023.0.1 | ALAS2023-2023-162 |
| Amazon Linux 2 | libgs +5 | 9.25-5.amzn2.0.3 | ALAS2-2023-2019 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 9 | libgs +7 | 9.54.0-13.el9 | ELSA-2023-6544 |
| Oracle Linux 8 | libgs +7 | 9.27-11.el8 | ELSA-2023-7053 |
Advisories 16
- ALSA-2023:6544 Moderate: ghostscript security and bug fix update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2023:7053 Moderate: ghostscript security and bug fix update AlmaLinux Security Advisories · Oct 29, 2026
- WID-SEC-2023-2917 Xerox FreeFlow Print Server: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jun 30, 2026
- RHSA-2023:6544 Red Hat Security Advisory: ghostscript security and bug fix update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- RHSA-2023:7053 Red Hat Security Advisory: ghostscript security and bug fix update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- USN-6017-1 ghostscript vulnerability Ubuntu Security Notices (USN) · Jun 25, 2026
- DSA-5383-1 ghostscript - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-3381-1 ghostscript - security update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2024:12853-1 ghostscript-9.56.1-2.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2023:1797-1 Security update for ghostscript SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2023:1799-1 Security update for ghostscript SUSE / openSUSE Security Updates · Feb 4, 2026
- ELSA-2023-7053 Moderate: ghostscript security and bug fix update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Nov 17, 2023
- WID-SEC-2023-0827 Ghostscript: Schwachstelle ermöglicht nicht spezifizierten Angriff BSI CERT-Bund (WID) · Nov 14, 2023
- ELSA-2023-6544 Moderate: ghostscript security and bug fix update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · Nov 11, 2023
- ALAS2023-2023-162 Important: ghostscript security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · May 3, 2023
- ALAS2-2023-2019 Important: ghostscript security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · May 2, 2023
References
- https://bugs.ghostscript.com/show_bug.cgi?id=706494
- https://git.ghostscript.com/?p=ghostpdl.git%3Ba=commit%3Bh=37ed5022cecd584de868933b5b60da2e995b3179
- https://ghostscript.readthedocs.io/en/latest/News.html
- [debian-lts-announce] 20230404 [SECURITY] [DLA 3381-1] ghostscript security update mailing-list
- DSA-5383 vendor-advisory
- FEDORA-2023-f51bc947bb vendor-advisory
- [oss-security] 20230412 Ghostscript CVE-2023-28879: "Shell in the Ghost" mailing-list
- FEDORA-2023-fbf86d8916 vendor-advisory
- FEDORA-2023-366850fc87 vendor-advisory
- GLSA-202309-03 vendor-advisory