低危 golang go 在命令中使用的特殊元素转义处理不恰当(命令注入)

CVE编号

CVE-2021-3115

利用情况

暂无

补丁情况

官方补丁

披露时间

2021-01-27
漏洞描述
Go before 1.14.14 and 1.15.x before 1.15.7 on Windows is vulnerable to Command Injection and remote code execution when using the "go get" command to fetch modules that make use of cgo (for example, cgo can execute a gcc program from an untrusted download).
解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。
受影响软件情况
# 类型 厂商 产品 版本 影响面
1
运行在以下环境
应用 golang go * Up to
(excluding)
1.14.14
运行在以下环境
应用 golang go * From
(including)
1.15
Up to
(excluding)
1.15.7
运行在以下环境
系统 alpine_3.13 go * Up to
(excluding)
1.15.7-r0
运行在以下环境
系统 alpine_3.14 go * Up to
(excluding)
1.15.7-r0
运行在以下环境
系统 alpine_3.15 go * Up to
(excluding)
1.15.7-r0
运行在以下环境
系统 alpine_3.16 go * Up to
(excluding)
1.15.7-r0
运行在以下环境
系统 alpine_3.17 go * Up to
(excluding)
1.15.7-r0
运行在以下环境
系统 alpine_3.18 go * Up to
(excluding)
1.15.7-r0
运行在以下环境
系统 alpine_3.19 go * Up to
(excluding)
1.15.7-r0
运行在以下环境
系统 amazon_2 golang * Up to
(excluding)
1.15.8-1.amzn2.0.1
运行在以下环境
系统 debian_11 golang-1.15 * Up to
(excluding)
1.15.7-1
运行在以下环境
系统 fedora_33 golang * Up to
(excluding)
1.15.7-1.fc33
运行在以下环境
系统 fedora_EPEL_7 golang * Up to
(excluding)
1.15.14-1.el7
运行在以下环境
系统 opensuse_Leap_15.1 go1.14 * Up to
(excluding)
1.14.14-lp151.28.1
运行在以下环境
系统 opensuse_Leap_15.2 go1.15 * Up to
(excluding)
1.15.7-lp152.8.1
阿里云评分
3.5
  • 攻击路径
    本地
  • 攻击复杂度
    容易
  • 权限要求
    无需权限
  • 影响范围
    有限影响
  • EXP成熟度
    N/A
  • 补丁情况
    官方补丁
  • 数据保密性
    N/A
  • 数据完整性
    传输被破坏
  • 服务器危害
    无影响
  • 全网数量
    N/A
CWE-ID 漏洞类型
CWE-427 对搜索路径元素未加控制
CWE-77 在命令中使用的特殊元素转义处理不恰当(命令注入)
CWE-94 对生成代码的控制不恰当(代码注入)
阿里云安全产品覆盖情况