CVE-2023-32003: Path Traversal
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.
Other sources
Node.js could allow a remote attacker to bypass security restrictions, caused by a missing getValidatedPath() check in the fs.mkdtemp() and fs.mkdtempSync() APIs. By using a path traversal attack, an attacker could exploit this vulnerability to bypass the permission model check and create an arbitrary directory.
— IBM
Affected Software
Event History
Frequently Asked Questions
What is the vulnerability ID for this vulnerability?
The vulnerability ID for this vulnerability is CVE-2023-32003.
What is the title of this vulnerability?
The title of this vulnerability is 'fs.mkdtemp() and fs.mkdtempSync() can be used to bypass the permission model check using a path traversal attack.'
How can this vulnerability be exploited?
This vulnerability can be exploited by using a path traversal attack to bypass the permission model check in the fs.mkdtemp() API.
Which software is affected by this vulnerability?
This vulnerability affects Node.js versions 20.0.0 to 20.5.0 and Fedora versions 37 and 38.
What is the severity of this vulnerability?
The severity of this vulnerability is medium, with a CVSS score of 5.3.