Artifex Ghostscript .rsdparams Operator Handling Type Confusion RCE

high Nessus Plugin ID 100356

Synopsis

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

Description

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.

Solution

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

https://bugs.ghostscript.com/show_bug.cgi?id=697799

https://bugs.ghostscript.com/show_bug.cgi?id=697808

http://www.nessus.org/u?ef741fb0

Plugin Details

Severity: High

ID: 100356

File Name: ghostscript_9_21.nasl

Version: 1.10

Type: local

Agent: windows

Family: Windows

Published: 5/23/2017

Updated: 5/25/2022

Supported Sensors: Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Critical

Score: 9.5

CVSS v2

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

CVSS Score Source: CVE-2017-8291

CVSS v3

Risk Factor: High

Base Score: 7.8

Temporal Score: 7.5

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

Temporal Vector: CVSS:3.0/E:H/RL:O/RC:C

Vulnerability Information

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

Required KB Items: installed_sw/Ghostscript

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 4/27/2017

Vulnerability Publication Date: 4/26/2017

CISA Known Exploited Vulnerability Due Dates: 6/14/2022

Reference Information

CVE: CVE-2017-8291