---
cve: "CVE-2022-1537"
severity: "HIGH"
cvss: 7.8
epss: "0.3%"
vendor: "gruntjs"
kev: false
exploited: false
published: "2022-05-10 00:00:00"
tags: [cve, security, high]
source: tsecurity.de CVE-Dossier
exported: "2026-09-20T23:16:02+02:00"
---

# CVE-2022-1537

> 7.8 HIGH · 🧪 PoC

## Beschreibung

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.

## CVSS-Vektor

```
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
```

| Metrik | Wert | Bewertung |
|---|---|---|
| AV Angriffsvektor | Lokal | good |
| AC Komplexität | Gering | bad |
| PR Privilegien | Gering | warn |
| UI Interaktion | Keine | bad |
| S Scope | Unverändert | good |
| C Vertraulichkeit | Hoch | bad |
| I Integrität | Hoch | bad |
| A Verfügbarkeit | Hoch | bad |

## Patch verfügbar (OSV)

- 82d79b803798f2a5f19662df9e12bef977dfa189 (Commit)
- 58016ffac5ed9338b63ecc2a63710f5027362bae (Commit)

## Referenzen

- <https://huntr.dev/bounties/0179c3e5-bc02-4fc9-8491-a1a319b51b4d>
- <https://github.com/gruntjs/grunt/commit/58016ffac5ed9338b63ecc2a63710f5027362bae>
- <https://lists.debian.org/debian-lts-announce/2023/04/msg00006.html>

---
_Exportiert aus dem [tsecurity.de CVE-Dossier](https://tsecurity.de/cve?cve=CVE-2022-1537) · Datenquellen: EUVD (ENISA), NVD, OSV, CISA KEV, FIRST EPSS, Exploit-DB, BSI BITS_
