Buffer overflow in Ghostscript - CVE-2025-27832
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 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.
Affected software
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
How to mitigate CVE-2025-27832
Rapid Infrastructure Automation - update to 1.1.5.3
ghostscript (Ubuntu package) - addressed in versions 9.26~dfsg+0-0ubuntu0.16.04.14+esm9, 9.26~dfsg+0-0ubuntu0.18.04.18+esm4, 9.50~dfsg-5ubuntu4.15, 9.50~dfsg-5ubuntu4.15+esm1, 9.55.0~dfsg1-0ubuntu5.11, 9.55.0~dfsg1-0ubuntu5.12, 10.02.1~dfsg1-0ubuntu7.5, 10.02.1~dfsg1-0ubuntu7.7, 10.03.1~dfsg1-0ubuntu2.2, 10.03.1~dfsg1-0ubuntu2.4, 10.05.0dfsg1-0ubuntu1.1
libgs9 (Ubuntu package) - addressed in versions 9.50~dfsg-5ubuntu4.15, 9.55.0~dfsg1-0ubuntu5.11
ghostscript - addressed in versions 9.52-21, 9.55.0-18, 9.55.0-19, 9.56.1-15
ghostscript-debuginfo - addressed in versions 9.52-21, 9.55.0-18, 9.55.0-19, 9.56.1-15
ghostscript-debugsource - addressed in versions 9.52-21, 9.55.0-18, 9.55.0-19, 9.56.1-15
ghostscript-devel - addressed in versions 9.52-21, 9.55.0-18, 9.55.0-19, 9.56.1-15
ghostscript-tools-dvipdf - addressed in versions 9.52-21, 9.55.0-18, 9.55.0-19, 9.56.1-15
ghostscript-help - addressed in versions 9.52-21, 9.55.0-18, 9.55.0-19, 9.56.1-15
ghostscript-devel - addressed in versions 9.52-23.89.1, 9.52-150000.203.1
ghostscript-x11-debuginfo - addressed in versions 9.52-23.89.1, 9.52-150000.203.1
ghostscript-debuginfo - addressed in versions 9.52-23.89.1, 9.52-150000.203.1
ghostscript-debugsource - addressed in versions 9.52-23.89.1, 9.52-150000.203.1
ghostscript - addressed in versions 9.52-23.89.1, 9.52-150000.203.1
ghostscript-x11 - addressed in versions 9.52-23.89.1, 9.52-150000.203.1
ghostscript (Red Hat package) - addressed in versions 9.54.0-7.el9_0.4, 9.54.0-12.el9_2.3, 10.02.1-16.el10_0
ghostscript-tools-fonts - addressed in versions 9.54.0-19, 10.05.1-1
ghostscript-tools-printing - addressed in versions 9.54.0-19, 10.05.1-1
ghostscript-x11 - addressed in versions 9.54.0-19, 10.05.1-1
libgs - addressed in versions 9.54.0-19, 10.05.1-1
ghostscript-tools-dvipdf - addressed in versions 9.54.0-19, 10.05.1-1
ghostscript - addressed in versions 9.54.0-19, 10.05.1-1
ghostscript-doc - addressed in versions 9.54.0-19, 10.05.1-1
libgs-devel - addressed in versions 9.54.0-19, 10.05.1-1
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
app-text/ghostscript-gpl - update to 10.05.1
ghostscript-gtk - update to 10.05.1-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
- SUSE update for ghostscript
- SUSE update for ghostscript
- openEuler 22.03 LTS SP3 update for ghostscript
- openEuler 20.03 LTS SP4 update for ghostscript
- openEuler 24.03 LTS SP1 update for ghostscript
- openEuler 24.03 LTS update for ghostscript
- openEuler 22.03 LTS SP4 update for ghostscript
- Red Hat Enterprise Linux 10 update for ghostscript
- Anolis OS update for ghostscript
- Multiple vulnerabilities in IBM Rapid Infrastructure Automation
- Ubuntu update for ghostscript
- Gentoo update for GPL Ghostscript
- Anolis OS update for ghostscript
- Red Hat Enterprise Linux 9 update for ghostscript
- Red Hat Enterprise Linux 9 update for ghostscript