CVE-2024-22018 Information disclosure in Node
Attackers can bypass file read restrictions to retrieve metadata from unauthorized files when using the experimental permission model in Node.js.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-22018?
CVE-2024-22018 is a low-severity vulnerability in NodeJS Node, published on 10 Jul 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Which versions are affected by CVE-2024-22018?
2 open source packages ship an affected version, including node and node-min.
| Package | Affected | Fixed in |
|---|---|---|
node Bitnami | From 20.0.0 | 20.15.1, 22.4.1 |
node-min Bitnami | From 20.0.0 | 20.18.1, 22.12.0 |
How do I fix CVE-2024-22018?
Upgrade node to a fixed version for your release line: 20.15.1 or 22.4.1.
Is CVE-2024-22018 being exploited?
There is no known exploitation of CVE-2024-22018 in the wild and no public exploit code.
Sources
Also known as ALPINE-CVE-2024-22018, AZL-43213, BELL-CVE-2024-22018, BIT-node-2024-22018, BIT-node-min-2024-22018, CLEANSTART-2026-SI30910 and 4 more.