CVE-2023-30585 Affecting nodejs18-devel package, versions <18.16.1-150400.9.9.1


Severity

Recommended
0.0
medium
0
10

Based on SUSE Linux Enterprise Server security rating.

Threat Intelligence

EPSS
0.07% (32nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-SLES155-NODEJS18DEVEL-5746943
  • published29 Jun 2023
  • disclosed28 Jun 2023

Introduced: 28 Jun 2023

CVE-2023-30585  (opens in a new tab)

How to fix?

Upgrade SLES:15.5 nodejs18-devel to version 18.16.1-150400.9.9.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream nodejs18-devel package and not the nodejs18-devel package as distributed by SLES. See How to fix? for SLES:15.5 relevant fixed versions and status.

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.

CVSS Scores

version 3.1