nodejs: fs.lstat bypasses permission model
Published Jul 10, 2024
2.9
LOWCVSS 3.0
EPSS 0.46%
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.
Affected products
-
- Version 10.0StatusaffectedConstraints<10.*
- Version 11.0StatusaffectedConstraints<11.*
- Version 12.0StatusaffectedConstraints<12.*
- Version 13.0StatusaffectedConstraints<13.*
- Version 14.0StatusaffectedConstraints<14.*
- Version 15.0StatusaffectedConstraints<15.*
- Version 16.0StatusaffectedConstraints<16.*
- Version 17.0StatusaffectedConstraints<17.*
- Version 19.0StatusaffectedConstraints<19.*
- Version 20.0StatusaffectedConstraints<20.15.1
- Version 21.0StatusaffectedConstraints<21.*
- Version 22.0StatusaffectedConstraints<22.4.1
- Version 4.0StatusaffectedConstraints<4.*
- Version 5.0StatusaffectedConstraints<5.*
- Version 6.0StatusaffectedConstraints<6.*
- Version 7.0StatusaffectedConstraints<7.*
- Version 8.0StatusaffectedConstraints<8.*
- Version 9.0StatusaffectedConstraints<9.*
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Node.js | Node | unaffected |
|
No data.
No data.
Red Hat Enterprise Linux 8
nodejs:20-8100020240808073736.489197e6
Fixed · RHSA-2024:5814
Red Hat Enterprise Linux 9
nodejs:20-9040020240807145403.rhel9
Fixed · RHSA-2024:5815
Red Hat Enterprise Linux 10
nodejs20
Fix deferred
Red Hat Enterprise Linux 8
nodejs:18/nodejs
Not affected
Red Hat Enterprise Linux 9
nodejs:18/nodejs-packaging
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 8 | nodejs:20-8100020240808073736.489197e6 | Fixed | RHSA-2024:5814 |
| Red Hat Enterprise Linux 9 | nodejs:20-9040020240807145403.rhel9 | Fixed | RHSA-2024:5815 |
| Red Hat Enterprise Linux 10 | nodejs20 | Fix deferred | n/a |
| Red Hat Enterprise Linux 8 | nodejs:18/nodejs | Not affected | n/a |
| Red Hat Enterprise Linux 9 | nodejs:18/nodejs-packaging | Not affected | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
No CVSS v2.0 score for this CVE.
This CVE is not in the KEV list.
CISA SSVC (Vulnrichment)
Stakeholder-Specific Vulnerability Categorization from CISA ADP.
Exploitation
NoneAutomatable
NoTechnical Impact
PartialDecision
n/aAssessed Jul 10, 2024 · SSVC 2.0.3
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2024–2026- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (5 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 0.46% (0.00458) | 37.39th | v5 (v2026.06.15) |
| Jun 15, 2026 | 0.46% (0.00458) | 36.08th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.05% (0.00053) | 13.50th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.04% (0.00045) | 17.70th | v3 (v2023.03.01) |
| Jul 10, 2024 | 0.04% (0.00043) | 9.24th | v3 (v2023.03.01) |
No CWE recorded.
References (8)
- http://www.openwall.com/lists/oss-security/2024/07/11/6
- http://www.openwall.com/lists/oss-security/2024/07/19/3
- https://access.redhat.com/security/cve/CVE-2024-22018 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2296990 Issue Tracking
- https://hackerone.com/reports/2145862
- https://nvd.nist.gov/vuln/detail/CVE-2024-22018
- https://security.netapp.com/advisory/ntap-20240816-0007/
- https://www.cve.org/CVERecord?id=CVE-2024-22018
Change history (0)
No recorded changes yet.