CVE-2024-21896
Nodejs Node.Js 20.0.0 – 20.11.1
Raw vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HCVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.
Summary
CVE-2024-21896 is a critical-severity Path Traversal: 'dir/../../filename' (CWE-27) vulnerability in Nodejs Node.Js. Its CVSS base score is 9.8 (Critical).
Operationally, exploitation aligns with the MITRE ATT&CK technique Endpoint Denial of Service (T1499); ranked in the top 30% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.
The strongest mitigations our analysis identified map to SI-10 (Information Input Validation) — see the control section below for these in your framework.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2024-19507
Vulnerability Data
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…
more
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.
- CWE(s)
Related Threats
MITRE ATT&CK Enterprise Techniques
MITRE ATT&CK v20.0
CVEs Like This One
Affected Assets
Mitigating Controls
Mitigating Controls (NIST 800-53 r5)
Our mappings, made for this CVE.
Input validation directly stops untrusted pathnames containing ../ sequences from being used to construct traversals outside the intended directory.
Mitigating Controls (NIST CSF 2.0)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.
Secure SDLC practices directly require input validation and path sanitization that prevent directory traversal flaws.
Vulnerability identification processes will discover path traversal weaknesses during code or configuration review.
Least-privilege file permissions and access enforcement can limit the damage from a successful traversal.
Mitigating Controls (ISO/IEC 27001:2022 Annex A)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.
Security testing in development catches path-traversal flaws before release but does not itself implement the control.
Training developers about input validation and path handling reduces path-traversal introductions, but the defect is a specific technical implementation error (multiple '../' neutralization) that training alone catches only a minority of, with secure coding standards, code review and security testing carrying the stronger preventive effect.
Secure coding standards require neutralizing '../' sequences and using safe file APIs, eliminating this exact weakness.
A.8.30 contracts secure design, coding and testing practices (8.25–8.29) into the supplier relationship, so a faithfully implemented clause reduces ordinary implementation-phase software weaknesses like path traversal in delivered code, but the effect is mediated through fallible supplier practice and the dependent controls themselves act only partially.
A.8.8's reach is disclosure-based (vendor-published advisories and component inventory), and path traversal commonly surfaces as CVEs in third-party software, so A.8.8 finds the disclosed share; however, most CWE-27 instances are first-party code defects in custom applications that never appear in published advisories, leaving a nameable remainder outside the control's reach.