
CVE catalog
CVE-2022-1537
grunt: CVE-2022-1537
- Severity
- Medium
- Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.30% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | grunt | sid | 1.6.3-1 | fixed |
| Debian | grunt | forky | 1.6.3-1 | fixed |
| Debian | grunt | trixie | 1.6.1-1 | fixed |
| Debian | grunt | bookworm | 1.5.3-2 | fixed |
| Ubuntu | grunt | pro | 1.3.0-1 | vulnerable |
| Ubuntu | grunt | pro | 1.3.0-2 | vulnerable |
| Ubuntu | grunt | pro | 1.4.1-1 | vulnerable |
| Ubuntu | grunt | pro | 1.4.1-2 | vulnerable |
| Ubuntu | grunt | pro | 1.4.1-2ubuntu0.1~esm1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | grunt | source | sid | 1.5.3-1 | not yet assigned | Not reported | Not reported |
| Debian | grunt | source | forky | 1.5.3-1 | not yet assigned | Not reported | Not reported |
| Debian | grunt | source | trixie | 1.5.3-1 | not yet assigned | Not reported | Not reported |
| Debian | grunt | source | bookworm | 1.5.3-1 | not yet assigned | Not reported | Not reported |
| Ubuntu | grunt | deb | pro | 1.4.1-2ubuntu0.1~esm1 | Not reported | UBUNTU-CVE-2022-1537 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [grunt]Fixed
Details (2)
1.5.3-2· all · bookwormFixed · Fixed:
1.5.3-1dsa · grunt · debian · bookworm
1.5.3-2· all · bookwormFixed · Fixed:
1.5.3-1dsa · grunt · debian · bookworm
Observed:
References
- [https://osv.dev/vulnerability/DLA-3383-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2022-1537]
- [https://security-tracker.debian.org/tracker/CVE-2022-1537]
- [https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-2460.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database]