Go toolchainのcmd/goとcmd/linkに脆弱性、細工した.sysoファイルで任意のリンカーフラグを注入されるおそれ
概要
2026年11月11日に公表された、Go toolchainの脆弱性です。細工した.sysoファイルを含むパッケージをビルドすると、検証されないまま外部リンカーにフラグを渡され、任意のコードを実行されるおそれがあります。影響を受けるのは1.26.11より前、および1.27.0以降1.27.4より前のcmd/go、cmd/link、Go toolchainで、1.26.11または1.27.4への更新で修正できます。
AI要約
SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。
2026年11月11日に公表された、Go toolchainの脆弱性です。細工した.sysoファイルを含むパッケージをビルドすると、検証されないまま外部リンカーにフラグを渡され、任意のコードを実行されるおそれがあります。影響を受けるのは1.26.11より前、および1.27.0以降1.27.4より前のcmd/go、cmd/link、Go toolchainで、1.26.11または1.27.4への更新で修正できます。
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| Go toolchaincmd/go |
1.26.11 未満→ 1.26.11 1.27.0-0 以上 1.27.4 未満→ 1.27.4 |
1.26.11 1.27.4 |
| Go toolchaincmd/link |
1.26.11 未満→ 1.26.11 1.27.0-0 以上 1.27.4 未満→ 1.27.4 |
1.26.11 1.27.4 |
| Gotoolchain |
1.26.11 未満→ 1.26.11 1.27.0-0 以上 1.27.4 未満→ 1.27.4 |
1.26.11 1.27.4 |
ディストリビューション別の修正状況
各ディストリビューションが公開している、この CVE の記録です。修正版は配布版ごとに違うので、リンク先で確かめてください。
- Alpine Linux ALPINE-CVE-2026-97040 go 修正版あり
- BellSoft Alpaquita BELL-CVE-2026-97040 go 修正版あり
- Debian DEBIAN-CVE-2026-97040 golang-1.27, golang-1.26 修正版あり
- Ubuntu UBUNTU-CVE-2026-97040 golang-1.27, golang-1.26, golang-1.25 ほか 14 件 この記録に修正版の記載なし
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
Building a package containing a crafted ".syso" file could bypass cgo flag validation and inject arbitrary linker flags when linking.
When loading ".syso" entries from a package archive, the linker only checked for recognized host object headers (ELF, Mach-O, PE, and XCOFF) before falling through to Go object parsing. A ".syso" file beginning with a "go object" header was parsed as a Go compiler object, allowing untrusted cgo metadata directives (such as "cgo_ldflag" or "cgo_dynamic_linker") embedded in the ".syso" file to be passed to the external linker without validation. Additionally, ".syso" filenames longer than 16 bytes lost their ".syso" extension when truncated in archive headers, and unrecognized ".syso" formats forced external linking in pure-Go builds.
The linker now rejects ".syso" files that are not recognized host object formats, and "cmd/go" and "cmd/pack" preserve the ".syso" suffix when truncating long archive member names.
出典: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
参照URL
- patch go.dev
- report go.dev
- web groups.google.com
- web security@golang.org
- web nvd.nist.gov
- web github.com