Vulnerability in Gruntjs Grunt
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.
Vulnerability class: TOCTOU (Time-of-Check to Time-of-Use)
EPSS: 0.003 (22.2th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 7.0 (High). Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H.
Affected products
- Gruntjs Grunt
- Gruntjs Gruntjs/grunt — versions unspecified
Weakness classification (CWE)
Public proof-of-concept exploits
References
- security@huntr.dev (Technical Description, Exploit, Patch, Issue Tracking)
- security@huntr.dev (Technical Description, Patch)
- security@huntr.dev (mailing-list)
Frequently asked questions
- What is CVE-2022-1537?
- CVE-2022-1537 is a high-severity vulnerability in Gruntjs Grunt, classified under Time-of-check Time-of-use (TOCTOU) Race Condition. CVSS score: 7.0/10. Published 2022-05-10.
- How severe is CVE-2022-1537?
- High severity. CVSS v3 base score is 7.0 out of 10.
- Is CVE-2022-1537 known to be exploited?
- 4 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.