5.0medium
The Node.js Permission Model does not clarify in the documentation that wildcards should be only used as the last character of a file path.
- Severity
- 5.0medium CVSS:3.0 by hackerone
- Exploit likelihood
- 0.95% (higher than 62% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- hackerone
- Also known as
- BIT-NODE-2024-21890BIT-NODE-MIN-2024-21890
Description
The Node.js Permission Model does not clarify in the documentation that wildcards should be only used as the last character of a file path. For example: ``` --allow-fs-read=/home/node/.ssh/*.pub ``` will ignore `pub` and give access to everything after `.ssh/`. This misleading documentation 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 package | Versions | Reported by |
|---|---|---|
| NodeJS Node | from 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 more | CVE List |
| nodejs node.js | from 20.0.0 before 20.11.1, from 21.0.0 before 21.6.2 | NVD |
| node (Bitnami) | from 20.0.0 before 20.11.1, from 21.0.0 before 21.6.2 | Bitnami Vulnerability Database |
| node-min (Bitnami) | from 20.0.0 before 20.11.1, from 21.0.0 before 21.6.2 | Bitnami Vulnerability Database |
All scores
| hackerone | 5.0medium CVSS:3.0 | CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| Bitnami Vulnerability Database | medium rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
The Node.js Permission Model does not clarify in the documentation that wildcards should be only used as the last character of a file path. For example: ``` --allow-fs-read=/home/node/.ssh/*.pub ``` will ignore `pub` and give access to everything after `.ssh/`. This misleading documentation 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)
El modelo de permisos de Node.js no aclara en la documentación que los comodines solo deben usarse como último carácter de la ruta de un archivo. Por ejemplo: ``` --allow-fs-read=/home/node/.ssh/*.pub ``` ignorará `pub` y dará acceso a todo lo que esté después de `.ssh/`. Esta documentación engañosa 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
| https://hackerone.com/reports/2257156 | advisory, issue-tracking, third-party-advisory | |
| https://security.netapp.com/advisory/ntap-20240315-0002/ | advisory, third-party-advisory | |
| http://www.openwall.com/lists/oss-security/2024/03/11/1 | advisory, mailing-list, third-party-advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2024-21890 | web | |
| https://github.com/nodejs/node/releases/tag/v20.11.1 | web | |
| https://github.com/nodejs/node/releases/tag/v21.6.2 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-21890 changed 2025-04-30 | CVE Terms of Use |
| NVD | CVE-2024-21890 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-NODE-2024-21890 changed 2026-09-08 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-NODE-MIN-2024-21890 changed 2026-09-08 | Apache-2.0 |