CVE-2024-22018
A vulnerability has been identified in Node.js, affecting users of the experimental permission model when the --allow-fs-read flag is…
- Published
- Updated
- Reserved
- Assigned by
- hackerone
Description
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| hackeroneCNA (assigner) | 3.0 | Low2.9 | CVSS:3.0/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N |
| NVDNVD · Deferred | 3.0 | Low2.9 | CVSS:3.0/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N |
- EPSS (exploitation in 30 days)
- 0.46% · top 60% of all CVEs (4 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Low 2.9.
Weakness
- CWE-noinfo Not enough information
Affected products
- affected 4.0 – < 4.*
- affected 5.0 – < 5.*
- affected 6.0 – < 6.*
- affected 7.0 – < 7.*
- affected 8.0 – < 8.*
- affected 9.0 – < 9.*
- affected 10.0 – < 10.*
- affected 11.0 – < 11.*
- affected 12.0 – < 12.*
- affected 13.0 – < 13.*
- affected 14.0 – < 14.*
- affected 15.0 – < 15.*
- affected 16.0 – < 16.*
- affected 17.0 – < 17.*
- affected 19.0 – < 19.*
- affected 20.0 – < 20.15.1
- affected 21.0 – < 21.*
- affected 22.0 – < 22.4.1
References (4)
- https://hackerone.com/reports/2145862 (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2024/07/11/6 (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2024/07/19/3 (opens in a new tab)x_transferred
- https://security.netapp.com/advisory/ntap-20240816-0007/ (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2024-22018)Record last updated .