Breaking News: Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2023-30585

nodejs: privilege escalation via Malicious Registry Key manipulation during Node.js installer repair process

Overview

Published
28 Nov 2023
Modified
8 Oct 2026
High CVE
2 Registry packages
18 OS packages
5 Linux distributions
Yes Fix available

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.

Source: OX vulnerability database

Severity

7.5 · HIGH

CVSS 3.1 base score, scored by NVD.

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None

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

Affected packages · 2

Packages affected by CVE-2023-30585
EcosystemPackageVulnerableFixed in
Bitnami node >=16.0.0, <16.20.1>=18.0.0, <18.16.1>=20.0.0, <20.3.1 16.20.118.16.120.3.1
Bitnami node-min >=16.0.0, <16.20.1>=18.0.0, <18.16.1>=20.0.0, <20.3.1 16.20.118.16.120.3.1

Open a package to see all its vulnerabilities.

Operating systems · 12 fixes

Photon OS 2 releases · 1 package

fixed 2
nodejs
Photon OS fixes for CVE-2023-30585
ReleasePackageFixed in
4.0 nodejs +1 18.20.8-1.ph4
5.0 nodejs +1 18.16.1-1.ph5

SUSE Linux Enterprise 2 releases · 2 packages

fixed 3
nodejs16 nodejs18
SUSE Linux Enterprise fixes for CVE-2023-30585
ReleasePackageFixed inAdvisory
15.4 nodejs16 +3 16.20.1-150400.3.21.1 SUSE-SU-2023:2663-1
15.4 nodejs18 +3 18.16.1-150400.9.9.1 SUSE-SU-2023:2669-1
15.5 nodejs18 +3 18.16.1-150400.9.9.1 SUSE-SU-2023:2669-1

chainguard 1 release · 3 packages

fixed 3
nodejs-16 nodejs-18 nodejs-20
chainguard fixes for CVE-2023-30585
ReleasePackageFixed in
nodejs-16 16.20.1-r0
nodejs-18 18.16.1-r0
nodejs-20 20.3.1-r0

openSUSE 1 release · 1 package

fixed 1
corepack20
openSUSE fixes for CVE-2023-30585
ReleasePackageFixed inAdvisory
Tumbleweed corepack20 +4 20.3.1-1.1 openSUSE-SU-2024:13021-1

wolfi 1 release · 3 packages

fixed 3
nodejs-16 nodejs-18 nodejs-20
wolfi fixes for CVE-2023-30585
ReleasePackageFixed in
nodejs-16 16.20.1-r0
nodejs-18 18.16.1-r0
nodejs-20 20.3.1-r0

References

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.