#VU15376 Code Injection in Ghostscript


Published: 2018-10-17

Vulnerability identifier: #VU15376

Vulnerability risk: High

CVSSv3.1: 7.9 [CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H/E:P/RL:O/RC:C]

CVE-ID: CVE-2018-17961

CWE-ID: CWE-94

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
Ghostscript
Universal components / Libraries / Libraries used by multiple products

Vendor: Artifex Software, Inc.

Description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to improper input validation that allows sandbox bypass via error handler setup vectors. A remote attacker can pass a specially crafted PostScript file to the affected application, inject and execute arbitrary code on the target system.

Note: this vulnerability exists due to insufficient patch for previously fixed Code injection vulnerability (CVE-2018-17183).

Mitigation
Install updates from vendor's website.

Vulnerable software versions

Ghostscript: 5.50 - 9.25


External links
http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=a54c9e61e7d0
http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=a5a9bf8c6a63
http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=a6807394bd94
http://www.openwall.com/lists/oss-security/2018/10/09/4
http://bugs.chromium.org/p/project-zero/issues/detail?id=1682&desc=2
http://bugs.ghostscript.com/show_bug.cgi?id=699816
http://www.exploit-db.com/exploits/45573/


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability. However, proof of concept for this vulnerability is available.


Latest bulletins with this vulnerability