Node.js Path Normalization Override Enables Permission Model Bypass
CVE-2024-21891 Published on February 20, 2024

Node.js depends on multiple built-in utility functions to normalize paths provided to node:fs functions, which can be overwitten with user-defined implementations leading to filesystem permission model bypass through path traversal attack. 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.

NVD

Weakness Type

What is a Directory traversal Vulnerability?

The software uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the software does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.

CVE-2024-21891 has been classified to as a Directory traversal vulnerability or weakness.


Products Associated with CVE-2024-21891

You can be notified by email with stack.watch whenever vulnerabilities like CVE-2024-21891 are published in nodejs node.js:

 

Affected Versions

NodeJS Node: nodejs:

Exploit Probability

EPSS
0.10%
Percentile
27.92%

EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.