PT-2017-4163 · Artifex+6 · Artifex Ghostscript+6
Published
2017-04-26
·
Updated
2025-12-10
·
CVE-2017-8291
CVSS v3.1
7.8
High
| Vector | AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
Artifex Ghostscript versions through 2017-04-26
Description
The issue is related to a type confusion vulnerability in the .rsdparams operator, allowing remote command execution and bypass of the -dSAFER protection mechanism. This can be achieved by using a crafted .eps document with a "/OutputFile (%pipe%" substring as input to the gs program. The vulnerability was exploited in the wild in April 2017. It is also used by the APT37 group to target individuals for intelligence gathering, often through phishing emails containing malicious attachments that exploit an old EPS vulnerability in the Hangul text processor.
Recommendations
For Artifex Ghostscript versions through 2017-04-26, update to a version released after 2017-04-26 to fix the vulnerability. As a temporary workaround, consider disabling the use of .rsdparams operator in crafted .eps documents until a patch is available. Restrict access to the gs program to minimize the risk of exploitation. Avoid using the "/OutputFile (%pipe%" substring in .eps documents until the issue is resolved.
Exploit
Fix
Incorrect Type Conversion or Cast
Type Confusion
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Alt Linux
Artifex Ghostscript
Centos
Hangul
Red Hat
Suse
Ubuntu