Vulnerability · Published Mar 31, 2023 · Assigned by mitre
CVE-2023-28879
Critical 9.8
In plain English
A critical-severity out-of-bounds write in the ghostscript package (AlmaLinux). Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 6.3% (higher than 94% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | ghostscript | 9.27-11.el8 | ALSA-2023:7053 |
| AlmaLinux:9 | ghostscript | 9.54.0-13.el9 | ALSA-2023:6544 |
| AlmaLinux:8 | ghostscript-doc | 9.27-11.el8 | ALSA-2023:7053 |
| AlmaLinux:9 | ghostscript-doc | 9.54.0-13.el9 | ALSA-2023:6544 |
| AlmaLinux:8 | ghostscript-tools-dvipdf | 9.27-11.el8 | ALSA-2023:7053 |
| AlmaLinux:9 | ghostscript-tools-dvipdf | 9.54.0-13.el9 | ALSA-2023:6544 |
| AlmaLinux:8 | ghostscript-tools-fonts | 9.27-11.el8 | ALSA-2023:7053 |
| AlmaLinux:9 | ghostscript-tools-fonts | 9.54.0-13.el9 | ALSA-2023:6544 |
| AlmaLinux:8 | ghostscript-tools-printing | 9.27-11.el8 | ALSA-2023:7053 |
| AlmaLinux:9 | ghostscript-tools-printing | 9.54.0-13.el9 | ALSA-2023:6544 |
| AlmaLinux:8 | ghostscript-x11 | 9.27-11.el8 | ALSA-2023:7053 |
| AlmaLinux:9 | ghostscript-x11 | 9.54.0-13.el9 | ALSA-2023:6544 |
| AlmaLinux:8 | libgs | 9.27-11.el8 | ALSA-2023:7053 |
| AlmaLinux:9 | libgs | 9.54.0-13.el9 | ALSA-2023:6544 |
| AlmaLinux:8 | libgs-devel | 9.27-11.el8 | ALSA-2023:7053 |
| AlmaLinux:9 | libgs-devel | 9.54.0-13.el9 | ALSA-2023:6544 |
| Debian:12 | ghostscript | 10.0.0~dfsg-11 | DEBIAN-CVE-2023-28879 |
| Debian:13 | ghostscript | 10.0.0~dfsg-11 | DEBIAN-CVE-2023-28879 |
| Debian:14 | ghostscript | 10.0.0~dfsg-11 | DEBIAN-CVE-2023-28879 |
| Ubuntu:22.04:LTS | ghostscript | 9.55.0~dfsg1-0ubuntu5.2 | UBUNTU-CVE-2023-28879 |
| Ubuntu:22.04:LTS | ghostscript | 9.55.0~dfsg1-0ubuntu5.2 | USN-6017-1 |
Affected products (as reported)
Weakness: CWE-787 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
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