Buffer overflow in Ghostscript - CVE-2025-27834

 

Buffer overflow in Ghostscript - CVE-2025-27834

Published: March 27, 2025


Vulnerability identifier: #VU106100
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-27834
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 in pdf/pdf_func.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
Gentoo Linux
Debian Linux
Ubuntu
openEuler
Anolis OS
Fedora
Rapid Infrastructure Automation
ghostscript (Ubuntu package)
libgs9 (Ubuntu package)
ghostscript-help
ghostscript-tools-dvipdf
ghostscript-devel
ghostscript-debugsource
ghostscript-debuginfo
ghostscript
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-27834

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-help - addressed in versions 9.55.0-18, 9.55.0-19, 9.56.1-15
ghostscript-tools-dvipdf - addressed in versions 9.55.0-18, 9.55.0-19, 9.56.1-15
ghostscript-devel - addressed in versions 9.55.0-18, 9.55.0-19, 9.56.1-15
ghostscript-debugsource - addressed in versions 9.55.0-18, 9.55.0-19, 9.56.1-15
ghostscript-debuginfo - addressed in versions 9.55.0-18, 9.55.0-19, 9.56.1-15
ghostscript - addressed in versions 9.55.0-18, 9.55.0-19, 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