{"cve":"CVE-2022-1537","nvd":{"published":"2022-05-10T14:15:08.403","modified":"2026-06-17T04:22:38.090","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.0},"cwes":["CWE-367"],"references":["https://github.com/gruntjs/grunt/commit/58016ffac5ed9338b63ecc2a63710f5027362bae","https://huntr.dev/bounties/0179c3e5-bc02-4fc9-8491-a1a319b51b4d","https://lists.debian.org/debian-lts-announce/2023/04/msg00006.html","https://github.com/gruntjs/grunt/commit/58016ffac5ed9338b63ecc2a63710f5027362bae","https://huntr.dev/bounties/0179c3e5-bc02-4fc9-8491-a1a319b51b4d"],"products":["gruntjs:grunt"],"source":"nvd","synced_at":"2026-10-19T21:31:59.322382750+00:00"},"epss":{"cve":"CVE-2022-1537","score":0.00302,"percentile":0.22942,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-rm36-94g8-835r","url":"https://osv.dev/vulnerability/GHSA-rm36-94g8-835r","summary":"Race Condition in Grunt","modified":"2026-09-10T03:49:40.619385608Z","packages":[{"ecosystem":"npm","name":"grunt","purl":"pkg:npm/grunt","ranges":["<1.5.3"],"fixed":["1.5.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}