Stack-based buffer overflow in Ghostscript - CVE-2024-29507
Published: July 5, 2024
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 the CIDFSubstPath and CIDFSubstFont parameters. A remote attacker can trigger a stack-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
Debian Linux
Ubuntu
openEuler
Fedora
ghostscript (Ubuntu package)
libgs9 (Ubuntu package)
ghostscript-help
ghostscript-tools-dvipdf
ghostscript-devel
ghostscript-debugsource
ghostscript-debuginfo
ghostscript
ghostscript (Debian package)
libgs10 (Ubuntu package)
How to mitigate CVE-2024-29507
ghostscript (Ubuntu package) - addressed in versions 9.50~dfsg-5ubuntu4.13, 9.55.0~dfsg1-0ubuntu5.9, 10.02.1~dfsg1-0ubuntu7.3
libgs9 (Ubuntu package) - addressed in versions 9.50~dfsg-5ubuntu4.13, 9.55.0~dfsg1-0ubuntu5.9
ghostscript-help - addressed in versions 9.55.0-16, 9.55.0-17, 9.56.1-13
ghostscript-tools-dvipdf - addressed in versions 9.55.0-16, 9.55.0-17, 9.56.1-13
ghostscript-devel - addressed in versions 9.55.0-16, 9.55.0-17, 9.56.1-13
ghostscript-debugsource - addressed in versions 9.55.0-16, 9.55.0-17, 9.56.1-13
ghostscript-debuginfo - addressed in versions 9.55.0-16, 9.55.0-17, 9.56.1-13
ghostscript - addressed in versions 9.55.0-16, 9.55.0-17, 9.56.1-13
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
External References
Related Security Bulletins
- Multiple vulnerabilities in Artifex Ghostscript
- Ubuntu update for ghostscript
- Fedora 40 update for ghostscript
- Fedora 39 update for ghostscript
- Fedora 40 update for ghostscript
- Fedora 39 update for ghostscript
- Debian update for ghostscript
- openEuler 22.03 LTS SP3 update for ghostscript
- openEuler 22.03 LTS SP4 update for ghostscript
- openEuler 24.03 LTS update for ghostscript
- openEuler 22.03 LTS SP1 update for ghostscript