Skip to content
OpenAdvisories
Unscored CVE-2023-30585 EUVD-2023-34966GHSA-4r2r-cf85-vmc7

A vulnerability has been identified in the Node.js (.msi version) installation process, specifically affecting Windows users who install No…

Published Nov 28, 2023 · Updated Oct 8, 2026 · Assigned by hackerone

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.

Affected products

VendorProductAffectedFixed
NodeJS Node 4.0 – < 4.*, 5.0 – < 5.*, 6.0 – < 6.*, 7.0 – < 7.*, 8.0 – < 8.*, 9.0 – < 9.*, 10.0 – < 10.*, 11.0 – < 11.*, 12.0 – < 12.*, 13.0 – < 13.*, 14.0 – < 14.*, 15.0 – < 15.*, 16.0 – < 16.20.1, 17.0 – < 17.*, 18.0 – < 18.16.1, 19.0 – < 19.*, 20.0 – < 20.3.1 4.*

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
SLES 15 SP5 nodejs18 18.16.1-150400.9.9.1 SUSE-SU-2023:2669-1
SLES 15 SP4 nodejs16 16.20.1-150400.3.21.1 SUSE-SU-2023:2663-1
SLES 15 SP4 nodejs18 18.16.1-150400.9.9.1 SUSE-SU-2023:2669-1
SLES 15 SP3 nodejs16 16.20.1-150300.7.24.2 SUSE-SU-2023:2861-1
SLES 12 nodejs16 16.20.1-8.30.1 SUSE-SU-2023:2655-1
SLES 12 nodejs18 18.16.1-8.9.1 SUSE-SU-2023:2662-1
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP3 nodejs16 16.20.1-150300.7.24.2 SUSE-SU-2023:2861-1
SLE HPC 15 SP3 nodejs16 16.20.1-150300.7.24.2 SUSE-SU-2023:2861-1
SUSE Manager Server 4.2 nodejs16 16.20.1-150300.7.24.2 SUSE-SU-2023:2861-1
SUSE Enterprise Storage 7.1 nodejs16 16.20.1-150300.7.24.2 SUSE-SU-2023:2861-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed nodejs20 20.3.1-1.1 openSUSE-SU-2024:13021-1
openSUSE Leap 15.5 nodejs18 18.16.1-150400.9.9.1 SUSE-SU-2023:2669-1
openSUSE Leap 15.4 nodejs16 16.20.1-150400.3.21.1 SUSE-SU-2023:2663-1
openSUSE Leap 15.4 nodejs18 18.16.1-150400.9.9.1 SUSE-SU-2023:2669-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling nodejs-16 16.20.1-r0 —
Wolfi rolling nodejs-18 18.16.1-r0 —
Wolfi rolling nodejs-20 20.3.1-r0 —

Advisories 10

References