CVE-1999-0155
HighExploitation Probability (EPSS)
High risk87th percentile - higher than 87% of all known CVEs
Summary
The ghostscript command with the -dSAFER option allows remote attackers to execute commands.
Risk Assessment
Attackers can exploit this vulnerability to remotely execute unauthorized commands, potentially leading to serious security breaches.
Recommendation
It is recommended to disable the -dSAFER option or implement additional security measures to mitigate the risk.
Other vulnerabilities in ghostscript
See all- CVE-2026-39919Critical
Ghostscript before 10.08.0 contains a heap-based buffer overflow in the JPEG 2000 output adapter (base/sjpx_openjpeg.c). An attacker can cause memory corruption by supplying a crafted PDF containing a JPEG 2000 image with mismatched component subsampling factors. The issue is fixed in version 10.08.0.
- CVE-2025-27837Critical
An issue was discovered in Artifex Ghostscript before 10.05.0. Access to arbitrary files can occur through a truncated path with invalid UTF-8 characters, for base/gp_mswin.c and base/winrtsup.cpp.
- CVE-2025-27836Critical
An issue was discovered in Artifex Ghostscript before 10.05.0. The BJ10V device has a Print buffer overflow in contrib/japanese/gdev10v.c.
- CVE-2025-27832Critical
Artifex Ghostscript before 10.05.0 has a Compression buffer overflow in the NPDL device in contrib/japanese/gdevnpdl.c. This may lead to a crash or potential code execution.
- CVE-2025-27831Critical
An issue was discovered in Artifex Ghostscript before 10.05.0. The DOCXWRITE TXTWRITE device has a text buffer overflow via long characters to devices/vector/doc_common.c.
- CVE-2023-36664High
Artifex Ghostscript before 10.01.2 mishandles permission validation for pipe devices (with the %pipe% prefix or the | pipe character prefix).
- CVE-2016-7976High
The PS Interpreter in Ghostscript versions 9.18 and 9.20 allows remote attackers to execute arbitrary code via crafted userparams.
- CVE-2016-7979Critical
Ghostscript before 9.21 might allow remote attackers to bypass the SAFER mode protection mechanism and consequently execute arbitrary code by leveraging type confusion in .initialize_dsc_parser.
- CVE-2016-7978Critical
A use-after-free vulnerability in Ghostscript 9.20 may allow remote attackers to execute arbitrary code via reference leaks in the .setdevice function.
- CVE-2026-125396High
Ghostscript before 10.08.0 contains a -dSAFER bypass vulnerability in the .putgstringcopy procedure in gs_fonts.ps, which calls the privileged .forceput operator without checking operand types. Attackers can supply crafted PostScript or PDF documents that trigger a type error, recover .forceput via a custom error handler, and cause a use-after-free across save/restore to execute arbitrary code.
Original NVD description (English source)
The ghostscript command with the -dSAFER option allows remote attackers to execute commands.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

