CVE-2024-21890
nodejs: improper handling of wildcards in --allow-fs-read and --allow-fs-write
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
0Exploited in Wild
-Decision
Descriptions
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.
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.
A flaw was found in the Node.js Permission Model, where it is not clarified in the documentation that wildcards should only be 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/.
CVSS Scores
SSVC
- Decision:Track
Timeline
- 2024-01-03 CVE Reserved
- 2024-02-20 CVE Published
- 2024-05-02 EPSS Updated
- 2024-10-30 CVE Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
- ---------- First Exploit
CWE
- CWE-1059: Insufficient Technical Documentation
CAPEC
References (5)
URL | Tag | Source |
---|---|---|
http://www.openwall.com/lists/oss-security/2024/03/11/1 | ||
https://hackerone.com/reports/2257156 | ||
https://security.netapp.com/advisory/ntap-20240315-0002 |
URL | Date | SRC |
---|
URL | Date | SRC |
---|
URL | Date | SRC |
---|---|---|
https://access.redhat.com/security/cve/CVE-2024-21890 | 2024-04-08 | |
https://bugzilla.redhat.com/show_bug.cgi?id=2265722 | 2024-04-08 |
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Node.js Search vendor "Node.js" | Node.js Search vendor "Node.js" for product "Node.js" | 21.6.0 Search vendor "Node.js" for product "Node.js" and version "21.6.0" | en |
Affected
| ||||||
Node.js Search vendor "Node.js" | Node.js Search vendor "Node.js" for product "Node.js" | 20.11.0 Search vendor "Node.js" for product "Node.js" and version "20.11.0" | en |
Affected
|