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: 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-29508
CWE-ID: CWE-122
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 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.


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

How to mitigate CVE-2024-29508

Install updates from vendor's website.

Ghostscript - update to 10.03.0
ghostscript (Ubuntu package) - addressed in versions 9.26~dfsg+0-0ubuntu0.16.04.14+esm9, 9.26~dfsg+0-0ubuntu0.18.04.18+esm4, 9.50~dfsg-5ubuntu4.13, 9.50~dfsg-5ubuntu4.15+esm1, 9.55.0~dfsg1-0ubuntu5.9, 9.55.0~dfsg1-0ubuntu5.12, 10.02.1~dfsg1-0ubuntu7.3, 10.02.1~dfsg1-0ubuntu7.7, 10.03.1~dfsg1-0ubuntu2.4, 10.05.0dfsg1-0ubuntu1.1
libgs9 (Ubuntu package) - addressed in versions 9.50~dfsg-5ubuntu4.13, 9.55.0~dfsg1-0ubuntu5.9
ghostscript - addressed in versions 9.52-15, 9.55.0-10, 9.55.0-11, 9.56.1-8
ghostscript-debuginfo - addressed in versions 9.52-15, 9.55.0-10, 9.55.0-11, 9.56.1-8
ghostscript-debugsource - addressed in versions 9.52-15, 9.55.0-10, 9.55.0-11, 9.56.1-8
ghostscript-devel - addressed in versions 9.52-15, 9.55.0-10, 9.55.0-11, 9.56.1-8
ghostscript-tools-dvipdf - addressed in versions 9.52-15, 9.55.0-10, 9.55.0-11, 9.56.1-8
ghostscript-help - addressed in versions 9.52-15, 9.55.0-10, 9.55.0-11, 9.56.1-8
ghostscript-x11 - addressed in versions 9.52-23.83.1, 9.52-150000.197.1
ghostscript - addressed in versions 9.52-23.83.1, 9.52-150000.197.1
ghostscript-x11-debuginfo - addressed in versions 9.52-23.83.1, 9.52-150000.197.1
ghostscript-debugsource - addressed in versions 9.52-23.83.1, 9.52-150000.197.1
ghostscript-debuginfo - addressed in versions 9.52-23.83.1, 9.52-150000.197.1
ghostscript-devel - addressed in versions 9.52-23.83.1, 9.52-150000.197.1
ghostscript (Debian package) - update to 10.0.0~dfsg-11+deb12u5
libgs10 (Ubuntu package) - update to 10.02.1~dfsg1-0ubuntu7.3
ghostscript - addressed in versions 10.02.1-6.fc39, 10.02.1-7.fc39, 10.02.1-11.fc40, 10.02.1-12.fc40
ghostscript - update to 10.03.0-8
ghostscript-gtk - update to 10.03.0-8
ghostscript-tools-dvipdf - update to 10.03.0-8
ghostscript-tools-fonts - update to 10.03.0-8
ghostscript-tools-printing - update to 10.03.0-8
ghostscript-x11 - update to 10.03.0-8
libgs - update to 10.03.0-8
libgs-devel - update to 10.03.0-8
ghostscript-doc - update to 10.03.0-8

External References

Related Security Bulletins