緊急
Go toolchain cgo flaws allow code execution at build time
CVE-2026-97040 ほか10件
Building a malicious package with the Go language build tool can secretly run programs on your PC!
- CVE
- CVE-2026-97040 ほか10件
- スコア
- CVSS 9.8 · CVE-2026-97040
- 初確認
対処法
Update to Go 1.26.11 or later on the 1.26 line, and to Go 1.27.4 or later on the 1.27 line.
お使いの製品に合ったバージョン以降に更新してください:
- Go toolchain 1.26 1.26.11 以降
- Go toolchain 1.27 1.27.4 以降
要約
A cgo handling flaw in the Go toolchain lets a malicious package run unexpected code at build time. Versions before 1.26.11 and from 1.27.0 before 1.27.4 are affected. The same release also fixes linker flag checks that could be bypassed and a crash in the go command.
該当する条件
- Building a malicious package (cgo in use)
- CVE-2026-97036 Apple linker used on Darwin
- CVE-2026-97034 GCC used
- CVE-2026-97035 Clang or GCC used
- CVE-2026-97033 GCC or Clang used
- CVE-2026-97041 ELF platforms such as Linux
- CVE-2026-97042 PE object linked on Windows
- CVE-2026-97037 GNU ld.bfd used
製品別のインシデント: cmd/cgo · cmd/compile · cmd/go · cmd/link
ディストリビューション別パッケージ (22)(下のリンクはすべて新しいタブで開きます)
- Debian 13 (trixie)golang-1.24 · 未修正
- Debian 12 (bookworm)golang-1.19 · 未修正
- Alpine 3.24go · 1.26.11-r0 で修正済み CVE-2026-97040, CVE-2026-97043, CVE-2026-97041, CVE-2026-97042, CVE-2026-97038, CVE-2026-97035, CVE-2026-97037, CVE-2026-97033, CVE-2026-97034, CVE-2026-97039
- Alpine 3.24go · 影響なし CVE-2026-97036
- RHEL 10golang · 1.27.4-3.el10_3 で修正済み
- RHEL 9golang · 1.27.4-1.el9_9 で修正済み
- SLES 16.1go · 影響なし
- SLES 16.1go1.26 · 1.26.11-160100.1.1 で修正済み
- SLES 16.1go1.27 · 1.27.4-160100.1.1 で修正済み
- SLES 16.0go · 影響なし
- SLES 16.0go1.25 · 影響なし
- SLES 16.0go1.26 · 1.26.11-160000.1.1 で修正済み
- SLES 16.0go1.27 · 1.27.4-160000.1.1 で修正済み
- SLES 15 SP7go · 影響なし
- SLES 15 SP7go1.25 · 影響なし
- SLES 15 SP7go1.26 · 1.26.11-150000.1.39.1 で修正済み
- SLES 15 SP7go1.27 · 1.27.4-150000.1.18.1 で修正済み
- openSUSE Leap 16.0go1.25 · 影響なし
- openSUSE Leap 16.0go1.26 · 1.26.11-160000.1.1 で修正済み
- openSUSE Leap 16.0go1.27 · 1.27.4-160000.1.1 で修正済み
- openSUSE Tumbleweedgo1.26 · 1.26.11-1.1 で修正済み
- openSUSE Tumbleweedgo1.27 · 1.27.4-1.1 で修正済み
出典: Debian Security Tracker · Alpine Linux secdb · Red Hat Security Data (CC BY 4.0) · SUSE CSAF VEX (CC BY 4.0)
CVE 11件(下のリンクはすべて新しいタブで開きます)
CVE レコードを読む · cve.org(新しいタブで開きます)
CVE 11件それぞれの内容(下のリンクはすべて新しいタブで開きます)
- CVE-2026-97040Crafted .syso files can pass unchecked cgo directives to the external linker. CVSS 9.8
- CVE-2026-97043Bypasses linker flag checks at build time, allowing unexpected code to run or the go command to crash. CVSS 8.8
- CVE-2026-97041On ELF platforms such as Linux, comma-containing names can inject arbitrary flags into the external linker. CVSS 8.8
あと8件を表示
- CVE-2026-97042On Windows, a crafted DLL name can pass arbitrary files on disk to the linker. CVSS 8.8
- CVE-2026-97038Crafted .syso files or libraries can run arbitrary code during linking. CVSS 8.8
- CVE-2026-97035Clang or GCC flags can run code at build time or write files to arbitrary folders. CVSS 8.8
- CVE-2026-97036On macOS, the Apple linker can load a malicious library and run code at build time. CVSS 8.8
- CVE-2026-97037Linker script files can be passed to the host linker, running code at link time. CVSS 8.8
- CVE-2026-97033Flags such as --sysroot can run arbitrary code at build time. CVSS 8.8
- CVE-2026-97034Planted GCC spec files can run arbitrary commands at link time. CVSS 8.8
- CVE-2026-97039Bypasses pkg-config checks, loading untrusted .pc files or injecting flags. CVSS 8.3