{"id":"GHSA-rm36-94g8-835r","revision":"5a517694ec9641dfa628084deeb26cc6","records":[{"revision":"5a517694ec9641dfa628084deeb26cc6","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-rm36-94g8-835r","aliases":["CVE-2022-1537"],"title":"Race Condition in Grunt","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.","state":0,"publishedAt":"2022-05-11T00:01:37+00:00","modifiedAt":"2026-09-10T03:49:40.6193856+00:00","affected":[{"ecosystem":"npm","name":"grunt","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.5.3"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2022-1537","https://github.com/gruntjs/grunt/commit/58016ffac5ed9338b63ecc2a63710f5027362bae","https://github.com/gruntjs/grunt","https://huntr.dev/bounties/0179c3e5-bc02-4fc9-8491-a1a319b51b4d","https://lists.debian.org/debian-lts-announce/2023/04/msg00006.html"],"sourceUrl":"https://github.com/advisories/GHSA-rm36-94g8-835r","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-rm36-94g8-835r","identifiers":["GHSA-rm36-94g8-835r","CVE-2022-1537"]},"retained":false,"historicalAffected":[]}],"coverage":[]}