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

CVE编号

CVE-2023-39332

利用情况

暂无

补丁情况

官方补丁

披露时间

2023-10-18
漏洞描述
Various `node:fs` functions allow specifying paths as either strings or `Uint8Array` objects. In Node.js environments, the `Buffer` class extends the `Uint8Array` class. Node.js prevents path traversal through strings (see CVE-2023-30584) and `Buffer` objects (see CVE-2023-32004), but not through non-`Buffer` `Uint8Array` objects.

This is distinct from CVE-2023-32004 ([report 2038134](https://hackerone.com/reports/2038134)), which only referred to `Buffer` objects. However, the vulnerability follows the same pattern using `Uint8Array` instead of `Buffer`.

Impacts:

This vulnerability affects all users using the experimental permission model in Node.js 20.

Please note that at the time this CVE was issued, the permission model is an experimental feature of Node.js.
解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。
受影响软件情况
# 类型 厂商 产品 版本 影响面
1
运行在以下环境
应用 nodejs node.js * Up to
(excluding)
20.8.0
运行在以下环境
系统 alpine_3.18 nodejs-current * Up to
(excluding)
20.8.1-r0
运行在以下环境
系统 alpine_3.19 nodejs-current * Up to
(excluding)
20.8.1-r0
运行在以下环境
系统 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 nodejs20 * Up to
(excluding)
20.8.1-1.fc37
运行在以下环境
系统 fedora_38 nodejs20 * Up to
(excluding)
20.8.1-1.fc38
运行在以下环境
系统 fedora_39 nodejs * Up to
(excluding)
20.8.1-1.fc39
阿里云评分
6.7
  • 攻击路径
    远程
  • 攻击复杂度
    容易
  • 权限要求
    无需权限
  • 影响范围
    全局影响
  • EXP成熟度
    未验证
  • 补丁情况
    官方补丁
  • 数据保密性
    无影响
  • 数据完整性
    无影响
  • 服务器危害
    无影响
  • 全网数量
    N/A
CWE-ID 漏洞类型
CWE-22 对路径名的限制不恰当(路径遍历)
阿里云安全产品覆盖情况