Remote code execution in grunt package for npm



| Updated: 2023-02-07
Risk Medium
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2020-7729
CWE-ID CWE-94
Exploitation vector Network
Public exploit N/A
Vulnerable software
grunt
Web applications / Modules and components for CMS

Vendor gruntjs

Security Bulletin

This security bulletin contains one medium risk vulnerability.

1) Code Injection

EUVDB-ID: #VU46068

Risk: Medium

CVSSv4.0: 6.3 [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 - Improper Control of Generation of Code ('Code Injection')

Exploit availability: No

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.

Mitigation

Install updates from vendor's website.

Vulnerable software versions

grunt: 0.1.0 - 1.2.1

CPE2.3 External links

https://snyk.io/vuln/SNYK-JS-GRUNT-597546
https://github.com/gruntjs/grunt/commit/e350cea1724eb3476464561a380fb6a64e61e4e7
https://github.com/gruntjs/grunt/blob/master/lib/grunt/file.js#L249


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote authenticated user via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###