CVE-2024-21896

CVE Details

Release Date:2024-02-19
Impact:Important What is this?

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.

See more information about CVE-2024-21896 from MITRE CVE dictionary and NIST NVD


NOTE: The following CVSS metrics and score provided are preliminary and subject to review.


CVSS v3 metrics

Base Score: 7.9
Vector String: CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
Version: 3.0
Attack Vector: Local
Attack Complexity: Low
Privileges Required: Low
User Interaction: Required
Scope: Changed
Confidentiality Impact: High
Integrity Impact: High
Availability Impact: None

Errata information


PlatformErrataRelease Date
Oracle Linux version 8 (nodejs)ELSA-2024-16872024-04-08
Oracle Linux version 8 (nodejs-nodemon)ELSA-2024-16872024-04-08
Oracle Linux version 8 (nodejs-packaging)ELSA-2024-16872024-04-08
Oracle Linux version 9 (nodejs)ELSA-2024-16882024-04-08
Oracle Linux version 9 (nodejs-nodemon)ELSA-2024-16882024-04-08
Oracle Linux version 9 (nodejs-packaging)ELSA-2024-16882024-04-08


This page is generated automatically and has not been checked for errors or omissions. For clarification or corrections:

software.hardware.complete