cve.bz

CVE-2022-1537 gruntjs grunt

7.0 highExploit referenceEPSS 0.3%Fix available

High (7.0) in gruntjs grunt. EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in grunt 1.5.3.

On this page
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.

Severity

CVSS 3.1

7.0 high
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 23rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-1537 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-1537?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-1537?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-1537 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
gruntjs/gruntbefore 1.5.3

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-rm36-94g8-835rnpmgrunt<1.5.31.5.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10grunt1.0.1-8+deb10u2DLA-3383-1
Debian12, 13, 14grunt1.5.3-1DEBIAN-CVE-2022-1537
UbuntuPro:18.04:LTSgrunt1.0.1-8ubuntu0.1+esm1UBUNTU-CVE-2022-1537 USN-5847-1
UbuntuPro:20.04:LTSgrunt1.0.4-2ubuntu0.1~esm1UBUNTU-CVE-2022-1537 USN-5847-1
UbuntuPro:22.04:LTSgrunt1.4.1-2ubuntu0.1~esm1UBUNTU-CVE-2022-1537 USN-5847-1
Azure Linux3js-jqueryno fix listedAZL-44082

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Important.

ProductPackageStateAdvisory
OpenShift Service Mesh 2.0servicemesh-grafanaAffected
OpenShift Service Mesh 2.1servicemesh-grafanaWill not fix
Red Hat Enterprise Linux 8grafanaNot affected
Red Hat JBoss Data Grid 7gruntjsOut of support scope
Red Hat JBoss Enterprise Application Platform 7org.jboss.hal-hal-parentNot affected
Red Hat JBoss Enterprise Application Platform Expansion PackgruntjsNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-1537.

Attack patterns (CAPEC)

  • CAPEC-27 Leveraging Race Conditions via Symbolic Links Likelihood: Medium · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON