Vulnerability
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.
17 advisories report this vulnerability, across 11 ecosystems.
Advisories
-
ALAS2023-2024-544
Amazon Linux 2023 - ALAS2023-2024-544: Important priority package update for nodejs20
-
ALSA-2024:1687
Important: nodejs:20 security update
-
ALSA-2024:1688
Important: nodejs:20 security update
-
AZL-35053
CVE-2024-21896 affecting package nodejs for versions less than 20.14.0-1
- CGA-6mgc-mxpr-48mw
- CGA-r4jr-c2r3-8qgh
-
CNA-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…
-
ELSA-2024-1687
ELSA-2024-1687: nodejs:20 security update (IMPORTANT)
-
ELSA-2024-1688
ELSA-2024-1688: nodejs:20 security update (IMPORTANT)
-
RHSA-2024:1687
Red Hat Security Advisory: nodejs:20 security update
-
RHSA-2024:1688
Red Hat Security Advisory: nodejs:20 security update
-
RLSA-2024:1687
Important: nodejs:20 security update
-
RLSA-2024:1688
Important: nodejs:20 security update
-
SUSE-SU-2024:0643-1
Security update for nodejs20
-
UBUNTU-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…
-
openSUSE-SU-2024:13697-1
corepack20-20.11.1-1.1 on GA media
-
openSUSE-SU-2024:13698-1
corepack21-21.6.2-1.1 on GA media