Read the docs
TI-2022-01409 Aliases CVE-2022-1537GHSA-rm36-94g8-835r

Time-of-check time-of-use race condition in gruntjs/grunt

Priority LOW 31CWE-367Published · Updated

Key facts

Attack vector
Local
Privileges required
Low
User interaction
None
Attack complexity
High
Impact type
—
Confidentiality · integrity · availability
High · High · High
Fix status
Partial Red Hat: 3 without a fix

Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat.

Summary

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.

Why it matters now

EPSS 0.00302 23rd percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Partial gruntjs/grunt (gruntjs): 1.5.3grunt (npm): 1.5.3Red Hat: 3 without a fix

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
gruntjsgruntjs/gruntbefore 1.5.31.5.3Patch availableCNA
—grunt (npm)before 1.5.31.5.3Patch availableGHSA-rm36-94g8-835r
  • gruntjs/grunt Vendorgruntjs Affected before 1.5.3 Fixed in 1.5.3 Patch available CNA
  • grunt (npm) Vendor— Affected before 1.5.3 Fixed in 1.5.3 Patch available GHSA-rm36-94g8-835r

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:gruntjs:grunt:*:*:*:*:*:node.js:*:*before 1.5.3Vulnerablegruntjs
  • cpe:2.3:a:gruntjs:grunt:*:*:*:*:*:node.js:*:* Versions before 1.5.3 Vulnerable ·gruntjs

Remediation

  • Fix · CNA gruntjs/grunt (gruntjs) Fixed in 1.5.3
  • Fix · GHSA-rm36-94g8-835r grunt (npm) Fixed in 1.5.3 Advisory →

Vendor assessments

Red Hat

Red Hat rating: Important. Red Hat's page for this CVE →

ProductStatusPlan or fix
OpenShift Service Mesh 2.0AffectedNo fix yet
OpenShift Service Mesh 2.1AffectedNo fix planned: Will not fix
Red Hat JBoss Data Grid 7AffectedNo fix planned: Out of support scope
Not affected: 3 products
  • Red Hat Enterprise Linux 8
  • Red Hat JBoss Enterprise Application Platform 7
  • Red Hat JBoss Enterprise Application Platform Expansion Pack

Timeline

  1. 2026-10-02 Threatist record created from CVE-2022-1537
  2. 2026-10-03 Alias added: GHSA-rm36-94g8-835r

References

Sources