Untrusted search path in Node.js - CVE-2023-30585

 

Untrusted search path in Node.js - CVE-2023-30585

Published: June 21, 2023


Vulnerability identifier: #VU77601
CSH Severity: Low
CVSS v4: 8.5 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2023-30585
CWE-ID: CWE-426
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local user to escalate privileges on the system.

The vulnerability exists due to the way Node.js (.msi version) installation process handles a missing %USERPROFILE% environment variable. If the variable is not set, the .msi installer will try to include a current working directory into the search path and will libraries in an unsafe manner. A local user can place a malicious file on the victim's system and execute arbitrary code with elevated privileges.

The vulnerability affects Windows installators only.



Affected software

Node.js
IBM Business Automation Workflow
IBM Watson Discovery for IBM Cloud Pak for Data
IBM Spectrum Control
Automation Assets in IBM Cloud Pak for Integration (CP4I)
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise Server for SAP Applications 12
SUSE Linux Enterprise High Performance Computing 12
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Manager Server
SUSE Manager Proxy
SUSE Manager Retail Branch Server
SUSE Enterprise Storage
Oracle Solaris
Web and Scripting Module
SUSE Linux Enterprise Server
SUSE Linux Enterprise Server for SAP Applications
SUSE Linux Enterprise Server 15 SP3 LTSS
openSUSE Leap
Fedora
Voice Gateway
nodejs16
nodejs16-devel
nodejs16-debugsource
npm16
nodejs16-debuginfo
nodejs16-docs
corepack16
nodejs18
nodejs18-debugsource
nodejs18-debuginfo
nodejs18-devel
npm18
nodejs18-docs
corepack18
Platform Navigator in IBM Cloud Pak for Integration (CP4I)

How to mitigate CVE-2023-30585

Install updates from vendor's website.

Node.js - addressed in versions 16.20.1, 18.16.1, 20.3.1
Voice Gateway - addressed in versions 1.0.8.6, 1.0.8.10
IBM Watson Discovery for IBM Cloud Pak for Data - update to 4.7.3
IBM Spectrum Control - update to 5.4.10.2
nodejs16 - addressed in versions 16.20.1-1.fc37, 16.20.1-1.fc38
nodejs16-devel - addressed in versions 16.20.1-8.30.1, 16.20.1-150300.7.24.2, 16.20.1-150400.3.21.1
nodejs16-debugsource - addressed in versions 16.20.1-8.30.1, 16.20.1-150300.7.24.2, 16.20.1-150400.3.21.1
npm16 - addressed in versions 16.20.1-8.30.1, 16.20.1-150300.7.24.2, 16.20.1-150400.3.21.1
nodejs16-debuginfo - addressed in versions 16.20.1-8.30.1, 16.20.1-150300.7.24.2, 16.20.1-150400.3.21.1
nodejs16 - addressed in versions 16.20.1-8.30.1, 16.20.1-150300.7.24.2, 16.20.1-150400.3.21.1
nodejs16-docs - addressed in versions 16.20.1-8.30.1, 16.20.1-150300.7.24.2, 16.20.1-150400.3.21.1
corepack16 - update to 16.20.1-150400.3.21.1
nodejs18 - addressed in versions 18.16.1-1.fc37, 18.16.1-1.fc38
nodejs18 - addressed in versions 18.16.1-8.9.1, 18.16.1-150400.9.9.1
nodejs18-debugsource - addressed in versions 18.16.1-8.9.1, 18.16.1-150400.9.9.1
nodejs18-debuginfo - addressed in versions 18.16.1-8.9.1, 18.16.1-150400.9.9.1
nodejs18-devel - addressed in versions 18.16.1-8.9.1, 18.16.1-150400.9.9.1
npm18 - addressed in versions 18.16.1-8.9.1, 18.16.1-150400.9.9.1
nodejs18-docs - addressed in versions 18.16.1-8.9.1, 18.16.1-150400.9.9.1
corepack18 - update to 18.16.1-150400.9.9.1
Automation Assets in IBM Cloud Pak for Integration (CP4I) - update to 2022.2.1-11
Platform Navigator in IBM Cloud Pak for Integration (CP4I) - addressed in versions 2022.2.1-12, 2023.2.1-1

External References

Related Security Bulletins