CVE-2024-21896
Node.js Buffer Path Traversal Vulnerability
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.
INFO
Published Date :
Feb. 20, 2024, 2:15 a.m.
Last Modified :
Nov. 21, 2024, 8:55 a.m.
Source :
[email protected]
Remotely Exploitable :
No
Impact Score :
5.8
Exploitability Score :
1.5
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-21896
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-21896
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-21896
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference http://www.openwall.com/lists/oss-security/2024/03/11/1 Added Reference https://hackerone.com/reports/2218653 Added Reference https://security.netapp.com/advisory/ntap-20240329-0002/ -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Aug. 27, 2024
Action Type Old Value New Value Added CWE CISA-ADP CWE-27 -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
CVE Modified by [email protected]
May. 01, 2024
Action Type Old Value New Value Added Reference HackerOne http://www.openwall.com/lists/oss-security/2024/03/11/1 [No types assigned] -
CVE Modified by [email protected]
Mar. 29, 2024
Action Type Old Value New Value Added Reference HackerOne https://security.netapp.com/advisory/ntap-20240329-0002/ [No types assigned] -
CVE Received by [email protected]
Feb. 20, 2024
Action Type Old Value New Value Added 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. Added Reference HackerOne https://hackerone.com/reports/2218653 [No types assigned] Added CVSS V3 HackerOne AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-21896
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-21896
weaknesses.