CVE Database›Document archive›CVE-2023-32003

CVE-2023-32003

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

Loading…

Severity

Low

Red Hat Product Security

5.3

CVSS 3.1

Review impact separately from score.

Published · August 9, 2023

Updated · November 21, 2025

Description

A vulnerability was found in NodeJS. This security issue occurs as 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.

Statement

For this CVE no Red Hat Products are affected as this CVE only affects Node.js version 20, specifically within the experimental permission model feature of Node.js 20, that we are not shipped.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

CVSS / CWE

CVSS 3.1 · 5.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')