CVE-2023-32004 Path traversal in Node
Attackers can bypass file permission checks in Node.js experimental permission model to access unauthorized files via path traversal.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-32004?
CVE-2023-32004 is a high-severity path traversal vulnerability in Fedoraproject Fedora, published on 15 Aug 2023. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
A vulnerability has been discovered in Node.js version 20, specifically within the experimental permission model. This flaw relates to improper handling of Buffers in file system APIs causing a traversal path to bypass when verifying file permissions.
This vulnerability affects all users using the experimental permission model in Node.js 20.
Please note that at the time this CVE was issued, the permission model is an experimental feature of Node.js.
Weakness: CWE-22
Which versions are affected by CVE-2023-32004?
2 open source packages ship an affected version, including node and node-min. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
node Bitnami | From 20.0.0 | 20.5.1 |
node-min Bitnami | From 20.0.0 | 20.5.1 |
Products include Fedoraproject Fedora, Nodejs Node.js.
How do I fix CVE-2023-32004?
Upgrade node to 20.5.1 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2023-32004 being exploited?
There is no known exploitation of CVE-2023-32004 in the wild and no public exploit code.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as BIT-node-2023-32004, BIT-node-min-2023-32004, GHSA-x3wm-m4vj-p6px.