Buffer overflow in Ghostscript - CVE-2025-27832

 

Buffer overflow in Ghostscript - CVE-2025-27832

Published: March 27, 2025


Vulnerability identifier: #VU106098
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-27832
CWE-ID: CWE-119
Exploitation vector: Remote access
Exploit availability: No public exploit available
Affected software:
Ghostscript
Debian Linux
Gentoo Linux
SUSE Linux Enterprise Server 15 SP5
SUSE Linux Enterprise Server 15 SP4
SUSE Linux Enterprise Server 15 SP3
SUSE Linux Enterprise Server 12 SP5
SUSE Linux Enterprise Server 12 SP5 LTSS Extended
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise High Performance Computing 12
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise Server for SAP Applications 12
SUSE Linux Enterprise Desktop 15
SUSE Linux Enterprise Real Time 15
SUSE Manager Proxy
SUSE Manager Retail Branch Server
SUSE Manager Server
SUSE Enterprise Storage
Anolis OS
Red Hat Enterprise Linux Server - AUS
Basesystem Module
openSUSE Leap
Ubuntu
openEuler
Fedora
Rapid Infrastructure Automation
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
ghostscript (Ubuntu package)
libgs9 (Ubuntu package)
ghostscript
ghostscript-debuginfo
ghostscript-debugsource
ghostscript-devel
ghostscript-tools-dvipdf
ghostscript-help
ghostscript-x11-debuginfo
ghostscript-x11
ghostscript (Red Hat package)
ghostscript-tools-fonts
ghostscript-tools-printing
libgs
ghostscript-doc
libgs-devel
ghostscript (Debian package)
libgs10 (Ubuntu package)
app-text/ghostscript-gpl
ghostscript-gtk

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 contrib/japanese/gdevnpdl.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-27832

Install updates from vendor's website.

Sources