Buffer overflow in Ghostscript - CVE-2023-28879

 

Buffer overflow in Ghostscript - CVE-2023-28879

Published: April 6, 2023


Vulnerability identifier: #VU74502
CSH Severity: High
CVSS v4: 8.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2023-28879
CWE-ID: CWE-119
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error when processing files within BCPEncode, BCPDecode, TBCPEncode, and TBCPDecode methods in base/sbcp.c. A remote attacker can create a specially crafted document, trick the victim into opening it, trigger memory corruption and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

Ghostscript
Debian Linux
Amazon Linux AMI
Gentoo Linux
Oracle Linux
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise High Performance Computing 12
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise Desktop 15
SUSE Linux Enterprise Server for SAP Applications 12
SUSE Linux Enterprise Software Development Kit 12
SUSE CaaS Platform
SUSE Manager Server
SUSE Manager Retail Branch Server
SUSE Manager Proxy
SUSE Enterprise Storage
Red Hat CodeReady Linux Builder for x86_64
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for x86_64
Red Hat CodeReady Linux Builder for Power, little endian
Red Hat CodeReady Linux Builder for ARM 64
Red Hat CodeReady Linux Builder for IBM z Systems
Anolis OS
SUSE OpenStack Cloud
SUSE OpenStack Cloud Crowbar
Oracle Solaris
SUSE Linux Enterprise Server 12 SP2 BCL
SUSE Linux Enterprise Server 12 SP4 ESPOS
SUSE Linux Enterprise Server 12 SP4 LTSS
SUSE Linux Enterprise Server 15 SP1 LTSS
SUSE Linux Enterprise High Performance Computing 15 SP1 LTSS
SUSE Linux Enterprise High Performance Computing 15 SP2 LTSS
SUSE Linux Enterprise Server 15 SP2 LTSS
SUSE Linux Enterprise Server 15 SP3 LTSS
Basesystem Module
openSUSE Leap
Ubuntu
openEuler
Fedora
Migration Toolkit for Containers
libgs9 (Ubuntu package)
ghostscript (Ubuntu package)
ghostscript
ghostscript (Red Hat package)
ghostscript-tools-dvipdf
ghostscript-debugsource
ghostscript-devel
ghostscript-help
ghostscript-debuginfo
ghostscript-x11
ghostscript-x11-debuginfo
ghostscript (Debian package)
ghostscript-doc
libgs-devel
libgs
ghostscript-tools-printing
ghostscript-tools-fonts
libgs10 (Ubuntu package)
app-text/ghostscript-gpl

How to mitigate CVE-2023-28879

Install updates from vendor's website.

Ghostscript - update to 10.01.1
Migration Toolkit for Containers - addressed in versions 1.7.15, 1.8.3
libgs9 (Ubuntu package) - addressed in versions Ubuntu Pro, 9.26~dfsg+0-0ubuntu0.18.04.18, 9.50~dfsg-5ubuntu4.7, 9.55.0~dfsg1-0ubuntu5.2, 9.56.1~dfsg1-0ubuntu3.1
ghostscript (Ubuntu package) - addressed in versions Ubuntu Pro, 9.26~dfsg+0-0ubuntu0.18.04.18, 9.50~dfsg-5ubuntu4.7, 9.55.0~dfsg1-0ubuntu5.2, 9.56.1~dfsg1-0ubuntu3.1, 10.0.0~dfsg1-0ubuntu1.1
ghostscript - addressed in versions 8.70-24.28, 9.56.1-7
ghostscript (Red Hat package) - addressed in versions 9.27-11.el8, 9.54.0-13.el9
ghostscript - addressed in versions 9.52-9, 9.52-10, 9.55.0-5
ghostscript-tools-dvipdf - addressed in versions 9.52-9, 9.52-10, 9.55.0-5
ghostscript-debugsource - addressed in versions 9.52-9, 9.52-10, 9.55.0-5
ghostscript-devel - addressed in versions 9.52-9, 9.52-10, 9.55.0-5
ghostscript-help - addressed in versions 9.52-9, 9.52-10, 9.55.0-5
ghostscript-debuginfo - addressed in versions 9.52-9, 9.52-10, 9.55.0-5
ghostscript-devel - addressed in versions 9.52-23.51.1, 9.52-150000.164.1
ghostscript-debugsource - addressed in versions 9.52-23.51.1, 9.52-150000.164.1
ghostscript-x11 - addressed in versions 9.52-23.51.1, 9.52-150000.164.1
ghostscript-x11-debuginfo - addressed in versions 9.52-23.51.1, 9.52-150000.164.1
ghostscript-debuginfo - addressed in versions 9.52-23.51.1, 9.52-150000.164.1
ghostscript - addressed in versions 9.52-23.51.1, 9.52-150000.164.1
ghostscript (Debian package) - update to 9.53.3~dfsg-7+deb11u4
ghostscript-doc - update to 9.54.0-11
libgs-devel - update to 9.54.0-11
libgs - update to 9.54.0-11
ghostscript-x11 - update to 9.54.0-11
ghostscript-tools-printing - update to 9.54.0-11
ghostscript-tools-fonts - update to 9.54.0-11
ghostscript-tools-dvipdf - update to 9.54.0-11
ghostscript - update to 9.54.0-11
ghostscript - addressed in versions 9.56.1-7.fc36, 9.56.1-7.fc37, 10.01.0-3.fc38
libgs10 (Ubuntu package) - update to 10.0.0~dfsg1-0ubuntu1.1
app-text/ghostscript-gpl - update to 10.01.2

External References

Related Security Bulletins