Out-of-bounds write in GhostPDL and Ghostscript - CVE-2024-46956

 

Out-of-bounds write in GhostPDL and Ghostscript - CVE-2024-46956

Published: November 1, 2024


Vulnerability identifier: #VU99617
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-2024-46956
CWE-ID: CWE-787
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to compromise vulnerable system.

The vulnerability exists due to a boundary error when processing untrusted input in filenameforall. A remote attacker can create a specially crafted file, trick the victim into opening it using the affected software, trigger an out-of-bounds write and execute arbitrary code on the target system.


Affected software

GhostPDL
Ghostscript
Gentoo Linux
Debian Linux
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise High Performance Computing 12
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise Server for SAP Applications 12
SUSE Linux Enterprise Desktop 15
SUSE Manager Server
SUSE Manager Retail Branch Server
SUSE Manager Proxy
SUSE Enterprise Storage
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for x86_64
Red Hat CodeReady Linux Builder for Power, little endian
Red Hat CodeReady Linux Builder for IBM z Systems
Red Hat CodeReady Linux Builder for ARM 64
Red Hat CodeReady Linux Builder for x86_64
Red Hat Enterprise Linux for Power, little endian
Anolis OS
SUSE Linux Enterprise Server 12 SP5 LTSS Extended Security
SUSE Linux Enterprise Server 12 SP5 LTSS
SUSE Linux Enterprise Server 15 SP2 LTSS
SUSE Linux Enterprise High Performance Computing 15 SP2 LTSS
SUSE Linux Enterprise Server 15 SP3 LTSS
SUSE Linux Enterprise Server 15 SP4 LTSS
SUSE Linux Enterprise Desktop 15 SP4 LTSS
Basesystem Module
openSUSE Leap
Ubuntu
openEuler
Fedora
Rapid Infrastructure Automation
Oracle Communications User Data Repository
libgs9 (Ubuntu package)
ghostscript (Red Hat package)
ghostscript (Ubuntu package)
ghostscript-debugsource
ghostscript-x11
ghostscript-x11-debuginfo
ghostscript
ghostscript-debuginfo
ghostscript-devel
libgs-devel
ghostscript-tools-dvipdf
ghostscript-tools-fonts
ghostscript-tools-printing
libgs
ghostscript-doc
ghostscript-help
ghostscript (Debian package)
libgs10 (Ubuntu package)
app-text/ghostscript-gpl
Migration Toolkit for Containers

How to mitigate CVE-2024-46956

Install updates from vendor's website.

GhostPDL - update to 10.04.0
Ghostscript - update to 10.04.0
Rapid Infrastructure Automation - update to 1.1.5.3
libgs9 (Ubuntu package) - addressed in versions Ubuntu Pro, 9.50~dfsg-5ubuntu4.14, 9.55.0~dfsg1-0ubuntu5.10
Migration Toolkit for Containers - update to 1.8.7
ghostscript (Red Hat package) - addressed in versions 9.27-16.el8_10, 9.54.0-18.el9_6
ghostscript (Ubuntu package) - addressed in versions 9.50~dfsg-5ubuntu4.14, 9.55.0~dfsg1-0ubuntu5.10, 10.02.1~dfsg1-0ubuntu7.4, 10.03.1~dfsg1-0ubuntu2.1
ghostscript-debugsource - addressed in versions 9.52-23.86.1, 9.52-150000.200.1
ghostscript-x11 - addressed in versions 9.52-23.86.1, 9.52-150000.200.1
ghostscript-x11-debuginfo - addressed in versions 9.52-23.86.1, 9.52-150000.200.1
ghostscript - addressed in versions 9.52-23.86.1, 9.52-150000.200.1
ghostscript-debuginfo - addressed in versions 9.52-23.86.1, 9.52-150000.200.1
ghostscript-devel - addressed in versions 9.52-23.86.1, 9.52-150000.200.1
ghostscript - update to 9.54.0-18.0.1
libgs-devel - update to 9.54.0-18.0.1
ghostscript-tools-dvipdf - update to 9.54.0-18.0.1
ghostscript-tools-fonts - update to 9.54.0-18.0.1
ghostscript-tools-printing - update to 9.54.0-18.0.1
ghostscript-x11 - update to 9.54.0-18.0.1
libgs - update to 9.54.0-18.0.1
ghostscript-doc - update to 9.54.0-18.0.1
ghostscript - update to 9.55.0-12
ghostscript-help - update to 9.55.0-12
ghostscript-tools-dvipdf - update to 9.55.0-12
ghostscript-devel - update to 9.55.0-12
ghostscript-debugsource - update to 9.55.0-12
ghostscript-debuginfo - update to 9.55.0-12
ghostscript (Debian package) - update to 10.0.0~dfsg-11+deb12u6
libgs10 (Ubuntu package) - addressed in versions 10.02.1~dfsg1-0ubuntu7.4, 10.03.1~dfsg1-0ubuntu2.1
ghostscript - addressed in versions 10.02.1-13.fc40, 10.03.1-4.fc41
app-text/ghostscript-gpl - update to 10.04.0

External References

Related Security Bulletins