CVE-2024-21890 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 igno...
MediumCVSS 6.5
EPSS 0.95%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
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.
Upgrade path
5 packages: 1 fixed, 1 partially fixed, 3 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/nodejs(Ubuntu 25.10) | = 20.18.1+dfsg-1ubuntu2; = 20.19.2+dfsg-1; = 20.19.4+dfsg-1; All versions | No fix listed | No fix yet |
| ubuntu/nodejs(Ubuntu 26.04) | = 20.19.4+dfsg-1; = 20.19.5+dfsg+~cs20.19.12-4; = 22.21.1+dfsg+~cs22.19.0-6ubuntu4; = 22.22.0+dfsg+~cs22.19.6-1ubuntu2 +3 more | No fix listed | No fix yet |
| ubuntu/nodejs(Ubuntu 26.10) | = 22.22.1+dfsg+~cs22.19.15-1ubuntu1; = 24.16.0+dfsg+~cs24.13.1-2ubuntu1; = 24.18.0+dfsg+~cs24.13.2-1ubuntu1; = 24.19.0+dfsg+~cs24.13.3-1ubuntu1 +1 more | No fix listed | No fix yet |
| nodejs node | >= 4.0; >= 5.0; >= 6.0; >= 7.0 +13 more | 20.11.1, 21.6.2 | Partially fixed |
| nodejs node.js | >= 20.0.0, < 20.11.1; >= 21.0.0, < 21.6.2 | 20.11.1, 21.6.2 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| nodejs node | >= 4.0 | No fix listed |
| nodejs node | >= 5.0 | No fix listed |
| nodejs node | >= 6.0 | No fix listed |
| nodejs node | >= 7.0 | No fix listed |
| nodejs node | >= 8.0 | No fix listed |
| nodejs node | >= 9.0 | No fix listed |
| nodejs node | >= 10.0 | No fix listed |
| nodejs node | >= 11.0 | No fix listed |
| nodejs node | >= 12.0 | No fix listed |
| nodejs node | >= 13.0 | No fix listed |
| nodejs node | >= 14.0 | No fix listed |
| nodejs node | >= 15.0 | No fix listed |
| nodejs node | >= 16.0 | No fix listed |
| nodejs node | >= 17.0 | No fix listed |
| nodejs node | >= 19.0 | No fix listed |
| nodejs node | >= 20.0, < 20.11.1 | 20.11.1 |
| nodejs node | >= 21.0, < 21.6.2 | 21.6.2 |
| nodejs node.js | >= 20.0.0, < 20.11.1 | 20.11.1 |
| nodejs node.js | >= 21.0.0, < 21.6.2 | 21.6.2 |
| ubuntu/nodejs(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/nodejs(Ubuntu:26.10) | All versions | No fix listed |
| ubuntu/nodejs(Ubuntu:25.10) | All versions | No fix listed |
| ubuntu/nodejs(Ubuntu:25.10) | = 20.18.1+dfsg-1ubuntu2 | No fix listed |
| ubuntu/nodejs(Ubuntu:25.10) | = 20.19.2+dfsg-1 | No fix listed |
| ubuntu/nodejs(Ubuntu:25.10) | = 20.19.4+dfsg-1 | No fix listed |
Show 10 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/nodejs(Ubuntu:26.10) | = 22.22.1+dfsg+~cs22.19.15-1ubuntu1 | No fix listed |
| ubuntu/nodejs(Ubuntu:26.10) | = 24.16.0+dfsg+~cs24.13.1-2ubuntu1 | No fix listed |
| ubuntu/nodejs(Ubuntu:26.10) | = 24.18.0+dfsg+~cs24.13.2-1ubuntu1 | No fix listed |
| ubuntu/nodejs(Ubuntu:26.10) | = 24.19.0+dfsg+~cs24.13.3-1ubuntu1 | No fix listed |
| ubuntu/nodejs(Ubuntu:26.04) | = 20.19.4+dfsg-1 | No fix listed |
| ubuntu/nodejs(Ubuntu:26.04) | = 20.19.5+dfsg+~cs20.19.12-4 | No fix listed |
| ubuntu/nodejs(Ubuntu:26.04) | = 22.21.1+dfsg+~cs22.19.0-6ubuntu4 | No fix listed |
| ubuntu/nodejs(Ubuntu:26.04) | = 22.22.0+dfsg+~cs22.19.6-1ubuntu2 | No fix listed |
| ubuntu/nodejs(Ubuntu:26.04) | = 22.22.0+dfsg+~cs22.19.13-2ubuntu1 | No fix listed |
| ubuntu/nodejs(Ubuntu:26.04) | = 22.22.1+dfsg+~cs22.19.15-1ubuntu1 | No fix listed |
References
- hackerone.com issue-tracking third-party-advisory
- security.netapp.com third-party-advisory
- www.openwall.com mailing-list third-party-advisory
- Ubuntu CVE tracker issue-tracking vendor-advisory
- www.cve.org issue-tracking
- Debian Security Tracker CVE-2024-21890 vendor-advisory
- nodejs.org issue-tracking
- www.openwall.com issue-tracking