9.8

CVE-2024-21896: nodejs node Path Traversal: 'dir/../../filename'

Analyzed
AliasesUBUNTU-CVE-2024-21896CGA-6mgc-mxpr-48mw
Published 20-02-2024Last modified 30-04-2025

Vulnerability summary

CVE-2024-21896 is a critical (CVSS 9.8) Path Traversal: 'dir/../../filename' vulnerability in nodejs node. EPSS estimates a 1.26% chance of exploitation in the next 30 days, higher than 69.6% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 7.9, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
9.8/10
010
Critical · v3.1 (NVD)
EPSS score
1.26%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 5 · Related 3

Timeline

  1. 20-02-2024
    PublishedVulnerability first disclosed.
  2. 30-04-2025
    Last modifiedVulnerability information updated.

Description

The permission model protects itself against path traversal attacks by calling path.resolve() on any paths given by the user. If the path is to be treated as a Buffer, the implementation uses Buffer.from() to obtain a Buffer from the result of path.resolve(). By monkey-patching Buffer internals, namely, Buffer.prototype.utf8Write, the application can modify the result of path.resolve(), which leads to a path traversal vulnerability. This vulnerability affects all users using the experimental permission model in Node.js 20 and Node.js 21. Please note that at the time this CVE was issued, the permission model is an experimental feature of Node.js.

CVSS metrics

5 scores · 3 sources · 2 versions

EPSS trend

Probability

1.26%

Chance of exploitation in the next 30 days

Percentile

70%

Versus all other CVEs

30-day change

No change 0.00 pp

From 1.26% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.

Nodejs2 products
  • node≥ 4.0, < 4.* | ≥ 5.0, < 5.* | ≥ 6.0, < 6.* | ≥ 7.0, < 7.* | ≥ 8.0, < 8.* | ≥ 9.0, < 9.* | ≥ 10.0, < 10.* | ≥ 11.0, < 11.* | ≥ 12.0, < 12.* | ≥ 13.0, < 13.* | ≥ 14.0, < 14.* | ≥ 15.0, < 15.* | ≥ 16.0, < 16.* | ≥ 17.0, < 17.* | ≥ 19.0, < 19.* | ≥ 20.0, < 20.11.1 | ≥ 21.0, < 21.6.2
  • node.js≥ 20.0.0, < 20.11.1 | ≥ 21.0.0, < 21.6.2
Chainguard1 product
  • eco-nodejs-20.9.0All versions (No fix recorded)
Ubuntu1 product
  • nodejsAll versions (No fix recorded)

3 vendors · 4 products

References

9 links