Heap-based buffer overflow in Ghostscript - CVE-2024-29508

 

Heap-based buffer overflow in Ghostscript - CVE-2024-29508

Published: July 5, 2024


Vulnerability identifier: #VU93815
CSH Severity: High
CVSS v4.0: 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/E:U/U:Amber
CVE-ID: CVE-2024-29508
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available
Affected software:
Ghostscript
Debian Linux
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise Desktop 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
Basesystem Module
openSUSE Leap
Ubuntu
openEuler
Anolis OS
Fedora
ghostscript (Ubuntu package)
libgs9 (Ubuntu package)
ghostscript
ghostscript-debuginfo
ghostscript-debugsource
ghostscript-devel
ghostscript-tools-dvipdf
ghostscript-help
ghostscript-x11
ghostscript-x11-debuginfo
ghostscript (Debian package)
libgs10 (Ubuntu package)
ghostscript-gtk
ghostscript-tools-fonts
ghostscript-tools-printing
libgs
libgs-devel
ghostscript-doc

Detailed vulnerability description

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

The vulnerability exists due to a boundary error within the pdf_base_font_alloc() function. A remote attacker can pass specially crafted PDF file to the application, trigger a heap-based buffer overflow and execute arbitrary code on the target system.

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


How to mitigate CVE-2024-29508

Install updates from vendor's website.

Sources