CVE & CISA-KEV Catalog

CVE-2022-1537

HIGH
7.0
CVSS v3
NVD

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.

How to fix

Remediation Available
gruntDebian
Fixed in:1.3.0-1+deb11u2CVE-2022-1537
Fixed in:1.5.3-1CVE-2022-1537
Fixed in:1.5.3-1CVE-2022-1537
Fixed in:1.5.3-1CVE-2022-1537
gruntUbuntu
Fixed in:1.0.1-8ubuntu0.1+esm1USN-5847-1
Fixed in:1.0.4-2ubuntu0.1~esm1USN-5847-1
Fixed in:1.4.1-2ubuntu0.1~esm1USN-5847-1

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityHigh
Privileges RequiredLow
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

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

Exploit Intelligence

0.30%probability of exploitation in 30 days
22ndpercentile

Low risk: more likely to be exploited than 22% of all known CVEs.

References

Related Vulnerabilities

Other CWE-367 (TOCTOU Race Condition) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2022-36980High8.183%-Fix
CVE-2024-30088High7.068%KEV + RansomFix
CVE-2004-0594Medium5.155%-Fix
CVE-2024-50379Critical9.844%-Fix
CVE-2023-38146High8.839%-Fix
CVE-2024-0132Critical9.037%-Fix
Embed a live status badge for CVE-2022-1537
CVE-2022-1537 severity badge

Markdown

[![CVE-2022-1537](https://tridentstack.com/cve/badge/CVE-2022-1537.svg)](https://tridentstack.com/cve/CVE-2022-1537)

HTML

<a href="https://tridentstack.com/cve/CVE-2022-1537"><img src="https://tridentstack.com/cve/badge/CVE-2022-1537.svg" alt="CVE-2022-1537"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.