CVE-2024-21896
NodeJS Node
HIGH 7.9
En bref
- Source
- NVD
- EPSS
- EPSS 1.26 % · centile 70 ()
- État
- PUBLISHED
- Publiée
- Mise à jour
- Attribuée par
- hackerone
- Statut NVD
- Analyzed
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.
Faiblesses (CWE)
- CWE-27 — Path Traversal: 'dir/../../filename'
Références
Scores
| Version | Score | Vecteur | Évalué par |
|---|---|---|---|
| CVSS 3.0 | HIGH 7.9 | CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N/CR:M/IR:M/AR:M | hackerone |
| CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | NVD · nvd@nist.gov (Primary) |
| CVSS 3.0 | HIGH 7.9 | CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N | NVD · support@hackerone.com (Secondary) |
Références européennes
- ENISA EUVD · EUVD-2024-19507
- GCVE · GCVE-0-2024-21896
Avis du CERT-FR
- CERTFR-2026-AVI-1089 — Multiples vulnérabilités dans Tenable Enclave Security · cert.ssi.gouv.fr
- CERTFR-2025-AVI-0967 — Multiples vulnérabilités dans les produits VMware · cert.ssi.gouv.fr
- CERTFR-2024-AVI-1051 — Multiples vulnérabilités dans les produits IBM · cert.ssi.gouv.fr
- CERTFR-2024-AVI-0923 — Multiples vulnérabilités dans les produits IBM · cert.ssi.gouv.fr
- CERTFR-2024-AVI-0692 — Multiples vulnérabilités dans les produits IBM · cert.ssi.gouv.fr
Configurations affectées (CPE NVD)
cpe:2.3:a:nodejs:node.js:*:*:*:*:-:*:*:*≥ 20.0.0 < 20.11.1cpe:2.3:a:nodejs:node.js:*:*:*:*:-:*:*:*≥ 21.0.0 < 21.6.2
Produits affectés
| Produit | Versions |
|---|---|
| NodeJS · Node | affected 4.0 < 4.* ; affected 5.0 < 5.* ; affected 6.0 < 6.* ; affected 7.0 < 7.* ; affected 8.0 < 8.* ; affected 9.0 < 9.* |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |