Buffer overflow in Ghostscript - CVE-2025-27833

 

Buffer overflow in Ghostscript - CVE-2025-27833

Published: March 27, 2025


Vulnerability identifier: #VU106099
CSH Severity: High
CVSS v4: 8.4 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-27833
CWE-ID: CWE-119
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 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

Ghostscript
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

Install updates from vendor's website.

Ghostscript - update to 10.05.0
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