CVE-2023-28879
published critical CVSS 3.1 · 9.8ghostscript: buffer overflow in base/sbcp.c leading to data corruption
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Amazon Linux | AL2 | Release evaluationALAS2-2023-2019 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2023-162 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | ghostscript | Advisory build | 9.27-11.el8 | ALSA-2023:7053 |
| Alpine Linux | v3.14 | ghostscript | Fixed | 9.54.0-r2 | Package fix record |
| Debian | bullseye | ghostscript | Advisory build | 9.53.3~dfsg-7+deb11u4 | DSA-5383-1 |
| Oracle Linux | 8 | ghostscriptaarch64 | Advisory build | 0:9.27-11.el8 | ELSA-2023-7053 |
| Red Hat Enterprise Linux | RHEL-8 | ghostscriptaarch64 | Advisory build | 9.27-11.el8 | RHSA-2023:7053 |
Show 95 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| AlmaLinux | 8 | ghostscript-doc | Advisory build | 9.27-11.el8 | ALSA-2023:7053 |
| AlmaLinux | 8 | ghostscript-tools-dvipdf | Advisory build | 9.27-11.el8 | ALSA-2023:7053 |
| AlmaLinux | 8 | ghostscript-tools-fonts | Advisory build | 9.27-11.el8 | ALSA-2023:7053 |
| AlmaLinux | 8 | ghostscript-tools-printing | Advisory build | 9.27-11.el8 | ALSA-2023:7053 |
| AlmaLinux | 8 | ghostscript-x11 | Advisory build | 9.27-11.el8 | ALSA-2023:7053 |
| AlmaLinux | 8 | libgs | Advisory build | 9.27-11.el8 | ALSA-2023:7053 |
| AlmaLinux | 8 | libgs-devel | Advisory build | 9.27-11.el8 | ALSA-2023:7053 |
| AlmaLinux | 9 | ghostscript | Advisory build | 9.54.0-13.el9 | ALSA-2023:6544 |
| AlmaLinux | 9 | ghostscript-doc | Advisory build | 9.54.0-13.el9 | ALSA-2023:6544 |
| AlmaLinux | 9 | ghostscript-tools-dvipdf | Advisory build | 9.54.0-13.el9 | ALSA-2023:6544 |
| AlmaLinux | 9 | ghostscript-tools-fonts | Advisory build | 9.54.0-13.el9 | ALSA-2023:6544 |
| AlmaLinux | 9 | ghostscript-tools-printing | Advisory build | 9.54.0-13.el9 | ALSA-2023:6544 |
| AlmaLinux | 9 | ghostscript-x11 | Advisory build | 9.54.0-13.el9 | ALSA-2023:6544 |
| AlmaLinux | 9 | libgs | Advisory build | 9.54.0-13.el9 | ALSA-2023:6544 |
| AlmaLinux | 9 | libgs-devel | Advisory build | 9.54.0-13.el9 | ALSA-2023:6544 |
| Alpine Linux | v3.15 | ghostscript | Fixed | 9.55.0-r1 | Package fix record |
| Alpine Linux | v3.16 | ghostscript | Fixed | 9.56.1-r1 | Package fix record |
| Alpine Linux | v3.17 | ghostscript | Fixed | 10.0.0-r1 | Package fix record |
| Debian | buster | ghostscript | Advisory build | 9.27~dfsg-2+deb10u7 | DLA-3381-1 |
| Oracle Linux | 8 | ghostscriptx86_64 | Advisory build | 0:9.27-11.el8 | ELSA-2023-7053 |
| Oracle Linux | 8 | ghostscript-docaarch64 | Advisory build | 0:9.27-11.el8 | ELSA-2023-7053 |
| Oracle Linux | 8 | ghostscript-docx86_64 | Advisory build | 0:9.27-11.el8 | ELSA-2023-7053 |
| Oracle Linux | 8 | ghostscript-tools-dvipdfaarch64 | Advisory build | 0:9.27-11.el8 | ELSA-2023-7053 |
| Oracle Linux | 8 | ghostscript-tools-dvipdfx86_64 | Advisory build | 0:9.27-11.el8 | ELSA-2023-7053 |
| Oracle Linux | 8 | ghostscript-tools-fontsaarch64 | Advisory build | 0:9.27-11.el8 | ELSA-2023-7053 |
| Oracle Linux | 8 | ghostscript-tools-fontsx86_64 | Advisory build | 0:9.27-11.el8 | ELSA-2023-7053 |
| Oracle Linux | 8 | ghostscript-tools-printingaarch64 | Advisory build | 0:9.27-11.el8 | ELSA-2023-7053 |
| Oracle Linux | 8 | ghostscript-tools-printingx86_64 | Advisory build | 0:9.27-11.el8 | ELSA-2023-7053 |
| Oracle Linux | 8 | ghostscript-x11aarch64 | Advisory build | 0:9.27-11.el8 | ELSA-2023-7053 |
| Oracle Linux | 8 | ghostscript-x11x86_64 | Advisory build | 0:9.27-11.el8 | ELSA-2023-7053 |
| Oracle Linux | 8 | libgsaarch64 | Advisory build | 0:9.27-11.el8 | ELSA-2023-7053 |
| Oracle Linux | 8 | libgsx86_64 | Advisory build | 0:9.27-11.el8 | ELSA-2023-7053 |
| Oracle Linux | 8 | libgs-develaarch64 | Advisory build | 0:9.27-11.el8 | ELSA-2023-7053 |
| Oracle Linux | 8 | libgs-develx86_64 | Advisory build | 0:9.27-11.el8 | ELSA-2023-7053 |
| Oracle Linux | 9 | ghostscriptaarch64 | Advisory build | 0:9.54.0-13.el9 | ELSA-2023-6544 |
| Oracle Linux | 9 | ghostscriptx86_64 | Advisory build | 0:9.54.0-13.el9 | ELSA-2023-6544 |
| Oracle Linux | 9 | ghostscript-docaarch64 | Advisory build | 0:9.54.0-13.el9 | ELSA-2023-6544 |
| Oracle Linux | 9 | ghostscript-docx86_64 | Advisory build | 0:9.54.0-13.el9 | ELSA-2023-6544 |
| Oracle Linux | 9 | ghostscript-tools-dvipdfaarch64 | Advisory build | 0:9.54.0-13.el9 | ELSA-2023-6544 |
| Oracle Linux | 9 | ghostscript-tools-dvipdfx86_64 | Advisory build | 0:9.54.0-13.el9 | ELSA-2023-6544 |
| Oracle Linux | 9 | ghostscript-tools-fontsaarch64 | Advisory build | 0:9.54.0-13.el9 | ELSA-2023-6544 |
| Oracle Linux | 9 | ghostscript-tools-fontsx86_64 | Advisory build | 0:9.54.0-13.el9 | ELSA-2023-6544 |
| Oracle Linux | 9 | ghostscript-tools-printingaarch64 | Advisory build | 0:9.54.0-13.el9 | ELSA-2023-6544 |
| Oracle Linux | 9 | ghostscript-tools-printingx86_64 | Advisory build | 0:9.54.0-13.el9 | ELSA-2023-6544 |
| Oracle Linux | 9 | ghostscript-x11aarch64 | Advisory build | 0:9.54.0-13.el9 | ELSA-2023-6544 |
| Oracle Linux | 9 | ghostscript-x11x86_64 | Advisory build | 0:9.54.0-13.el9 | ELSA-2023-6544 |
| Oracle Linux | 9 | libgsaarch64 | Advisory build | 0:9.54.0-13.el9 | ELSA-2023-6544 |
| Oracle Linux | 9 | libgsx86_64 | Advisory build | 0:9.54.0-13.el9 | ELSA-2023-6544 |
| Oracle Linux | 9 | libgs-develaarch64 | Advisory build | 0:9.54.0-13.el9 | ELSA-2023-6544 |
| Oracle Linux | 9 | libgs-develx86_64 | Advisory build | 0:9.54.0-13.el9 | ELSA-2023-6544 |
| Red Hat Enterprise Linux | RHEL-8 | ghostscriptppc64le | Advisory build | 9.27-11.el8 | RHSA-2023:7053 |
| Red Hat Enterprise Linux | RHEL-8 | ghostscripts390x | Advisory build | 9.27-11.el8 | RHSA-2023:7053 |
| Red Hat Enterprise Linux | RHEL-8 | ghostscriptsrc | Advisory build | 9.27-11.el8 | RHSA-2023:7053 |
| Red Hat Enterprise Linux | RHEL-8 | ghostscriptx86_64 | Advisory build | 9.27-11.el8 | RHSA-2023:7053 |
| Red Hat Enterprise Linux | RHEL-8 | ghostscript-debuginfoaarch64 | Advisory build | 9.27-11.el8 | RHSA-2023:7053 |
| Red Hat Enterprise Linux | RHEL-8 | ghostscript-debuginfoi686 | Advisory build | 9.27-11.el8 | RHSA-2023:7053 |
| Red Hat Enterprise Linux | RHEL-8 | ghostscript-debuginfoppc64le | Advisory build | 9.27-11.el8 | RHSA-2023:7053 |
| Red Hat Enterprise Linux | RHEL-8 | ghostscript-debuginfos390x | Advisory build | 9.27-11.el8 | RHSA-2023:7053 |
| Red Hat Enterprise Linux | RHEL-8 | ghostscript-debuginfox86_64 | Advisory build | 9.27-11.el8 | RHSA-2023:7053 |
| Red Hat Enterprise Linux | RHEL-8 | ghostscript-debugsourceaarch64 | Advisory build | 9.27-11.el8 | RHSA-2023:7053 |
| Red Hat Enterprise Linux | RHEL-8 | ghostscript-debugsourcei686 | Advisory build | 9.27-11.el8 | RHSA-2023:7053 |
| Red Hat Enterprise Linux | RHEL-8 | ghostscript-debugsourceppc64le | Advisory build | 9.27-11.el8 | RHSA-2023:7053 |
| Red Hat Enterprise Linux | RHEL-8 | ghostscript-debugsources390x | Advisory build | 9.27-11.el8 | RHSA-2023:7053 |
| Red Hat Enterprise Linux | RHEL-8 | ghostscript-debugsourcex86_64 | Advisory build | 9.27-11.el8 | RHSA-2023:7053 |
| Red Hat Enterprise Linux | RHEL-8 | ghostscript-gtk-debuginfoaarch64 | Advisory build | 9.27-11.el8 | RHSA-2023:7053 |
| Red Hat Enterprise Linux | RHEL-8 | ghostscript-gtk-debuginfoi686 | Advisory build | 9.27-11.el8 | RHSA-2023:7053 |
| Red Hat Enterprise Linux | RHEL-8 | ghostscript-gtk-debuginfoppc64le | Advisory build | 9.27-11.el8 | RHSA-2023:7053 |
| Red Hat Enterprise Linux | RHEL-8 | ghostscript-gtk-debuginfos390x | Advisory build | 9.27-11.el8 | RHSA-2023:7053 |
| Red Hat Enterprise Linux | RHEL-8 | ghostscript-gtk-debuginfox86_64 | Advisory build | 9.27-11.el8 | RHSA-2023:7053 |
| Red Hat Enterprise Linux | RHEL-8 | ghostscript-x11aarch64 | Advisory build | 9.27-11.el8 | RHSA-2023:7053 |
| Red Hat Enterprise Linux | RHEL-8 | ghostscript-x11ppc64le | Advisory build | 9.27-11.el8 | RHSA-2023:7053 |
| Red Hat Enterprise Linux | RHEL-8 | ghostscript-x11s390x | Advisory build | 9.27-11.el8 | RHSA-2023:7053 |
| Red Hat Enterprise Linux | RHEL-8 | ghostscript-x11x86_64 | Advisory build | 9.27-11.el8 | RHSA-2023:7053 |
| Red Hat Enterprise Linux | RHEL-8 | ghostscript-x11-debuginfoaarch64 | Advisory build | 9.27-11.el8 | RHSA-2023:7053 |
| Red Hat Enterprise Linux | RHEL-8 | ghostscript-x11-debuginfoi686 | Advisory build | 9.27-11.el8 | RHSA-2023:7053 |
| Red Hat Enterprise Linux | RHEL-8 | ghostscript-x11-debuginfoppc64le | Advisory build | 9.27-11.el8 | RHSA-2023:7053 |
| Red Hat Enterprise Linux | RHEL-8 | ghostscript-x11-debuginfos390x | Advisory build | 9.27-11.el8 | RHSA-2023:7053 |
| Red Hat Enterprise Linux | RHEL-8 | ghostscript-x11-debuginfox86_64 | Advisory build | 9.27-11.el8 | RHSA-2023:7053 |
| Red Hat Enterprise Linux | RHEL-8 | libgsaarch64 | Advisory build | 9.27-11.el8 | RHSA-2023:7053 |
| Red Hat Enterprise Linux | RHEL-8 | libgsi686 | Advisory build | 9.27-11.el8 | RHSA-2023:7053 |
| Red Hat Enterprise Linux | RHEL-8 | libgsppc64le | Advisory build | 9.27-11.el8 | RHSA-2023:7053 |
| Red Hat Enterprise Linux | RHEL-8 | libgss390x | Advisory build | 9.27-11.el8 | RHSA-2023:7053 |
| Red Hat Enterprise Linux | RHEL-8 | libgsx86_64 | Advisory build | 9.27-11.el8 | RHSA-2023:7053 |
| Red Hat Enterprise Linux | RHEL-8 | libgs-debuginfoaarch64 | Advisory build | 9.27-11.el8 | RHSA-2023:7053 |
| Red Hat Enterprise Linux | RHEL-8 | libgs-debuginfoi686 | Advisory build | 9.27-11.el8 | RHSA-2023:7053 |
| Red Hat Enterprise Linux | RHEL-8 | libgs-debuginfoppc64le | Advisory build | 9.27-11.el8 | RHSA-2023:7053 |
| Red Hat Enterprise Linux | RHEL-8 | libgs-debuginfos390x | Advisory build | 9.27-11.el8 | RHSA-2023:7053 |
| Red Hat Enterprise Linux | RHEL-8 | libgs-debuginfox86_64 | Advisory build | 9.27-11.el8 | RHSA-2023:7053 |
| Red Hat Enterprise Linux | RHEL-9 | ghostscriptaarch64 | Advisory build | 9.54.0-13.el9 | RHSA-2023:6544 |
| Red Hat Enterprise Linux | RHEL-9 | ghostscriptppc64le | Advisory build | 9.54.0-13.el9 | RHSA-2023:6544 |
| Red Hat Enterprise Linux | RHEL-9 | ghostscripts390x | Advisory build | 9.54.0-13.el9 | RHSA-2023:6544 |
| Red Hat Enterprise Linux | RHEL-9 | ghostscriptsrc | Advisory build | 9.54.0-13.el9 | RHSA-2023:6544 |
| Red Hat Enterprise Linux | RHEL-9 | ghostscriptx86_64 | Advisory build | 9.54.0-13.el9 | RHSA-2023:6544 |
| Red Hat Enterprise Linux | RHEL-9 | ghostscript-debuginfoaarch64 | Advisory build | 9.54.0-13.el9 | RHSA-2023:6544 |
| Red Hat Enterprise Linux | RHEL-9 | ghostscript-debuginfoi686 | Advisory build | 9.54.0-13.el9 | RHSA-2023:6544 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
2- n/a
- CWE-787 CWE-787 Out-of-bounds Write
References
10- [oss-security] 20230412 Ghostscript CVE-2023-28879: "Shell in the Ghost" http://www.openwall.com/lists/oss-security/2023/04/12/4
- https://bugs.ghostscript.com/show_bug.cgi?id=706494
- https://ghostscript.readthedocs.io/en/latest/News.html
- https://git.ghostscript.com/?p=ghostpdl.git%3Ba=commit%3Bh=37ed5022cecd584de868933b5b60da2e995b3179
- [debian-lts-announce] 20230404 [SECURITY] [DLA 3381-1] ghostscript security update https://lists.debian.org/debian-lts-announce/2023/04/msg00003.html
- FEDORA-2023-f51bc947bb https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CI6UCKM3XMK7PYNIRGAVDJ5VKN6XYZOE/
- FEDORA-2023-fbf86d8916 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DHJX62KSRIOBZA6FKONMJP7MEFY7LTH2/
- FEDORA-2023-366850fc87 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MADLP3GWJFLLFVNZGEDNPMDQR6CCXAHN/
- GLSA-202309-03 https://security.gentoo.org/glsa/202309-03
- DSA-5383 https://www.debian.org/security/2023/dsa-5383
Provider assertions
3mitre · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 2619792f5c2c632a8c3bcc5c8da672e5b2bfa857f87421b38d0211c44ee596a3
- Ingested
- 23 Sep 2026, 08:07:45 UTC
- Source record
- Official CVE record