Buffer overflow in Ghostscript - CVE-2025-27833
Published: March 27, 2025
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 long TTF font names in pdf/pdf_fmap.c. A remote attacker can create a specially crafted document, trick the victim into opening it, trigger memory corruption 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
Gentoo Linux
Ubuntu
Anolis OS
openEuler
Fedora
Rapid Infrastructure Automation
ghostscript (Ubuntu package)
libgs9 (Ubuntu package)
ghostscript-debugsource
ghostscript
ghostscript-help
ghostscript-tools-dvipdf
ghostscript-devel
ghostscript-debuginfo
ghostscript (Debian package)
libgs10 (Ubuntu package)
ghostscript-doc
ghostscript-gtk
ghostscript-tools-fonts
ghostscript-tools-printing
ghostscript-x11
libgs
libgs-devel
app-text/ghostscript-gpl
How to mitigate CVE-2025-27833
Rapid Infrastructure Automation - update to 1.1.5.3
ghostscript (Ubuntu package) - addressed in versions 9.50~dfsg-5ubuntu4.15, 9.55.0~dfsg1-0ubuntu5.11, 10.02.1~dfsg1-0ubuntu7.5, 10.03.1~dfsg1-0ubuntu2.2
libgs9 (Ubuntu package) - addressed in versions 9.50~dfsg-5ubuntu4.15, 9.55.0~dfsg1-0ubuntu5.11
ghostscript-debugsource - update to 9.56.1-15
ghostscript - update to 9.56.1-15
ghostscript-help - update to 9.56.1-15
ghostscript-tools-dvipdf - update to 9.56.1-15
ghostscript-devel - update to 9.56.1-15
ghostscript-debuginfo - update to 9.56.1-15
ghostscript (Debian package) - update to 10.0.0~dfsg-11+deb12u7
libgs10 (Ubuntu package) - addressed in versions 10.02.1~dfsg1-0ubuntu7.5, 10.03.1~dfsg1-0ubuntu2.2
ghostscript - addressed in versions 10.02.1-14.fc40, 10.03.1-5.fc41
ghostscript-doc - update to 10.03.0-8
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
app-text/ghostscript-gpl - update to 10.05.1
External References
Related Security Bulletins
- Multiple remote code execution vulnerabilities in Artifex Ghostscript
- Debian update for ghostscript
- Ubuntu update for ghostscript
- Fedora 41 update for ghostscript
- Fedora 40 update for ghostscript
- openEuler 24.03 LTS SP1 update for ghostscript
- openEuler 24.03 LTS update for ghostscript
- Anolis OS update for ghostscript
- Multiple vulnerabilities in IBM Rapid Infrastructure Automation
- Gentoo update for GPL Ghostscript