Debian update for ghostscript



| Updated: 2019-03-18
Risk High
Patch available YES
Number of vulnerabilities 2
CVE-ID CVE-2018-16509
CVE-2018-16802
CWE-ID CWE-78
CWE-121
Exploitation vector Network
Public exploit Vulnerability #1 is being exploited in the wild.
Vulnerable software
ghostscript (Debian package)
Operating systems & Components / Operating system package or component

Vendor Debian

Security Bulletin

This security bulletin contains information about 2 vulnerabilities.

1) OS command injection

EUVDB-ID: #VU14690

Risk: High

CVSSv4.0: 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/E:A/U:Amber]

CVE-ID: CVE-2018-16509

CWE-ID: CWE-78 - Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Exploit availability: Yes

Description

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

The vulnerability exists due to /invalidaccess checks can be bypassed after a restore failure. A remote unauthenticated attacker can trick the victim into opening a specially crafted PostScript file that submits malicious input and execute arbitrary shell commands.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.

Note: original fix for this vulnerability was incomplete in version 9.24. Vendor has issued another patch.

Mitigation

Update the affected package to version: 9.20~dfsg-3.2+deb9u5.

Vulnerable software versions

ghostscript (Debian package): 9.20~dfsg-3.1 - 9.20~dfsg-3.2+deb9u4

CPE2.3 External links

https://www.debian.org/security/2018/dsa-4294


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?

Yes. This vulnerability is being exploited in the wild.

2) Stack-based buffer overflow

EUVDB-ID: #VU16576

Risk: High

CVSSv4.0: 8.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber]

CVE-ID: CVE-2018-16802

CWE-ID: CWE-121 - Stack-based buffer overflow

Exploit availability: No

Description

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

The vulnerability exists due to incorrect "restoration of privilege" checking when running out of stack during exception handling. A remote unauthenticated attacker can supply specially crafted PostScript, trigger memory corruption and execute code using the "pipe" instruction.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.

Note: the vulnerability exists due to an incomplete fix for CVE-2018-16509.

Mitigation

Update the affected package to version: 9.20~dfsg-3.2+deb9u5.

Vulnerable software versions

ghostscript (Debian package): 9.20~dfsg-3.1 - 9.20~dfsg-3.2+deb9u4

CPE2.3 External links

https://www.debian.org/security/2018/dsa-4294


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.



###SIDEBAR###