#VU56385 Code Injection in Ghostscript


Published: 2021-09-07 | Updated: 2021-09-27

Vulnerability identifier: #VU56385

Vulnerability risk: High

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

CVE-ID: CVE-2021-3781

CWE-ID: CWE-94

Exploitation vector: Network

Exploit availability: Yes

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. A remote attacker can create a specially crafted SVG file, upload it to the affected system and execute arbitrary code.

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

Mitigation
Install update from vendor's website.

Vulnerable software versions

Ghostscript: 9.50 - 9.54.0


External links
http://github.com/duc-nt/RCE-0-day-for-GhostScript-9.50
http://bugs.ghostscript.com/show_bug.cgi?id=704342
http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=a9bd3dec9fde


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