CVE-2023-32003

nodejs: fs.mkdtemp() and fs.mkdtempSync() are missing getValidatedPath() checks

Published Aug 15, 2023 CVSS 3.1 · 5.3 Medium EPSS 1.2% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2023-36291 `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.
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
hackerone
Published
Updated
Jul 3, 2025, 2:09 PM
Reserved
May 1, 2023, 1:00 AM
Status
Modified
Published
Aug 15, 2023, 4:15 PM
Modified
Jun 17, 2026, 5:57 AM
Severity
Low
Public date
Aug 9, 2023, 12:00 AM