StraitOfVuln
Latest / CVE-2023-30585

CVE-2023-30585

HighCVSS 7.5 (v3.1)Modified
CVE.org ↗NVD ↗Vendor advisory ↗

Description

A vulnerability has been identified in the Node.js (.msi version) installation process, specifically affecting Windows users who install Node.js using the .msi installer. This vulnerability emerges during the repair operation, where the "msiexec.exe" process, running under the NT AUTHORITY\SYSTEM context, attempts to read the %USERPROFILE% environment variable from the current user's registry. The issue arises when the path referenced by the %USERPROFILE% environment variable does not exist. In such cases, the "msiexec.exe" process attempts to create the specified path in an unsafe manner, potentially leading to the creation of arbitrary folders in arbitrary locations. The severity of this vulnerability is heightened by the fact that the %USERPROFILE% environment variable in the Windows registry can be modified by standard (or "non-privileged") users. Consequently, unprivileged actors, including malicious entities or trojans, can manipulate the environment variable key to deceive the privileged "msiexec.exe" process. This manipulation can result in the creation of folders in unintended and potentially malicious locations. It is important to note that this vulnerability is specific to Windows users who install Node.js using the .msi installer. Users who opt for other installation methods are not affected by this particular issue.

Details

CVE ID
CVE-2023-30585
Published / updated
28 Nov 2023, 02:15 UTC · last modified 08 Oct 2026, 22:17 UTC
Severity
HIGH
CVSS score
7.5 · v3.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N · Attack vector: Network
Affected vendor
Affected products
Node.Js
Affected versions
Node.Js: ≥ 16.0.0, < 16.20.1
Node.Js: ≥ 18.0.0, < 18.16.1
Node.Js: ≥ 20.0.0, < 20.3.1
Fixed versions
node.js 16.20.1, node.js 18.16.1, node.js 20.3.1
Exploitation status
Not in CISA KEV (no confirmed exploitation recorded)
EPSS
1.47% probability of exploitation in the next 30 days · 74% percentile (02 Dec 2026)
Weakness
—
Remediation
Upgrade to a fixed release (node.js 16.20.1, node.js 18.16.1, node.js 20.3.1) per the vendor advisory.
Source (CNA)
support@hackerone.com