CVE-2024-21896 Details
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.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 12, 2024References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://hackerone.com/reports/2218653 | CVE | Issue Tracking |
| https://security.netapp.com/advisory/ntap-20240329-0002/ | CVE | Third Party Advisory |
| http://www.openwall.com/lists/oss-security/2024/03/11/1 | CVE | Mailing ListThird Party Advisory |
| https://hackerone.com/reports/2218653 | [email protected] | Issue Tracking |
| https://security.netapp.com/advisory/ntap-20240329-0002/ | [email protected] | Third Party Advisory |
| http://www.openwall.com/lists/oss-security/2024/03/11/1 | [email protected] | Mailing ListThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-27 | Path Traversal: 'dir/../../filename' | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| nodejs node.js | >= 20.0.0, < 20.11.1 >= 21.0.0, < 21.6.2 |
CPE
Remediation
| |
Change History
9 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 2, 2025 | Initial Analysis | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| Aug 27, 2024 | CVE Modified | CISA-ADP |
| May 14, 2024 | CVE Modified | [email protected] |
| May 1, 2024 | CVE Modified | [email protected] |
| Mar 29, 2024 | CVE Modified | [email protected] |
| Feb 20, 2024 | New CVE Received | [email protected] |