Code Injection in grunt - CVE-2020-7729

 

Code Injection in grunt - CVE-2020-7729

Published: August 26, 2020 / Updated: February 7, 2023


Vulnerability identifier: #VU46068
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2020-7729
CWE-ID: CWE-94
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: gruntjs
Affected software:
grunt

Detailed vulnerability description

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

The vulnerability exists due to the default usage of the function "load()" instead of its secure replacement "safeLoad()". A remote authenticated attacker can send a specially crafted request and execute arbitrary code on the target system.

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


How to mitigate CVE-2020-7729

Install updates from vendor's website.

Sources