CVE-2023-30583 Security feature bypass in Node
Attackers can bypass the experimental Node.js permission model to read files when using the fs.openAsBlob API with specific flags.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-30583?
CVE-2023-30583 is a high-severity vulnerability in NodeJS Node, published on 7 Sep 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
fs.openAsBlob() can bypass the experimental permission model when using the file system read restriction with the `--allow-fs-read` flag in Node.js 20. This flaw arises from a missing check in the `fs.openAsBlob()` API.
Please note that at the time this CVE was issued, the permission model is an experimental feature of Node.js.
Weakness: CWE-284
Which versions are affected by CVE-2023-30583?
2 open source packages ship an affected version, including node and node-min.
| Package | Affected | Fixed in |
|---|---|---|
node Bitnami | From 20.0.0 | 20.3.1 |
node-min Bitnami | From 20.0.0 | 20.3.1 |
How do I fix CVE-2023-30583?
Upgrade node to 20.3.1 or later.
Is CVE-2023-30583 being exploited?
There is no known exploitation of CVE-2023-30583 in the wild and no public exploit code.
Sources
Also known as BIT-node-2023-30583, BIT-node-min-2023-30583, GHSA-9ccp-4gjg-264g.