{"id":"GHSA-rm36-94g8-835r","revision":null,"records":[{"revision":"808a4a6c1a174ca68d7bc63c5f392e00","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2022-1537","aliases":[],"title":"file.copy operations in GruntJS are vulnerable to a TOCTOU race condition leading to arbitrary file write in gruntjs/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-10T00:00:00+00:00","modifiedAt":"2024-08-03T00:10:03.294+00:00","affected":[{"ecosystem":"Vendor product","name":"gruntjs/grunt","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"gruntjs\",\n                    \"product\": \"gruntjs/grunt\",\n                    \"versions\": [\n                        {\n                            \"version\": \"unspecified\",\n                            \"lessThan\": \"1.5.3\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"custom\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"severity":"HIGH"}],"references":["https://huntr.dev/bounties/0179c3e5-bc02-4fc9-8491-a1a319b51b4d","https://github.com/gruntjs/grunt/commit/58016ffac5ed9338b63ecc2a63710f5027362bae","https://lists.debian.org/debian-lts-announce/2023/04/msg00006.html"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2022-1537","license":"CVE Program Terms of Use","key":"cve-program:CVE-2022-1537","identifiers":["CVE-2022-1537"]},"retained":false,"historicalAffected":[]},{"revision":"05e0875d4b9c448097a56578314ea75d","observedAt":"2026-11-18T01:50:25.085+00:00","statement":{"source":"euvd","id":"EUVD-2022-5193","aliases":["CVE-2022-1537","GHSA-rm36-94g8-835r"],"title":"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 priv…","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":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"severity":null}],"references":["https://huntr.dev/bounties/0179c3e5-bc02-4fc9-8491-a1a319b51b4d","https://github.com/gruntjs/grunt/commit/58016ffac5ed9338b63ecc2a63710f5027362bae","https://lists.debian.org/debian-lts-announce/2023/04/msg00006.html"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-5193","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"May 10, 2022, 12:00:00 AM","dateUpdated":"Aug 3, 2024, 12:10:03 AM"},"relatedAdvisories":[{"id":"WID-SEC-W-2026-2460","title":"Atlassian Bamboo, Bitbucket, Confluence, Fisheye, Crucible, Jira und Jira Service Management: Mehrere Schwachstellen","vulnerabilityIds":["CVE-2016-10540","CVE-2020-28282","CVE-2020-7729","CVE-2021-22569","CVE-2021-23358","CVE-2022-1537","CVE-2022-3509","CVE-2022-3510","CVE-2022-37599","CVE-2022-37601","CVE-2022-37603","CVE-2024-7254","CVE-2025-11226","CVE-2025-14813","CVE-2025-62718","CVE-2025-69873","CVE-2026-12143","CVE-2026-21575","CVE-2026-21577","CVE-2026-21579","CVE-2026-22731","CVE-2026-2332","CVE-2026-27830","CVE-2026-29063","CVE-2026-29145","CVE-2026-29146","CVE-2026-31802","CVE-2026-33671","CVE-2026-33870","CVE-2026-33871","CVE-2026-34043","CVE-2026-35554","CVE-2026-40175","CVE-2026-42033","CVE-2026-42035","CVE-2026-42041","CVE-2026-42043","CVE-2026-42044","CVE-2026-42198","CVE-2026-42264","CVE-2026-42581","CVE-2026-42583","CVE-2026-42585","CVE-2026-42587","CVE-2026-42588","CVE-2026-44249","CVE-2026-44486","CVE-2026-44487","CVE-2026-44488","CVE-2026-44490","CVE-2026-44492","CVE-2026-44494","CVE-2026-44495","CVE-2026-44496","CVE-2026-44705","CVE-2026-45416","CVE-2026-45505","CVE-2026-45736","CVE-2026-46625","CVE-2026-47838","CVE-2026-4800","CVE-2026-48043","CVE-2026-48779","CVE-2026-50010","CVE-2026-5598","CVE-2026-6321","CVE-2026-6322"]}],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2022-5193","identifiers":["EUVD-2022-5193","CVE-2022-1537","GHSA-rm36-94g8-835r"]},"retained":false,"historicalAffected":[]},{"revision":"c1e263271cd34522b212d85887a3c295","observedAt":"2026-10-24T19:17:43.386+00:00","statement":{"source":"nvd","id":"CVE-2022-1537","aliases":[],"title":"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 priv…","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-10T14:15:08.403+00:00","modifiedAt":"2026-06-17T04:22:38.09+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · nvd@nist.gov · Primary","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"severity":"HIGH"},{"system":"CVSS 3.0 · security@huntr.dev · Secondary","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"severity":"HIGH"},{"system":"CVSS 2.0 · nvd@nist.gov · Primary","vector":"AV:L/AC:M/Au:N/C:C/I:C/A:C","score":6.9,"severity":"MEDIUM"}],"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"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2022-1537","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Modified","weaknesses":["CWE-367"],"productCriteria":["cpe:2.3:a:gruntjs:grunt:*:*:*:*:*:node.js:*:*"],"sourceDates":{"published":"2022-05-10T14:15:08.403","lastModified":"2026-06-17T04:22:38.090"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2022-1537","identifiers":["CVE-2022-1537"]},"retained":false,"historicalAffected":[]},{"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":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-19T05:22:48.4383343+00:00","complete":true,"records":1786,"lastAttemptAt":"2026-11-19T05:22:48.4383343+00:00","lastSuccessAt":"2026-11-19T05:22:48.5819004+00:00","error":null,"lastVerifiedAt":"2026-11-19T05:22:48.581904+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-e55c589538e0700b45c7d6d41fe1447a79199283262c371c864535c791a040b9-a3c5d1f50b99987b637138fdc7cd9e1e0d772b1c81dbbff4bcc8be865c192a98","complete":true,"records":428232,"lastAttemptAt":"2026-11-19T05:22:47.9486287+00:00","lastSuccessAt":"2026-11-19T05:22:47.9265788+00:00","error":null,"lastVerifiedAt":"2026-11-19T05:22:47.9486287+00:00","snapshotPublishedAt":"2026-11-19T04:33:18+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-cd98f53e935a49a8becf37b4761b9fe0","complete":false,"records":13861,"lastAttemptAt":"2026-11-19T05:26:37.5800297+00:00","lastSuccessAt":"2026-11-19T05:26:37.6713562+00:00","error":null,"lastVerifiedAt":"2026-11-19T05:26:37.6713562+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-19T05:22:48.4383343+00:00","complete":true,"records":1125,"lastAttemptAt":"2026-11-19T05:22:48.4383343+00:00","lastSuccessAt":"2026-11-19T05:22:48.5827402+00:00","error":null,"lastVerifiedAt":"2026-11-19T05:22:48.5827403+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-84b4b212d7ef41cb9ec24b71e9d8e5d8","complete":true,"records":13873,"lastAttemptAt":"2026-11-19T05:22:49.1394496+00:00","lastSuccessAt":"2026-11-19T04:24:39.391+00:00","error":null,"lastVerifiedAt":"2026-11-19T04:24:39.391+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13908,"expectedIdentifiers":13908,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-76574c95b6792d47ba90af64983ed5843633f14426346d676016e94a5f383202","complete":true,"records":9963,"lastAttemptAt":"2026-11-19T05:22:48.2819697+00:00","lastSuccessAt":"2026-11-19T01:24:31.4213722+00:00","error":null,"lastVerifiedAt":"2026-11-19T05:22:48.2819697+00:00","snapshotPublishedAt":"2026-11-19T01:03:15+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-f4424d7d4861b1af1404bd15abcb83f295dcd003412a9340ca99dc8200aa148a","complete":true,"records":2014,"lastAttemptAt":"2026-11-19T05:22:48.0028407+00:00","lastSuccessAt":"2026-11-13T19:57:08.2864435+00:00","error":null,"lastVerifiedAt":"2026-11-19T05:22:48.0028407+00:00","snapshotPublishedAt":"2026-11-13T19:33:10+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-c0d9c71c6fa06d617f979e7bec0d97aca70ca5aea1558184002f8e44516f2fac","complete":true,"records":3177,"lastAttemptAt":"2026-11-19T05:22:48.391557+00:00","lastSuccessAt":"2026-11-18T21:25:09.5127964+00:00","error":null,"lastVerifiedAt":"2026-11-19T05:22:48.391557+00:00","snapshotPublishedAt":"2026-11-18T21:18:06+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-2556fa291ec863b7fd77332e55dcff5569878e06b48ea32c182e52878cdd1ce8","complete":true,"records":232702,"lastAttemptAt":"2026-11-19T05:22:48.1723185+00:00","lastSuccessAt":"2026-11-19T04:24:35.8955272+00:00","error":null,"lastVerifiedAt":"2026-11-19T05:22:48.1723185+00:00","snapshotPublishedAt":"2026-11-19T03:33:12+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}