目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2026-97043— Go 1.22 编译期远程代码执行漏洞

一分钟漏洞结论

影响对象
Go toolchain cmd/go
利用判断
尚无明确在野利用证据,仍需结合暴露面评估
建议动作
优先检查厂商安全公告和参考链接中的修复版本;无法立即升级时,限制受影响服务暴露并加强监测。

构建一个使用 cgo 的恶意包时,可通过在 指令中精心构造引号,绕过对 的验证,从而在构建阶段触发意外代码执行,或导致 命令发生恐慌(panic)。 具体而言,当 生成 时,会使用 对每个 参数进行转义,并将其写入 指令中。然而, 和 在解析这些指令时,仅通过原始引号字符进行分割,未正确处理反斜杠转义,也未对字符串进行取消转义(unquote)。这种不一致使得本应被禁止的链接器标志或未经验证的链接器搜索路径得以绕过 命令的标志检查,并被传递给外部链接器。 此外, 命令在对 LDFLAGS 进行去重时,若标志列表的前

AI 预测 8.8 利用难度: 较易 EPSS 0.57% · P48

影响版本矩阵 4

厂商产品 版本范围状态
Go toolchain cmd/compile < 1.26.11 affected
1.27.0-0< 1.27.4 affected
Go toolchain cmd/go < 1.26.11 affected
1.27.0-0< 1.27.4 affected
获取后续新漏洞提醒 登录后订阅

一、 漏洞 CVE-2026-97043 基础信息

漏洞信息

对漏洞内容有疑问?看看神龙的深度分析是否有帮助!
查看神龙十问 ↗

尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。

Vulnerability Title
Unexpected code execution via escaped quotes in //go:cgo_ldflag in cmd/go and cmd/compile
来源: CVE Program / CVE List V5
Vulnerability Description
Building a malicious package that uses cgo could bypass "#cgo LDFLAGS" validation and cause unexpected code execution at build time, or cause the go command to panic, via crafted quoting in "//go:cgo_ldflag" directives. When "cmd/cgo" generates "_cgo_gotypes.go", it quotes each "#cgo LDFLAGS" argument with strconv.Quote in a "//go:cgo_ldflag" directive, but "cmd/compile" and "cmd/go" parsed those directives by splitting on raw quote characters without handling backslash escapes or unquoting the string. This mismatch allowed disallowed linker flags or unvalidated linker search paths to be smuggled past the go command's flag checks and passed to the external linker. In addition, deduplicating LDFLAGS in the go command could panic with an out-of-bounds slice index when a prefix of the flag list matched near the end of the slice. "cmd/compile" and "cmd/go" now properly handle backslash-escaped quotes and unquote "//go:cgo_*" pragma strings with strconv.Unquote, and the slice bounds check in processCgoOutputs has been fixed.
来源: CVE Program / CVE List V5
CVSS Information
N/A
来源: CVE Program / CVE List V5
Vulnerability Type
N/A
来源: CVE Program / CVE List V5

受影响产品

厂商 产品 影响版本 CPE 订阅
Go toolchain cmd/go 0 ~ 1.26.11 -
Go toolchain cmd/compile 0 ~ 1.26.11 -

二、漏洞 CVE-2026-97043 的公开POC

# POC 描述 源链接 神龙链接
AI 生成 POC 高级

未找到公开 POC。

登录以生成 AI POC

三、漏洞 CVE-2026-97043 的情报信息

请登录查看更多情报信息。

CVE-2026-97043 厂商安全公告 (1)

CVE-2026-97043 厂商页面 (2)

CVE-2026-97043 其他参考 (1)

同批安全公告 · Go toolchain · 2026-11-11 · 共 11 条

CVE-2026-97040 Go 命令及链接器 .syso 文件指令注入漏洞
CVE-2026-97038 Go cmd/go 任意代码执行漏洞
CVE-2026-97034 Go 1.23 因 cgo 链接器搜索目录任意命令执行漏洞
CVE-2026-97042 Go 链接器标志注入漏洞
CVE-2026-97036 Go 编译时通过 cgo 任意代码执行漏洞
CVE-2026-97039 Go 命令 #cgo 指令标志清理绕过漏洞
CVE-2026-97037 Go 链接器脚本注入漏洞
CVE-2026-97035 Go 1.17 远程代码执行与任意文件写入漏洞
CVE-2026-97033 Go 命令行工具意外代码执行漏洞
CVE-2026-97041 Go 编译器和链接器 CGO 指令注入漏洞

IV. Related Vulnerabilities