Buffer overflow in Ghostscript - CVE-2023-38559

 

Buffer overflow in Ghostscript - CVE-2023-38559

Published: August 7, 2023


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

Vulnerability details

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to a boundary error within the devn_pcx_write_rle() function in base/gdevdevn.c. A remote attacker can create a specially crafted PDF document, pass it to the affected application, trigger memory corruption and perform a denial of service (DoS) attack.


Affected software

Ghostscript
Oracle Linux
Amazon Linux AMI
SUSE Linux Enterprise Desktop 15
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise Software Development Kit 12
SUSE Linux Enterprise Server for SAP Applications 12
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise High Performance Computing 12
SUSE Manager Server
SUSE Manager Retail Branch Server
SUSE Manager Proxy
Anolis OS
Red Hat CodeReady Linux Builder for IBM z Systems
Red Hat CodeReady Linux Builder for Power, little endian
Red Hat CodeReady Linux Builder for ARM 64
Red Hat Enterprise Linux for x86_64
Red Hat CodeReady Linux Builder for x86_64
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for IBM z Systems
Basesystem Module
openSUSE Leap
Ubuntu
openEuler
Fedora
Oracle Solaris
Migration Toolkit for Containers
ghostscript (Ubuntu package)
libgs9 (Ubuntu package)
ghostscript
ghostscript (Red Hat package)
ghostscript-help
ghostscript-debuginfo
ghostscript-devel
ghostscript-debugsource
ghostscript-tools-dvipdf
ghostscript-x11
ghostscript-x11-debuginfo
ghostscript-tools-fonts
ghostscript-tools-printing
libgs
ghostscript-doc
libgs-devel
libgs10 (Ubuntu package)
ghostscript-gtk

How to mitigate CVE-2023-38559

Install update from vendor's website.

Migration Toolkit for Containers - addressed in versions 1.7.15, 1.8.3
ghostscript (Ubuntu package) - addressed in versions Ubuntu Pro, 9.50~dfsg-5ubuntu4.9, 9.55.0~dfsg1-0ubuntu5.4, 10.0.0~dfsg1-0ubuntu1.3
libgs9 (Ubuntu package) - addressed in versions Ubuntu Pro, 9.50~dfsg-5ubuntu4.9, 9.55.0~dfsg1-0ubuntu5.4
ghostscript - addressed in versions 8.70-24.29, 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-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-9, 9.52-10, 9.55.0-5
ghostscript-debugsource - 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-x11 - addressed in versions 9.52-23.57.1, 9.52-150000.170.1
ghostscript - addressed in versions 9.52-23.57.1, 9.52-150000.170.1
ghostscript-x11-debuginfo - addressed in versions 9.52-23.57.1, 9.52-150000.170.1
ghostscript-devel - addressed in versions 9.52-23.57.1, 9.52-150000.170.1
ghostscript-debuginfo - addressed in versions 9.52-23.57.1, 9.52-150000.170.1
ghostscript-debugsource - addressed in versions 9.52-23.57.1, 9.52-150000.170.1
ghostscript-x11 - addressed in versions 9.54.0-11, 10.01.2-2
ghostscript - addressed in versions 9.54.0-11, 10.01.2-2
ghostscript-tools-dvipdf - addressed in versions 9.54.0-11, 10.01.2-2
ghostscript-tools-fonts - addressed in versions 9.54.0-11, 10.01.2-2
ghostscript-tools-printing - addressed in versions 9.54.0-11, 10.01.2-2
libgs - addressed in versions 9.54.0-11, 10.01.2-2
ghostscript-doc - addressed in versions 9.54.0-11, 10.01.2-2
libgs-devel - addressed in versions 9.54.0-11, 10.01.2-2
ghostscript - addressed in versions 9.56.1-9.fc37, 10.01.2-3.fc38
libgs10 (Ubuntu package) - update to 10.0.0~dfsg1-0ubuntu1.3
ghostscript-gtk - update to 10.01.2-2
Oracle Solaris - update to 11.4 SRU 65

External References

Related Security Bulletins