Vulnerability in Node.js Node
CVE-2024-21896
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.
EPSS: 0.013 (67.6th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
Affected products
- Nodejs Node — versions 4.0, 5.0, 6.0
- Nodejs Node.js
Weakness classification (CWE)
Public proof-of-concept exploits
References
- support@hackerone.com (Issue Tracking)
- support@hackerone.com (Third Party Advisory)
- support@hackerone.com (Mailing List, Third Party Advisory)
Frequently asked questions
- What is CVE-2024-21896?
- CVE-2024-21896 is a critical-severity vulnerability in Node.js Node, classified under CWE-27. CVSS score: 9.8/10. Published 2024-02-20.
- How severe is CVE-2024-21896?
- Critical severity. CVSS v3 base score is 9.8 out of 10.
- Is CVE-2024-21896 known to be exploited?
- 6 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.