CVE-2022-1537:
Race Condition in Grunt
7
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.40503%
CWE
Published
5/11/2022
Updated
4/6/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
grunt | npm | < 1.5.3 | 1.5.3 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The commit diff shows the vulnerability was in the file.copy
function's handling of destination symlinks. The removed code performed a non-atomic check-and-unlink pattern (CWE-367), while the patch moved symlink detection to later in the process
. The NVD description explicitly references file.copy
operations as the vulnerability source, and the GitHub advisory links to a commit that specifically modifies this function's symlink handling.