Code Injection in Ghostscript - CVE-2018-17961

 

Code Injection in Ghostscript - CVE-2018-17961

Published: October 17, 2018


Vulnerability identifier: #VU15376
CSH Severity: High
CVSS v4: 8.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2018-17961
CWE-ID: CWE-94
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

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).


Affected software

Ghostscript
Debian Linux
Arch Linux
Red Hat Enterprise Linux Server
Red Hat Enterprise Linux Workstation
Red Hat Enterprise Linux Desktop
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Scientific Computing
Red Hat Enterprise Linux for Power
Ubuntu
Opensuse
Fedora
ghostscript (Alpine package)
ghostscript (Debian package)
libgs9 (Ubuntu package)
ghostscript (Ubuntu package)
ghostscript
EMC Cloud Tiering Appliance

How to mitigate CVE-2018-17961

Install updates from vendor's website.

ghostscript (Alpine package) - update to 9.25-r1
ghostscript (Debian package) - addressed in versions 9.06~dfsg-2+deb8u11, 9.25~dfsg-0+deb9u1
libgs9 (Ubuntu package) - addressed in versions 9.25~dfsg+1-0ubuntu0.14.04.2, 9.25~dfsg+1-0ubuntu0.16.04.2, 9.25~dfsg+1-0ubuntu0.18.04.2, 9.25~dfsg+1-0ubuntu1.1
ghostscript (Ubuntu package) - addressed in versions 9.25~dfsg+1-0ubuntu0.14.04.2, 9.25~dfsg+1-0ubuntu0.16.04.2, 9.25~dfsg+1-0ubuntu0.18.04.2, 9.25~dfsg+1-0ubuntu1.1
ghostscript - addressed in versions 9.26-1.fc28, 9.26-1.fc29
EMC Cloud Tiering Appliance - update to 12.1.0.65

External References

Related Security Bulletins