CVE-2022-1537

file.copy operations in GruntJS are vulnerable to a TOCTOU race condition leading to arbitrary file write in gruntjs/grunt

Published May 10, 2022 CVSS 3.1 · 7.0 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-3383-1 grunt security update
EUVD EUVD EUVD-2022-5193 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.
Github GHSA Github GHSA GHSA-rm36-94g8-835r Race Condition in Grunt
Ubuntu USN Ubuntu USN USN-5847-1 Grunt vulnerabilities
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
@huntrdev
Published
Updated
Aug 3, 2024, 12:10 AM
Reserved
Apr 29, 2022, 12:00 AM
Status
Modified
Published
May 10, 2022, 2:15 PM
Modified
Jun 17, 2026, 4:22 AM
Severity
Important
Public date
May 10, 2022, 12:00 AM