#VU67516 Command Injection in Shell-quote - CVE-2021-42740


Vulnerability identifier: #VU67516

Vulnerability 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-2021-42740

CWE-ID: CWE-77

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
Shell-quote

Vendor: substack

Description

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

The vulnerability exists due to improper input validation in the regex designed to support Windows drive letters before passing it into the exec() call. A remote attacker can pass specially crafted payload to the application and execute arbitrary code on the system.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

Shell-quote: 0.0.0 - 1.7.2


External links
https://github.com/substack/node-shell-quote/commit/5799416ed454aa4ec9afafc895b4e31760ea1abe
https://www.npmjs.com/package/shell-quote
https://github.com/substack/node-shell-quote/blob/master/CHANGELOG.md#173


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.


Latest bulletins with this vulnerability