Patch Ticker
日本語日
緊急

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
初確認
9.8
製品
同時公開 Windows macOS Linux cmd/go
残り3件を表示cmd/compile cmd/link cmd/cgo

対処法

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

2026-11-11 のインシデント一覧

ディストリビューション別パッケージ (22)(下のリンクはすべて新しいタブで開きます)

出典: 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