中危 在构建期间通过 cmd/go 中的行指令执行任意代码 (CVE-2023-39323)
CVE编号
CVE-2023-39323利用情况
暂无补丁情况
官方补丁披露时间
2023-10-06漏洞描述
Line directives ("//line") can be used to bypass the restrictions on "//go:cgo_" directives, allowing blocked linker and compiler flags to be passed during compilation. This can result in unexpected execution of arbitrary code when running "go build". The line directive requires the absolute path of the file in which the directive lives, which makes exploiting this issue significantly more complex.解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。受影响软件情况
# | 类型 | 厂商 | 产品 | 版本 | 影响面 | ||||
1 | |||||||||
---|---|---|---|---|---|---|---|---|---|
运行在以下环境 | |||||||||
应用 | golang | go | * | Up to (excluding) 1.20.9 | |||||
运行在以下环境 | |||||||||
应用 | golang | go | * | From (including) 1.21.0 | Up to (excluding) 1.21.2 | ||||
运行在以下环境 | |||||||||
系统 | alpine_3.18 | go | * | Up to (excluding) 1.20.9-r0 | |||||
运行在以下环境 | |||||||||
系统 | alpine_edge | go | * | Up to (excluding) 1.21.2-r0 | |||||
运行在以下环境 | |||||||||
系统 | amazon_2 | golang | * | Up to (excluding) 1.amzn2 | |||||
运行在以下环境 | |||||||||
系统 | amazon_2023 | golang | * | Up to (excluding) 1.amzn2023 | |||||
运行在以下环境 | |||||||||
系统 | amazon_AMI | golang | * | Up to (excluding) 1.20.10-1.48.amzn1 | |||||
运行在以下环境 | |||||||||
系统 | anolis_os_23 | golang-docs | * | Up to (excluding) 1.20.9-1 | |||||
运行在以下环境 | |||||||||
系统 | debian_10 | golang-1.11 | * | Up to (including) 1.11.6-1+deb10u4 | |||||
运行在以下环境 | |||||||||
系统 | debian_11 | golang-1.15 | * | Up to (including) 1.15.15-1~deb11u4 | |||||
运行在以下环境 | |||||||||
系统 | debian_12 | golang-1.19 | * | Up to (including) 1.19.8-2 | |||||
运行在以下环境 | |||||||||
系统 | debian_sid | golang-1.19 | * | Up to (including) 1.19.13-1 | |||||
运行在以下环境 | |||||||||
系统 | fedora_37 | golang-docs | * | Up to (excluding) 1.20.10-3.fc37 | |||||
运行在以下环境 | |||||||||
系统 | fedora_38 | golang-docs | * | Up to (excluding) 1.20.10-2.fc38 | |||||
运行在以下环境 | |||||||||
系统 | fedora_39 | golang-docs | * | Up to (excluding) 1.21.3-1.fc39 | |||||
运行在以下环境 | |||||||||
系统 | unionos_e | golang | * | Up to (excluding) golang-1.15.7-35.uel20 | |||||
- 攻击路径 远程
- 攻击复杂度 容易
- 权限要求 无需权限
- 影响范围 全局影响
- EXP成熟度 未验证
- 补丁情况 官方补丁
- 数据保密性 无影响
- 数据完整性 无影响
- 服务器危害 无影响
- 全网数量 N/A
CWE-ID | 漏洞类型 |
NVD-CWE-noinfo |
Exp相关链接

版权声明
本站原创文章转载请注明文章出处及链接,谢谢合作!
评论