HomeNodejsCVE-2024-21896

CVE-2024-21896

CRITICAL
9.8CVSS
Published: 2024-02-20
Updated: 2025-04-02
AI Analysis

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.

CVSS Metrics

Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack Vector
network
Complexity
low
Privileges
none
User Action
none
Scope
unchanged
Confidentiality
high
Integrity
high
Availability
high
Weaknesses
CWE-27

Metadata

Primary Vendor
NODEJS
Published
2/20/2024
Last Modified
4/2/2025
Source
NIST NVD
Note: Verify all details with official vendor sources before applying patches.

Affected Products

nodejs : node.jsnodejs : node.js

AI-Powered Remediation

Generate remediation guidance or a C-suite brief for this vulnerability.

Executive Intelligence Brief

CVE-CVE-2024-21896 | CRITICAL Severity | CVEDatabase.com | CVEDatabase.com