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.
Metrics
Affected Vendors & Products
References
History
Wed, 02 Apr 2025 20:30:00 +0000
Type | Values Removed | Values Added |
---|---|---|
First Time appeared |
Nodejs
Nodejs node.js |
|
CPEs | cpe:2.3:a:nodejs:node.js:*:*:*:*:-:*:*:* | |
Vendors & Products |
Nodejs
Nodejs node.js |
|
Metrics |
cvssV3_1
|
cvssV3_1
|
Tue, 27 Aug 2024 17:00:00 +0000
Type | Values Removed | Values Added |
---|---|---|
Weaknesses | CWE-27 |

Status: PUBLISHED
Assigner: hackerone
Published:
Updated: 2025-02-13T17:33:23.626Z
Reserved: 2024-01-03T01:04:06.539Z
Link: CVE-2024-21896

Updated: 2024-08-01T22:35:33.412Z

Status : Analyzed
Published: 2024-02-20T02:15:50.770
Modified: 2025-04-02T20:09:59.267
Link: CVE-2024-21896
