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)
Published · last modified .
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.
EPSS exploit prediction
EPSS: 0.003 (20.6th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 21st percentile — 20.6% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.003 · newest: 0.003 · change: +0.000
Affected products
- Gruntjs Grunt
- Gruntjs Gruntjs/grunt — versions unspecified
Weakness classification (CWE)
Public proof-of-concept exploits
References
- huntr.dev/bounties/0179c3e5-bc02-4fc9-8491-a1a319b51b4d (Technical Description, Exploit, Patch, Issue Tracking)
- github.com/gruntjs/grunt/commit/58016ffac5ed9338b63ecc2a63710f5027362bae (Technical Description, Patch)
- lists.debian.org/debian-lts-announce/2023/04/msg00006.html (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.