Artifex Ghostscript .rsdparams Operator Handling Type Confusion RCE

Medium Nessus Plugin ID 100356


The remote Windows host contains a library that is affected by a remote command execution vulnerability.


The version of Artifex Ghostscript installed on the remote Windows host is 9.21 or earlier. It is, therefore, affected by a type confusion error when handling the '.rsdparams' operator with a '/OutputFile (%pipe%' substring. An unauthenticated, remote attacker can exploit this, via a specially crafted EPS file, to bypass the
-dSAFER sandbox and execute arbitrary commands.


Refer to bug 697799 for possible workarounds or patches. A fixed version of Ghostscript reportedly is scheduled for release in September of 2017.

See Also

Plugin Details

Severity: Medium

ID: 100356

File Name: ghostscript_9_21.nasl

Version: $Revision: 1.4 $

Type: local

Agent: windows

Family: Windows

Published: 2017/05/23

Modified: 2018/01/22

Dependencies: 100357

Risk Information

Risk Factor: Medium


Base Score: 6.8

Temporal Score: 5.9

Vector: CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P

Temporal Vector: CVSS2#E:H/RL:OF/RC:ND


Base Score: 8.8

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Vulnerability Information

CPE: cpe:/a:artifex:ghostscript, cpe:/a:artifex:gpl_ghostscript

Required KB Items: installed_sw/Ghostscript

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 2017/04/27

Vulnerability Publication Date: 2017/04/26

Reference Information

CVE: CVE-2017-8291

OSVDB: 156431

EDB-ID: 41955