中危 nodejs 安全漏洞 (CVE-2023-30585)

CVE编号

CVE-2023-30585

利用情况

暂无

补丁情况

官方补丁

披露时间

2023-11-28
漏洞描述
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.
解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。
受影响软件情况
# 类型 厂商 产品 版本 影响面
1
运行在以下环境
应用 nodejs node.js * From
(including)
16.0.0
Up to
(excluding)
16.20.1
运行在以下环境
应用 nodejs node.js * From
(including)
18.0.0
Up to
(excluding)
18.16.1
运行在以下环境
应用 nodejs node.js * From
(including)
20.0.0
Up to
(excluding)
20.3.1
运行在以下环境
系统 debian_10 nodejs * Up to
(excluding)
10.24.0~dfsg-1~deb10u3
运行在以下环境
系统 debian_11 nodejs * Up to
(excluding)
12.22.12~dfsg-1~deb11u4
运行在以下环境
系统 debian_12 nodejs * Up to
(excluding)
18.19.0+dfsg-6~deb12u1
运行在以下环境
系统 fedora_37 nodejs * Up to
(excluding)
18.16.1-1.fc37
运行在以下环境
系统 fedora_38 nodejs * Up to
(excluding)
18.16.1-1.fc38
运行在以下环境
系统 opensuse_Leap_15.4 npm16 * Up to
(excluding)
16.20.1-150400.3.21.1
运行在以下环境
系统 opensuse_Leap_15.5 npm18 * Up to
(excluding)
18.16.1-150400.9.9.1
阿里云评分
6.2
  • 攻击路径
    本地
  • 攻击复杂度
    复杂
  • 权限要求
    普通权限
  • 影响范围
    越权影响
  • EXP成熟度
    未验证
  • 补丁情况
    官方补丁
  • 数据保密性
    无影响
  • 数据完整性
    无影响
  • 服务器危害
    无影响
  • 全网数量
    N/A
CWE-ID 漏洞类型
NVD-CWE-noinfo
阿里云安全产品覆盖情况