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.

Severity (CVSS 3.1)9.8Critical
Exploit odds (30 days)6.3%top 6.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
AlmaLinux:8ghostscript9.27-11.el8ALSA-2023:7053
AlmaLinux:9ghostscript9.54.0-13.el9ALSA-2023:6544
AlmaLinux:8ghostscript-doc9.27-11.el8ALSA-2023:7053
AlmaLinux:9ghostscript-doc9.54.0-13.el9ALSA-2023:6544
AlmaLinux:8ghostscript-tools-dvipdf9.27-11.el8ALSA-2023:7053
AlmaLinux:9ghostscript-tools-dvipdf9.54.0-13.el9ALSA-2023:6544
AlmaLinux:8ghostscript-tools-fonts9.27-11.el8ALSA-2023:7053
AlmaLinux:9ghostscript-tools-fonts9.54.0-13.el9ALSA-2023:6544
AlmaLinux:8ghostscript-tools-printing9.27-11.el8ALSA-2023:7053
AlmaLinux:9ghostscript-tools-printing9.54.0-13.el9ALSA-2023:6544
AlmaLinux:8ghostscript-x119.27-11.el8ALSA-2023:7053
AlmaLinux:9ghostscript-x119.54.0-13.el9ALSA-2023:6544
AlmaLinux:8libgs9.27-11.el8ALSA-2023:7053
AlmaLinux:9libgs9.54.0-13.el9ALSA-2023:6544
AlmaLinux:8libgs-devel9.27-11.el8ALSA-2023:7053
AlmaLinux:9libgs-devel9.54.0-13.el9ALSA-2023:6544
Debian:12ghostscript10.0.0~dfsg-11DEBIAN-CVE-2023-28879
Debian:13ghostscript10.0.0~dfsg-11DEBIAN-CVE-2023-28879
Debian:14ghostscript10.0.0~dfsg-11DEBIAN-CVE-2023-28879
Ubuntu:22.04:LTSghostscript9.55.0~dfsg1-0ubuntu5.2UBUNTU-CVE-2023-28879
Ubuntu:22.04:LTSghostscript9.55.0~dfsg1-0ubuntu5.2USN-6017-1

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

Weakness: CWE-787 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References