Vulnerability Details : CVE-2024-21891
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.
Vulnerability category: Directory traversal
Products affected by CVE-2024-21891
- cpe:2.3:a:nodejs:node.js:*:*:*:*:*:*:*:*
- cpe:2.3:a:nodejs:node.js:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2024-21891
0.08%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 25 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2024-21891
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
7.9
|
HIGH | CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N |
1.5
|
5.8
|
HackerOne | 2024-02-20 |
8.8
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
2.8
|
5.9
|
NIST | 2025-02-12 |
CWE ids for CVE-2024-21891
-
The product 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 product 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.Assigned by:
- 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary)
- nvd@nist.gov (Primary)
References for CVE-2024-21891
-
https://hackerone.com/reports/2259914
Node.js | Report #2259914 - Multiple permission model bypasses due to improper path traversal sequence sanitization | HackerOneIssue Tracking;Third Party Advisory
-
https://security.netapp.com/advisory/ntap-20240315-0005/
CVE-2024-21891 Node.js Vulnerability in NetApp Products | NetApp Product SecurityThird Party Advisory
-
http://www.openwall.com/lists/oss-security/2024/03/11/1
oss-security - NodeJS v{18.x,20.x,21.x} February Security UpdatesMailing List;Third Party Advisory
Jump to