{"api_version":"1","generated_at":"2026-07-24T17:19:43+00:00","cve":"CVE-2022-1537","urls":{"html":"https://cve.report/CVE-2022-1537","api":"https://cve.report/api/cve/CVE-2022-1537.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-1537","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-1537"},"summary":{"title":"CVE-2022-1537","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":"PUBLIC","assigner":"security@huntr.dev","published_at":"2022-05-10 14:15:00","updated_at":"2023-04-05 22:15:00"},"problem_types":["CWE-367"],"metrics":[],"references":[{"url":"https://huntr.dev/bounties/0179c3e5-bc02-4fc9-8491-a1a319b51b4d","name":"https://huntr.dev/bounties/0179c3e5-bc02-4fc9-8491-a1a319b51b4d","refsource":"CONFIRM","tags":[],"title":"huntr – Security Bounties for any GitHub repository","mime":"text/html","httpstatus":"404","archivestatus":"404"},{"url":"https://github.com/gruntjs/grunt/commit/58016ffac5ed9338b63ecc2a63710f5027362bae","name":"https://github.com/gruntjs/grunt/commit/58016ffac5ed9338b63ecc2a63710f5027362bae","refsource":"MISC","tags":[],"title":"Patch up race condition in symlink copying. · gruntjs/grunt@58016ff · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.debian.org/debian-lts-announce/2023/04/msg00006.html","name":"[debian-lts-announce] 20230405 [SECURITY] [DLA 3383-1] grunt security update","refsource":"MLIST","tags":[],"title":"[SECURITY] [DLA 3383-1] grunt security update","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-1537","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-1537","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"1537","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"gruntjs","cpe5":"grunt","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-1537","qid":"181697","title":"Debian Security Update for grunt (DLA 3383-1)"},{"cve":"CVE-2022-1537","qid":"184173","title":"Debian Security Update for grunt (CVE-2022-1537)"},{"cve":"CVE-2022-1537","qid":"199571","title":"Ubuntu Security Notification for Grunt Vulnerabilities (USN-5847-1)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security@huntr.dev","ID":"CVE-2022-1537","STATE":"PUBLIC","TITLE":"file.copy operations in GruntJS are vulnerable to a TOCTOU race condition leading to arbitrary file write in gruntjs/grunt"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"gruntjs/grunt","version":{"version_data":[{"version_affected":"<","version_value":"1.5.3"}]}}]},"vendor_name":"gruntjs"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.0"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition"}]}]},"references":{"reference_data":[{"name":"https://huntr.dev/bounties/0179c3e5-bc02-4fc9-8491-a1a319b51b4d","refsource":"CONFIRM","url":"https://huntr.dev/bounties/0179c3e5-bc02-4fc9-8491-a1a319b51b4d"},{"name":"https://github.com/gruntjs/grunt/commit/58016ffac5ed9338b63ecc2a63710f5027362bae","refsource":"MISC","url":"https://github.com/gruntjs/grunt/commit/58016ffac5ed9338b63ecc2a63710f5027362bae"},{"refsource":"MLIST","name":"[debian-lts-announce] 20230405 [SECURITY] [DLA 3383-1] grunt security update","url":"https://lists.debian.org/debian-lts-announce/2023/04/msg00006.html"}]},"source":{"advisory":"0179c3e5-bc02-4fc9-8491-a1a319b51b4d","discovery":"EXTERNAL"}},"nvd":{"publishedDate":"2022-05-10 14:15:00","lastModifiedDate":"2023-04-05 22:15:00","problem_types":["CWE-367"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":7,"baseSeverity":"HIGH"},"exploitabilityScore":1,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:L/AC:M/Au:N/C:C/I:C/A:C","accessVector":"LOCAL","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"COMPLETE","integrityImpact":"COMPLETE","availabilityImpact":"COMPLETE","baseScore":6.9},"severity":"MEDIUM","exploitabilityScore":3.4,"impactScore":10,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:gruntjs:grunt:*:*:*:*:*:node.js:*:*","versionEndExcluding":"1.5.3","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}