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.
OS | Version | Architecture | Package | Version | Filename |
---|---|---|---|---|---|
Debian | 12 | all | grunt | < 1.5.3-1 | grunt_1.5.3-1_all.deb |
Debian | 11 | all | grunt | < 1.3.0-1+deb11u2 | grunt_1.3.0-1+deb11u2_all.deb |
Debian | 10 | all | grunt | < 1.0.1-8+deb10u2 | grunt_1.0.1-8+deb10u2_all.deb |
Debian | 999 | all | grunt | < 1.5.3-1 | grunt_1.5.3-1_all.deb |
Debian | 13 | all | grunt | < 1.5.3-1 | grunt_1.5.3-1_all.deb |