VDB
CVE-2022-1537
CVE-2022-1537
PUBLISHED
CVSS 7.800000190734863 HIGH
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.
EPSS 0.25% · 48.0th percentile
Risk Scores
CVSS v3.0
7.800000190734863
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Score
0.25%
48.0th percentile
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| gruntjs | gruntjs/grunt | unspecified |
| npm | grunt | 0 |
| gruntjs | grunt | 0 |
Timeline
- May 10, 2022 CVE Published
- May 11, 2022 EPSS Score
- Jun 29, 2022 EPSS Score
- Aug 18, 2022 EPSS Score
- Oct 7, 2022 EPSS Score
- Nov 25, 2022 EPSS Score
- Jan 13, 2023 EPSS Score
- Mar 3, 2023 EPSS Score
- Mar 7, 2023 EPSS Score
- Apr 21, 2023 EPSS Score
- Jun 10, 2023 EPSS Score
- Jul 29, 2023 EPSS Score
References
- https://huntr.dev/bounties/0179c3e5-bc02-4fc9-8491-a1a319b51b4d url
- https://github.com/gruntjs/grunt/commit/58016ffac5ed9338b63ecc2a63710f5027362bae url
- [debian-lts-announce] 20230405 [SECURITY] [DLA 3383-1] grunt security update mailing-list
- https://nvd.nist.gov/vuln/detail/CVE-2022-1537 advisory
- https://github.com/gruntjs/grunt package