CVE-2024-21891
JSON

7.9high

Node.js depends on multiple built-in utility functions to normalize paths provided to node:fs functions, which can be overwitten with user-…

Severity
7.9high CVSS:3.0 by hackerone
Exploit likelihood
1.09% (higher than 65% of CVEs)
Published
Last changed
Assigned by
hackerone
Also known as
BIT-NODE-2024-21891BIT-NODE-MIN-2024-21891

Description

Node.js depends on multiple built-in utility functions to normalize paths provided to node:fs functions, which can be overwitten with user-defined implementations leading to filesystem permission model bypass through path traversal attack. 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.

Affected

Product or packageVersionsReported by
NodeJS Nodefrom 4.0 before 4.*, from 5.0 before 5.*, from 6.0 before 6.*, from 7.0 before 7.*, from 8.0 before 8.*, from 9.0 before 9.*, from 10.0 before 10.*, from 11.0 before 11.* and 9 moreCVE List
nodejs nodejs21.6.0, 20.11.0CVE List
nodejs node.jsfrom 20.0.0 before 20.11.1, from 21.0.0 before 21.6.2NVD
node (Bitnami)from 20.0.0 before 20.11.1, from 21.0.0 before 21.6.2Bitnami Vulnerability Database
node-min (Bitnami)from 20.0.0 before 20.11.1, from 21.0.0 before 21.6.2Bitnami Vulnerability Database

All scores

hackerone7.9high CVSS:3.0CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
NVD8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Bitnami Vulnerability Databasehigh rating

Classification

CWE-22

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

Node.js depends on multiple built-in utility functions to normalize paths provided to node:fs functions, which can be overwitten with user-defined implementations leading to filesystem permission model bypass through path traversal attack. 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.

NVD (es)

Node.js depende de múltiples funciones de utilidad integradas para normalizar las rutas proporcionadas a las funciones de node:fs, que pueden ser exageradas con implementaciones definidas por el usuario que conducen a la omisión del modelo de permisos del sistema de archivos mediante un ataque de path traversal. Esta vulnerabilidad afecta a todos los usuarios que utilizan el modelo de permiso experimental en Node.js 20 y Node.js 21. Tenga en cuenta que en el momento en que se emitió este CVE, el modelo de permiso es una característica experimental de Node.js.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-21891 changed 2025-04-30CVE Terms of Use
NVDCVE-2024-21891 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-NODE-2024-21891 changed 2026-09-08Apache-2.0
Bitnami Vulnerability DatabaseBIT-NODE-MIN-2024-21891 changed 2026-09-08Apache-2.0