Remote code execution in GhostScript



Published: 2021-09-07 | Updated: 2021-09-27
Risk High
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2021-3781
CWE-ID CWE-94
Exploitation vector Network
Public exploit Public exploit code for vulnerability #1 is available.
Vulnerable software
Subscribe
Ghostscript
Universal components / Libraries / Libraries used by multiple products

Vendor Artifex Software, Inc.

Security Bulletin

This security bulletin contains information about 1 vulnerabilities.

Updated: 12.09.2021

Assigned CVE-ID, improved list of affected versions.

1) Code Injection

EUVDB-ID: #VU56385

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 - Improper Control of Generation of Code ('Code Injection')

Exploit availability: Yes

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.



###SIDEBAR###