CVE-2023-32003 Path traversal in Node

Medium 5.3 Published Updated

Attackers can bypass permission model checks via path traversal in fs.mkdtemp to create arbitrary directories in Node.js 20.

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-32003?

CVE-2023-32003 is a medium-severity path traversal vulnerability in Fedoraproject Fedora, published on 15 Aug 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

`fs.mkdtemp()` and `fs.mkdtempSync()` can be used to bypass the permission model check using a path traversal attack. This flaw arises from a missing check in the fs.mkdtemp() API and the impact is a malicious actor could create an arbitrary directory.

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-32003?

2 open source packages ship an affected version, including node and node-min. It affects 2 products.

PackageAffectedFixed in
node BitnamiFrom 20.0.020.5.1
node-min BitnamiFrom 20.0.020.5.1

Products include Fedoraproject Fedora, Nodejs Node.js.

How do I fix CVE-2023-32003?

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-32003 being exploited?

There is no known exploitation of CVE-2023-32003 in the wild and no public exploit code.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as BIT-node-2023-32003, BIT-node-min-2023-32003, GHSA-r874-ffh8-2fvj.

Is CVE-2023-32003 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free