Bugzilla – Bug 1212579
VUL-0: CVE-2023-30585: nodejs14,nodejs16,nodejs18: Privilege escalation via Malicious Registry Key manipulation during Node.js installer repair process
Last modified: 2023-10-27 10:10:35 UTC
Privilege escalation via Malicious Registry Key manipulation during Node.js installer repair process (Medium) (CVE-2023-30585) 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. This affects all active Node.js versions: v16, v18, and, v20. Thank you, to @sim0nsecurity for reporting this vulnerability and thank you Tobias Nießen for fixing it.
https://nodejs.org/en/blog/vulnerability/june-2023-security-releases
This is an autogenerated message for OBS integration: This bug (1212579) was mentioned in https://build.opensuse.org/request/show/1094364 Factory / nodejs20
This only affects MSI installations, so Windows
(In reply to Adam Majer from comment #3) > This only affects MSI installations, so Windows done
SUSE-SU-2023:2655-1: An update that solves nine vulnerabilities and has one fix can now be installed. Category: security (important) Bug References: 1211407, 1211604, 1211605, 1211606, 1211607, 1212574, 1212579, 1212581, 1212582, 1212583 CVE References: CVE-2023-30581, CVE-2023-30585, CVE-2023-30588, CVE-2023-30589, CVE-2023-30590, CVE-2023-31124, CVE-2023-31130, CVE-2023-31147, CVE-2023-32067 Sources used: Web and Scripting Module 12 (src): nodejs16-16.20.1-8.30.1 NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
SUSE-SU-2023:2663-1: An update that solves nine vulnerabilities and has one fix can now be installed. Category: security (important) Bug References: 1211407, 1211604, 1211605, 1211606, 1211607, 1212574, 1212579, 1212581, 1212582, 1212583 CVE References: CVE-2023-30581, CVE-2023-30585, CVE-2023-30588, CVE-2023-30589, CVE-2023-30590, CVE-2023-31124, CVE-2023-31130, CVE-2023-31147, CVE-2023-32067 Sources used: openSUSE Leap 15.4 (src): nodejs16-16.20.1-150400.3.21.1 Web and Scripting Module 15-SP4 (src): nodejs16-16.20.1-150400.3.21.1 NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
SUSE-SU-2023:2662-1: An update that solves 10 vulnerabilities and has one fix can now be installed. Category: security (important) Bug References: 1208744, 1211407, 1211604, 1211605, 1211606, 1211607, 1212574, 1212579, 1212581, 1212582, 1212583 CVE References: CVE-2022-25881, CVE-2023-30581, CVE-2023-30585, CVE-2023-30588, CVE-2023-30589, CVE-2023-30590, CVE-2023-31124, CVE-2023-31130, CVE-2023-31147, CVE-2023-32067 Sources used: Web and Scripting Module 12 (src): nodejs18-18.16.1-8.9.1 NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
SUSE-SU-2023:2669-1: An update that solves 10 vulnerabilities and has one fix can now be installed. Category: security (important) Bug References: 1208744, 1211407, 1211604, 1211605, 1211606, 1211607, 1212574, 1212579, 1212581, 1212582, 1212583 CVE References: CVE-2022-25881, CVE-2023-30581, CVE-2023-30585, CVE-2023-30588, CVE-2023-30589, CVE-2023-30590, CVE-2023-31124, CVE-2023-31130, CVE-2023-31147, CVE-2023-32067 Sources used: openSUSE Leap 15.4 (src): nodejs18-18.16.1-150400.9.9.1 openSUSE Leap 15.5 (src): nodejs18-18.16.1-150400.9.9.1 Web and Scripting Module 15-SP4 (src): nodejs18-18.16.1-150400.9.9.1 Web and Scripting Module 15-SP5 (src): nodejs18-18.16.1-150400.9.9.1 NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
SUSE-SU-2023:2861-1: An update that solves nine vulnerabilities and has one fix can now be installed. Category: security (important) Bug References: 1211407, 1211604, 1211605, 1211606, 1211607, 1212574, 1212579, 1212581, 1212582, 1212583 CVE References: CVE-2023-30581, CVE-2023-30585, CVE-2023-30588, CVE-2023-30589, CVE-2023-30590, CVE-2023-31124, CVE-2023-31130, CVE-2023-31147, CVE-2023-32067 Sources used: SUSE Linux Enterprise High Performance Computing ESPOS 15 SP3 (src): nodejs16-16.20.1-150300.7.24.2 SUSE Linux Enterprise High Performance Computing LTSS 15 SP3 (src): nodejs16-16.20.1-150300.7.24.2 SUSE Linux Enterprise Server 15 SP3 LTSS 15-SP3 (src): nodejs16-16.20.1-150300.7.24.2 SUSE Linux Enterprise Server for SAP Applications 15 SP3 (src): nodejs16-16.20.1-150300.7.24.2 SUSE Manager Server 4.2 (src): nodejs16-16.20.1-150300.7.24.2 SUSE Enterprise Storage 7.1 (src): nodejs16-16.20.1-150300.7.24.2 NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.