Vulnerabilities
Vulnerable Software

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
  • Gruntjs » Grunt » Version: 0.4.0
    cpe:2.3:a:gruntjs:grunt:0.4.0
  • Gruntjs » Grunt » Version: 0.4.1
    cpe:2.3:a:gruntjs:grunt:0.4.1
  • Gruntjs » Grunt » Version: 0.4.2
    cpe:2.3:a:gruntjs:grunt:0.4.2
  • Gruntjs » Grunt » Version: 0.4.3
    cpe:2.3:a:gruntjs:grunt:0.4.3
  • Gruntjs » Grunt » Version: 0.4.4
    cpe:2.3:a:gruntjs:grunt:0.4.4
  • Gruntjs » Grunt » Version: 0.4.5
    cpe:2.3:a:gruntjs:grunt:0.4.5
  • Gruntjs » Grunt » Version: 1.0.0
    cpe:2.3:a:gruntjs:grunt:1.0.0
  • Gruntjs » Grunt » Version: 1.0.1
    cpe:2.3:a:gruntjs:grunt:1.0.1
  • Gruntjs » Grunt » Version: 1.0.2
    cpe:2.3:a:gruntjs:grunt:1.0.2
  • Gruntjs » Grunt » Version: 1.0.3
    cpe:2.3:a:gruntjs:grunt:1.0.3
  • Gruntjs » Grunt » Version: 1.0.4
    cpe:2.3:a:gruntjs:grunt:1.0.4
  • Gruntjs » Grunt » Version: 1.1.0
    cpe:2.3:a:gruntjs:grunt:1.1.0
  • Gruntjs » Grunt » Version: 1.2.0
    cpe:2.3:a:gruntjs:grunt:1.2.0
  • Gruntjs » Grunt » Version: 1.2.1
    cpe:2.3:a:gruntjs:grunt:1.2.1
  • Gruntjs » Grunt » Version: 1.3.0
    cpe:2.3:a:gruntjs:grunt:1.3.0
  • Gruntjs » Grunt » Version: 1.4.0
    cpe:2.3:a:gruntjs:grunt:1.4.0
  • Gruntjs » Grunt » Version: 1.4.1
    cpe:2.3:a:gruntjs:grunt:1.4.1
  • Gruntjs » Grunt » Version: 1.5.0
    cpe:2.3:a:gruntjs:grunt:1.5.0
  • Gruntjs » Grunt » Version: 1.5.1
    cpe:2.3:a:gruntjs:grunt:1.5.1
  • Gruntjs » Grunt » Version: 1.5.2
    cpe:2.3:a:gruntjs:grunt:1.5.2


Contact Us

Shodan ® - All rights reserved