CVE-2022-1537 Details
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.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/gruntjs/grunt/commit/58016ffac5ed9338b63ecc2a63710f5027362bae | CVE | PatchTechnical Description |
| https://huntr.dev/bounties/0179c3e5-bc02-4fc9-8491-a1a319b51b4d | CVE | ExploitIssue TrackingPatchTechnical Description |
| https://lists.debian.org/debian-lts-announce/2023/04/msg00006.html | CVE | |
| https://github.com/gruntjs/grunt/commit/58016ffac5ed9338b63ecc2a63710f5027362bae | [email protected] | PatchTechnical Description |
| https://huntr.dev/bounties/0179c3e5-bc02-4fc9-8491-a1a319b51b4d | [email protected] | ExploitIssue TrackingPatchTechnical Description |
| https://lists.debian.org/debian-lts-announce/2023/04/msg00006.html | [email protected] |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-367 | Time-of-check Time-of-use (TOCTOU) Race Condition | [email protected] |
| CWE-367 | Time-of-check Time-of-use (TOCTOU) Race Condition | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| gruntjs grunt | < 1.5.3 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Apr 5, 2023 | CVE Modified | [email protected] |
| May 16, 2022 | Initial Analysis | [email protected] |