Vendors › Node.js
CVE-2024-21896
High (no CVSS assigned) EPSS 1.3% Node.js · Node.js
Path traversal by monkey-patching Buffer internals
By monkey-patching Buffer internals, an application can alter the result of path resolution and bypass the experimental permission model's path-traversal protections.
| Published | 2024-02-14 |
| Updated | 2024-02-14 |
| Affected | Node.js 21.x, 20.x, 18.x |
| Fix | Upgrade to v21.6.2, v20.11.1, v18.19.1 (first fixed release per supported branch). |
| Vendor advisory | https://nodejs.org/en/blog/vulnerability/february-2024-security-releases#path-traversal-by-monkey-patching-buffer-internals-cve-2024-21896---high |
CVEs (1)
| CVE | CWE | Type | Impact | Links |
|---|---|---|---|---|
| CVE-2024-21896 | — | — | — | NVD · CVE.org · EUVD |
CWE, type and impact come from the NVD enrichment pass; unfilled rows are pending enrichment.
Same CVE in other advisories
- IBM-7173592 — IBM · Critical (9.8) · 2024-10-21
IBM Cognos Analytics is affected by multiple vulnerabilities - IBM-7170411 — IBM · Critical (9.9) · 2024-09-25
Multiple Vulnerabilities in IBM Cloud Pak for Multicloud Management - K000139578 — F5 · N/A (F5 products not affected) · 2024-05-10
Node.js vulnerability CVE-2024-21896 - RHSA-2024:1688 — Red Hat · High (8.1) · 2024-04-08
Red Hat Security Advisory: nodejs:20 security update - RHSA-2024:1687 — Red Hat · High (8.1) · 2024-04-08
Red Hat Security Advisory: nodejs:20 security update - NTAP-20240329-0002 — NetApp · Critical (9.8) · 2024-03-29
CVE-2024-21896 Node.js Vulnerability in NetApp Products - MICROSOFT-CVE-2024-21896 — Microsoft · Critical (9.8) · 2024-02-13
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.
Open in the CVEMesh app Create a free account
Track this advisory against your own stack — add your assets and CVEMesh shows which advisories actually apply to the versions you run.
CVEMesh aggregates public vendor advisories as guidance; always verify against the vendor's official advisory before patching or upgrading.