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: 8.7 [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]
CVE-ID: CVE-2020-7729
CWE-ID: CWE-94
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

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.


Affected software

grunt
Bitbucket Data Center
Ubuntu
openEuler
grunt (Ubuntu package)
nodejs-grunt

How to mitigate CVE-2020-7729

Install updates from vendor's website.

grunt - update to 1.3.0
Bitbucket Data Center - update to 10.3.2
grunt (Ubuntu package) - addressed in versions Ubuntu Pro, 1.0.1-8ubuntu0.1
nodejs-grunt - addressed in versions 1.0.1-2, 1.0.1-5

External References

Related Security Bulletins