中危 路径/文件路径中带有 \??\ 前缀的 Windows 路径不安全解析 (CVE-2023-45283)

CVE编号

CVE-2023-45283

利用情况

暂无

补丁情况

官方补丁

披露时间

2023-11-10
漏洞描述
The filepath package does not recognize paths with a \??\ prefix as special. On Windows, a path beginning with \??\ is a Root Local Device path equivalent to a path beginning with \\?\. Paths with a \??\ prefix may be used to access arbitrary locations on the system. For example, the path \??\c:\x is equivalent to the more common path c:\x. Before fix, Clean could convert a rooted path such as \a\..\??\b into the root local device path \??\b. Clean will now convert this to .\??\b. Similarly, Join(\, ??, b) could convert a seemingly innocent sequence of path elements into the root local device path \??\b. Join will now convert this to \.\??\b. In addition, with fix, IsAbs now correctly reports paths beginning with \??\ as absolute, and VolumeName correctly reports the \??\ prefix as a volume name.
解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。
受影响软件情况
# 类型 厂商 产品 版本 影响面
1
运行在以下环境
应用 golang go * Up to
(excluding)
1.20.11
运行在以下环境
应用 golang go * From
(including)
1.21.0-0
Up to
(excluding)
1.21.4
运行在以下环境
系统 amazon_2 golang * Up to
(excluding)
1.20.12-1.amzn2.0.1
运行在以下环境
系统 amazon_2023 golang * Up to
(excluding)
1.20.12-1.amzn2023.0.1
运行在以下环境
系统 amazon_AMI golang * Up to
(excluding)
1.20.12-1.49.amzn1
运行在以下环境
系统 anolis_os_23 golang * Up to
(excluding)
1.20.12-1
运行在以下环境
系统 microsoft windows - -
运行在以下环境
系统 opensuse_Leap_15.4 go1.20 * Up to
(excluding)
1.20.11-150000.1.32.1
运行在以下环境
系统 opensuse_Leap_15.5 go1.20 * Up to
(excluding)
1.20.11-150000.1.32.1
阿里云评分
6.2
  • 攻击路径
    本地
  • 攻击复杂度
    复杂
  • 权限要求
    普通权限
  • 影响范围
    越权影响
  • EXP成熟度
    未验证
  • 补丁情况
    官方补丁
  • 数据保密性
    无影响
  • 数据完整性
    无影响
  • 服务器危害
    无影响
  • 全网数量
    N/A
CWE-ID 漏洞类型
CWE-22 对路径名的限制不恰当(路径遍历)
阿里云安全产品覆盖情况