Buffer overflow in Ghostscript - CVE-2025-27835

 

Buffer overflow in Ghostscript - CVE-2025-27835

Published: March 27, 2025


Vulnerability identifier: #VU106101
CSH Severity: High
CVSS v4.0: 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/E:U/U:Amber
CVE-ID: CVE-2025-27835
CWE-ID: CWE-119
Exploitation vector: Remote access
Exploit availability: No public exploit available
Affected software:
Ghostscript
Gentoo Linux
Debian Linux
SUSE Linux Enterprise Server 15 SP3
SUSE Linux Enterprise Server 15 SP4
SUSE Linux Enterprise Server 12 SP5 LTSS Extended
SUSE Linux Enterprise Server 12 SP5
SUSE Linux Enterprise Server 15 SP5
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise Server for SAP Applications 12
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise High Performance Computing 12
SUSE Linux Enterprise Desktop 15
SUSE Linux Enterprise Real Time 15
SUSE Manager Server
SUSE Manager Retail Branch Server
SUSE Manager Proxy
SUSE Enterprise Storage
Basesystem Module
openSUSE Leap
Ubuntu
openEuler
Anolis OS
Fedora
Rapid Infrastructure Automation
ghostscript (Ubuntu package)
libgs9 (Ubuntu package)
ghostscript
ghostscript-debuginfo
ghostscript-debugsource
ghostscript-help
ghostscript-devel
ghostscript-tools-dvipdf
ghostscript-x11
ghostscript-x11-debuginfo
ghostscript (Debian package)
libgs10 (Ubuntu package)
ghostscript-gtk
ghostscript-tools-fonts
ghostscript-tools-printing
libgs
libgs-devel
ghostscript-doc
app-text/ghostscript-gpl

Detailed vulnerability description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error in psi/zbfont.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.


How to mitigate CVE-2025-27835

Install updates from vendor's website.

Sources