CVE-2024-22018 json
A vulnerability has been identified in Node.js, affecting users of the experimental permission model when the --allow-fs-read flag is used.
published 2024-07-10 2 y ago modified 2026-06-17 4 mo ago also BIT-node-2024-22018 , BIT-node-min-2024-22018 , EUVD-2024-19624
- cvss
- 2.9
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 39%
- public exploits
- 0
- none known
Summary
A vulnerability has been identified in Node.js, affecting users of the experimental permission model when the --allow-fs-read flag is used. This flaw arises from an inadequate permission model that fails to restrict file stats through the fs.lstat API. As a result, malicious actors can retrieve stats from files that they do not have explicit read access to. 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.
Patch / fix
- bitnami node 20.15.1, 22.4.1
- bitnami node-min 20.18.1, 22.12.0
- NodeJS Node 20.15.1, 22.4.1
- nodejs Debian 14, Debian 13 20.15.1+dfsg-1
debian advisories DEBIAN-CVE-2024-22018
- npm RHEL 8 1:10.8.1-1.20.16.0.1.module+el8.10.0+22203+a88c8310
- nodejs RHEL 8 1:20.16.0-1.module+el8.10.0+22203+a88c8310
- nodejs-nodemon RHEL 8 3.0.1-1.module+el8.9.0+20473+c4e3d824
- nodejs-full-i18n RHEL 8 1:20.16.0-1.module+el8.10.0+22203+a88c8310
- nodejs-packaging RHEL 8 2021.06-4.module+el8.9.0+19519+e25b965a
- nodejs-packaging-bundler RHEL 8 2021.06-4.module+el8.9.0+19519+e25b965a
- npm RHEL 9 1:10.8.1-1.20.16.0.1.module+el9.4.0+22197+9e60f127
- nodejs RHEL 9 1:20.16.0-1.module+el9.4.0+22197+9e60f127
red hat advisories RHSA-2024:5814RHSA-2024:5815
- nodejs20 SLE Module for Web and Scripting 15 SP6, openSUSE Leap 15.6 20.15.1-150600.3.3.2
- nodejs20 SLE Module for Web and Scripting 15 SP5, openSUSE Leap 15.5 20.15.1-150500.11.12.2
suse advisories SUSE-SU-2024:2574-1SUSE-SU-2024:2543-1
- nodejs26 openSUSE Tumbleweed 26.3.1-1.1
- nodejs24 openSUSE Tumbleweed 24.11.1-2.1
- nodejs22 openSUSE Tumbleweed 22.10.0-1.1
- nodejs20 openSUSE Tumbleweed 20.15.1-1.1
opensuse advisories openSUSE-SU-2026:11110-1openSUSE-SU-2025:15802-1openSUSE-SU-2024:14435-1openSUSE-SU-2024:14214-1
- npm AlmaLinux 8 1:10.8.1-1.20.16.0.1.module_el8.10.0+3882+e12e42db
- nodejs AlmaLinux 8 1:20.16.0-1.module_el8.10.0+3882+e12e42db
- nodejs-nodemon AlmaLinux 8 3.0.1-1.module_el8.9.0+3731+490e3ce5
- nodejs-full-i18n AlmaLinux 8 1:20.16.0-1.module_el8.10.0+3882+e12e42db
- nodejs-packaging AlmaLinux 8 2021.06-4.module_el8.9.0+3775+d8460d35
- nodejs-packaging-bundler AlmaLinux 8 2021.06-4.module_el8.9.0+3775+d8460d35
- npm AlmaLinux 9 1:10.8.1-1.20.16.0.1.module_el9.4.0+107+dbd477e4
- nodejs AlmaLinux 9 1:20.16.0-1.module_el9.4.0+107+dbd477e4
almalinux advisories ALSA-2024:5814ALSA-2024:5815
- nodejs-nodemon Rocky Linux 9 3.0.1-1.module+el9.6.0+32322+a8b1fd01
- nodejs-nodemon Rocky Linux 9 3.0.1-1.module+el9.5.0+31770+0da7192d
- nodejs-nodemon Rocky Linux 9 3.0.1-1.module+el9.6.0+32045+2e5d342d
- nodejs-nodemon Rocky Linux 9 3.0.1-1.module+el9.6.0+32143+ae966e5b
- nodejs-nodemon Rocky Linux 9 3.0.1-1.module+el9.6.0+32144+1d29a396
- nodejs-nodemon Rocky Linux 9 3.0.1-1.module+el9.6.0+32185+bd121a25
- nodejs-packaging Rocky Linux 9 2021.06-4.module+el9.5.0+31770+0da7192d
- nodejs-packaging Rocky Linux 9 2021.06-4.module+el9.6.0+32045+2e5d342d
rocky linux advisories RLSA-2024:5815RLSA-2024:5814
- nodejs Alpine 3.24, Alpine 3.23, Alpine 3.22 +3 more 20.15.1-r0
alpine advisories ALPINE-CVE-2024-22018
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-22018 updated cvss 2.9
nodejs: fs.lstat bypasses permission model
-
Red Hat Enterprise Linux 10 nodejs20affected: no fix available “Fix deferred”
-
Red Hat Enterprise Linux AppStream (v. 8) nodejs 20.16.0-1.module+el8.10.0+22203+a88c8310, nodejs-nodemon 3.0.1-1.module+el8.9.0+20473+c4e3d824, npm 10.8.1-1.20.16.0.1.module+el8.10.0+22203+a88c8310, nodejs-packaging 2021.06-4.module+el8.9.0+19519+e25b965a, nodejs-full-i18n 20.16.0-1.module+el8.10.0+22203+a88c8310, nodejs-packaging-bundler 2021.06-4.module+el8.9.0+19519+e25b965afixed: vendor fix RHSA-2024:5814
-
Red Hat Enterprise Linux AppStream (v. 9) nodejs 20.16.0-1.module+el9.4.0+22197+9e60f127, npm 10.8.1-1.20.16.0.1.module+el9.4.0+22197+9e60f127, nodejs-nodemon 3.0.1-1.module+el9.3.0.z+20478+84a9f781, nodejs-full-i18n 20.16.0-1.module+el9.4.0+22197+9e60f127, nodejs-packaging 2021.06-4.module+el9.3.0+19518+63aad52d, nodejs-packaging-bundler 2021.06-4.module+el9.3.0+19518+63aad52dfixed: vendor fix RHSA-2024:5815
-
Red Hat Enterprise Linux 8 npm, nodejs, nodejs-libs, nodejs-nodemon, nodejs-full-i18n, nodejs-packaging, +1 more Red Hat Enterprise Linux 9 nodejs-packaging, nodejs-packaging-bundlernot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.46% chance of exploitation in the next 30 days, higher than 39% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 2.9 | CVSS:3.0/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N |
| OSV | 3.0 | 2.9 | CVSS:3.0/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | node | >=20.0.0, <20.15.1 >=21.0.0, <22.4.1 |
20.15.1 22.4.1 |
| bitnami | node-min | >=20.0.0, <20.18.1 >=21.0.0, <22.12.0 |
20.18.1 22.12.0 |
Affected products
- NodeJS Node
Classification
- Technology feeds
References
-
hackerone.com
/reports/2145862
web
-
openwall.com
/lists/oss-security/2024/07/11/6
web
-
openwall.com
/lists/oss-security/2024/07/19/3
web
-
security.netapp.com
/advisory/ntap-20240816-0007/
web
-
nvd.nist.gov
/vuln/detail/CVE-2024-22018
web
-
github.com
/nodejs/node/releases/tag/v20.15.1
web
-
github.com
/nodejs/node/releases/tag/v22.4.1
web
Sources
- CVE List CVE-2024-22018
- NVD CVE-2024-22018
- OSV BIT-node-2024-22018
- OSV BIT-node-min-2024-22018
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.