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 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.
What to do
Fixed builds are available from AlmaLinux, Red Hat, Rocky Linux: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | nodejs | Fix pending | UBUNTU-CVE-2024-21890 | |
| Ubuntu 26.04 | nodejs | Fix pending | UBUNTU-CVE-2024-21890 | |
| Ubuntu 25.10 | nodejs | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2024-21890 | |
| Ubuntu 24.04 | nodejs | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | nodejs | Will not fix Ubuntu decided not to fix this in this release | ||
| Red Hat Enterprise Linux 9 | nodejs | Fixed | 1:20.11.1-1.module+el9.3.0+21385+bac43d5a | RHSA-2024:1688 |
| Red Hat Enterprise Linux 9 | nodejs-devel | Fixed | 1:20.11.1-1.module+el9.3.0+21385+bac43d5a | RHSA-2024:1688 |
| Red Hat Enterprise Linux 9 | nodejs-docs | Fixed | 1:20.11.1-1.module+el9.3.0+21385+bac43d5a | RHSA-2024:1688 |
| Red Hat Enterprise Linux 9 | nodejs-full-i18n | Fixed | 1:20.11.1-1.module+el9.3.0+21385+bac43d5a | RHSA-2024:1688 |
| Red Hat Enterprise Linux 9 | nodejs-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | nodejs-nodemon | Fixed | 0:3.0.1-1.module+el9.3.0.z+20478+84a9f781 | RHSA-2024:1688 |
| Red Hat Enterprise Linux 9 | nodejs-packaging | Fixed | 0:2021.06-4.module+el9.3.0+19518+63aad52d | RHSA-2024:1688 |
| Red Hat Enterprise Linux 9 | nodejs-packaging-bundler | Fixed | 0:2021.06-4.module+el9.3.0+19518+63aad52d | RHSA-2024:1688 |
| Red Hat Enterprise Linux 9 | npm | Fixed | 1:10.2.4-1.20.11.1.1.module+el9.3.0+21385+bac43d5a | RHSA-2024:1688 |
| Red Hat Enterprise Linux 8 | nodejs | Fixed | 1:20.11.1-1.module+el8.9.0+21380+12032667 | RHSA-2024:1687 |
| Red Hat Enterprise Linux 8 | nodejs-devel | Fixed | 1:20.11.1-1.module+el8.9.0+21380+12032667 | RHSA-2024:1687 |
| Red Hat Enterprise Linux 8 | nodejs-docs | Fixed | 1:20.11.1-1.module+el8.9.0+21380+12032667 | RHSA-2024:1687 |
| Red Hat Enterprise Linux 8 | nodejs-full-i18n | Fixed | 1:20.11.1-1.module+el8.9.0+21380+12032667 | RHSA-2024:1687 |
| Red Hat Enterprise Linux 8 | nodejs-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | nodejs-nodemon | Fixed | 0:3.0.1-1.module+el8.9.0+20473+c4e3d824 | RHSA-2024:1687 |
| Red Hat Enterprise Linux 8 | nodejs-packaging | Fixed | 0:2021.06-4.module+el8.9.0+19519+e25b965a | RHSA-2024:1687 |
| Red Hat Enterprise Linux 8 | nodejs-packaging-bundler | Fixed | 0:2021.06-4.module+el8.9.0+19519+e25b965a | RHSA-2024:1687 |
| Red Hat Enterprise Linux 8 | npm | Fixed | 1:10.2.4-1.20.11.1.1.module+el8.9.0+21380+12032667 | RHSA-2024:1687 |
| Red Hat Enterprise Linux 8 | v8-12.4-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | v8-13.6-devel | Not affected | ||
| AlmaLinux 9 | nodejs | Fixed | 1:20.11.1-1.module_el9.3.0+88+29afeaa2 | ALSA-2024:1688 |
| AlmaLinux 9 | nodejs-devel | Fixed | 1:20.11.1-1.module_el9.3.0+88+29afeaa2 | ALSA-2024:1688 |
| AlmaLinux 9 | nodejs-docs | Fixed | 1:20.11.1-1.module_el9.3.0+88+29afeaa2 | ALSA-2024:1688 |
| AlmaLinux 9 | nodejs-full-i18n | Fixed | 1:20.11.1-1.module_el9.3.0+88+29afeaa2 | ALSA-2024:1688 |
| AlmaLinux 9 | nodejs-nodemon | Fixed | 3.0.1-1.module_el9.3.0+47+c33bc288 | ALSA-2024:1688 |
| AlmaLinux 9 | nodejs-packaging | Fixed | 2021.06-4.module_el9.3.0+48+1cf146a1 | ALSA-2024:1688 |
| AlmaLinux 9 | nodejs-packaging-bundler | Fixed | 2021.06-4.module_el9.3.0+48+1cf146a1 | ALSA-2024:1688 |
| AlmaLinux 9 | npm | Fixed | 1:10.2.4-1.20.11.1.1.module_el9.3.0+88+29afeaa2 | ALSA-2024:1688 |
| AlmaLinux 8 | nodejs | Fixed | 1:20.11.1-1.module_el8.9.0+3775+d8460d35 | ALSA-2024:1687 |
| AlmaLinux 8 | nodejs-devel | Fixed | 1:20.11.1-1.module_el8.9.0+3775+d8460d35 | ALSA-2024:1687 |
| AlmaLinux 8 | nodejs-docs | Fixed | 1:20.11.1-1.module_el8.9.0+3775+d8460d35 | ALSA-2024:1687 |
| AlmaLinux 8 | nodejs-full-i18n | Fixed | 1:20.11.1-1.module_el8.9.0+3775+d8460d35 | ALSA-2024:1687 |
| AlmaLinux 8 | nodejs-nodemon | Fixed | 3.0.1-1.module_el8.9.0+3731+490e3ce5 | ALSA-2024:1687 |
| AlmaLinux 8 | nodejs-packaging | Fixed | 2021.06-4.module_el8.9.0+3684+11b9e959 | ALSA-2024:1687 |
| AlmaLinux 8 | nodejs-packaging-bundler | Fixed | 2021.06-4.module_el8.9.0+3684+11b9e959 | ALSA-2024:1687 |
| AlmaLinux 8 | npm | Fixed | 1:10.2.4-1.20.11.1.1.module_el8.9.0+3775+d8460d35 | ALSA-2024:1687 |
| Rocky Linux 9 | nodejs-nodemon | Fixed | 0:3.0.1-1.module+el9.5.0+31770+0da7192d | RLSA-2024:1688 |
| Rocky Linux 9 | nodejs-packaging | Fixed | 0:2021.06-4.module+el9.6.0+32322+a8b1fd01 | RLSA-2024:1688 |
| Rocky Linux 8 | nodejs | Fixed | 1:20.11.1-1.module+el8.9.0+1776+addd4aec | RLSA-2024:1687 |
| Rocky Linux 8 | nodejs-nodemon | Fixed | 0:3.0.1-1.module+el8.8.0+1459+02651ab6 | RLSA-2024:1687 |
| Rocky Linux 8 | nodejs-packaging | Fixed | 0:2021.06-4.module+el8.7.0+1072+5b168780 | RLSA-2024:1687 |
What the vendor says
As published in the CVE record by hackerone, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- NodeJS Node: affected: 4.0 to before 4.*, 5.0 to before 5.*, 6.0 to before 6.*, 7.0 to before 7.*, 8.0 to before 8.*, 9.0 to before 9.*; fixed in
20.11.1,21.6.2
References
- https://hackerone.com/reports/2257156
- https://security.netapp.com/advisory/ntap-20240315-0002/
- http://www.openwall.com/lists/oss-security/2024/03/11/1
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.