Vulnerability Details CVE-2022-1537
file.copy operations in GruntJS are vulnerable to a TOCTOU race condition leading to arbitrary file write in GitHub repository gruntjs/grunt prior to 1.5.3. This vulnerability is capable of arbitrary file writes which can lead to local privilege escalation to the GruntJS user if a lower-privileged user has write access to both source and destination directories as the lower-privileged user can create a symlink to the GruntJS user's .bashrc file or replace /etc/shadow file if the GruntJS user is root.
Exploit prediction scoring system (EPSS) score
EPSS Score 0.002
EPSS Ranking 40.4%
CVSS Severity
CVSS v3 Score 7.8
CVSS v2 Score 6.9
Products affected by CVE-2022-1537
-
cpe:2.3:a:gruntjs:grunt:0.4.0
-
cpe:2.3:a:gruntjs:grunt:0.4.1
-
cpe:2.3:a:gruntjs:grunt:0.4.2
-
cpe:2.3:a:gruntjs:grunt:0.4.3
-
cpe:2.3:a:gruntjs:grunt:0.4.4
-
cpe:2.3:a:gruntjs:grunt:0.4.5
-
cpe:2.3:a:gruntjs:grunt:1.0.0
-
cpe:2.3:a:gruntjs:grunt:1.0.1
-
cpe:2.3:a:gruntjs:grunt:1.0.2
-
cpe:2.3:a:gruntjs:grunt:1.0.3
-
cpe:2.3:a:gruntjs:grunt:1.0.4
-
cpe:2.3:a:gruntjs:grunt:1.1.0
-
cpe:2.3:a:gruntjs:grunt:1.2.0
-
cpe:2.3:a:gruntjs:grunt:1.2.1
-
cpe:2.3:a:gruntjs:grunt:1.3.0
-
cpe:2.3:a:gruntjs:grunt:1.4.0
-
cpe:2.3:a:gruntjs:grunt:1.4.1
-
cpe:2.3:a:gruntjs:grunt:1.5.0
-
cpe:2.3:a:gruntjs:grunt:1.5.1
-
cpe:2.3:a:gruntjs:grunt:1.5.2