PatchSiren

Go toolchain CVE debriefs

These pages are published after PatchSiren validates generated defensive summaries against stored public CVE and source evidence.

HIGH Go toolchain CVE published 2026-11-11

CVE-2026-97042

A vulnerability in the Go toolchain's cmd/cgo, cmd/compile, and cmd/link components allows for linker flag injection via cgo_import_dynamic and PE DLL names. This issue arises from insufficient validation of library names in cgo_import_dynamic directives and imported DLL names on Windows. An attacker could craft a malicious package to pass unsafe library arguments to the external linker, potentially referencing arbitrary files on disk.

HIGH Go toolchain CVE published 2026-11-11

CVE-2026-97041

A vulnerability in the Go toolchain's cmd/compile and cmd/link components allows for host linker flag injection via //go:cgo_* directives. This issue could enable an attacker to inject arbitrary flags into the external linker invocation on ELF platforms by building a malicious package. The vulnerability is addressed in Go versions 1.26.11 and 1.27.4, where the compiler and linker now reject commas in //go:cgo_* symbol and dynamic linker directives.

CRITICAL Go toolchain CVE published 2026-11-11

CVE-2026-97040

A vulnerability in the Go toolchain, specifically in the `cmd/go` and `cmd/link` components, allows for cgo directive injection via `.syso` files disguised as Go object files. This issue arises because the linker checks for recognized host object headers before falling through to Go object parsing, allowing untrusted cgo metadata directives embedded in `.syso` files to be passed to the external linker without validation.

HIGH Go toolchain CVE published 2026-11-11

CVE-2026-97039

A flag sanitization bypass vulnerability in the Go toolchain's cmd/go package could allow a malicious package to load untrusted pkg-config '.pc' files or inject unvalidated compiler and linker flags. The vulnerability is due to the pkg-config flag allowlist permitting certain flags and package arguments that could be used to rewrite paths in system '.pc' files. The Go toolchain has addressed this issue by disallowing certain flags and paths in '#cgo pkg-config:' directives and inspecting cgoCPPFLAGS when checking internal linking compatibility.

HIGH Go toolchain CVE published 2026-11-11

CVE-2026-97035

CVE-2026-97035 debrief based on the supplied source corpus. The CVE record was published on 2026-11-11T02:51:11.000Z and has not been modified since then. The vulnerability allows for unexpected code execution at build time or arbitrary file writes via malicious package builds using cgo with Clang or GCC. Defenders responsible for Go toolchain deployments, particularly those using cgo with Clang or GCC, should assess exposure and prioritize patching for versions 1.26.0 to 1.26.10 and 1.27.0 to 1.27.3. Build and deployment teams should verify the integrity of package builds and monitor for unusual activity. The vulnerability is caused by improper handling of compiler and linker flag

HIGH Go toolchain CVE published 2026-11-11

CVE-2026-97033

CVE-2026-97033 debrief: The Go toolchain's cmd/go is vulnerable to unexpected code execution via specific cgo flags, including --sysroot, -target, -isysroot, -Wl,-syslibroot, and -x. These flags can be used to execute arbitrary code at build time, potentially leading to a supply chain attack. Go developers and administrators should assess their exposure and take necessary actions to mitigate the vulnerability, including reviewing and updating the Go toolchain to version 1.26.11 or later, and restricting usage of these cgo flags.

HIGH Go toolchain CVE published 2026-11-11

CVE-2026-97034

The Go toolchain's cmd/go component is vulnerable to arbitrary command execution via GCC spec files in cgo linker search directories. When building a malicious package that uses cgo with GCC, an attacker could exploit this issue at link time, potentially leading to compromise of Go-based applications and infrastructure. The vulnerability is addressed in Go versions 1.26.11 and 1.27.4. Defenders should assess exposure, apply patches, and monitor for suspicious activity related to cgo and GCC spec files. This includes teams managing Go-based applications and infrastructure.

HIGH Go toolchain CVE published 2026-11-11

CVE-2026-97036

CVE-2026-97036 debrief: On Darwin platforms, building a malicious package that uses cgo could lead to arbitrary code execution during build processes due to improper handling of LDFLAGS directives by the Apple linker. This vulnerability allows loading of arbitrary LTO plugin dynamic libraries. The Go command now disallows certain flags and patterns to mitigate this issue. Defenders should assess exposure and prioritize patching, reviewing build processes for potential malicious package usage and ensuring updated Go versions are deployed.

HIGH Go toolchain CVE published 2026-11-11

CVE-2026-97037

A vulnerability in the Go toolchain's cmd/go component allows for linker script injection via split -Wl, flags and Darwin or symbol linker flags in cgo. This issue can lead to arbitrary code execution at link time when building a malicious package that uses cgo. The vulnerability arises from the way the Go toolchain handles linker flags, particularly when using cgo. Attackers could exploit this by crafting malicious packages that inject arbitrary code during the linking process. Developers and administrators must assess their exposure, especially if they build packages with cgo, and update to fixed versions to mitigate this risk. The vulnerability is addressed in versions 1.26.11,

HIGH Go toolchain CVE published 2026-11-11

CVE-2026-97038

The Go toolchain's cmd/go component is vulnerable to arbitrary code execution via crafted .syso files and cgo linker input files. This issue allows attackers to inject arbitrary linker flags or execute arbitrary code at link time by building a malicious package containing .syso files or cgo linker inputs. The vulnerability arises from inadequate validation of linker input files, which can be exploited across platforms. Defenders should assess exposure, particularly in build environments, and prioritize remediation steps.

HIGH Go toolchain CVE published 2026-11-11

CVE-2026-97043

CVE-2026-97043 debrief: The Go toolchain's cmd/go and cmd/compile are vulnerable to unexpected code execution via escaped quotes in //go:cgo_ldflag directives. This issue allows malicious packages to bypass validation and execute code at build time or cause the go command to panic. The vulnerability arises from a mismatch in how quotes are handled between cmd/cgo, cmd/compile, and cmd/go, impacting Go developers, administrators, and users who should assess their exposure and apply patches or updates as necessary.

Review Go toolchain CVE published 2026-10-08

CVE-2026-94447

A checksum database bypass vulnerability in the Go toolchain allows users operating within a malicious Go project and using a malicious GOMODPROXY to bypass intended checksums. The issue is addressed by ensuring golang.org/toolchain always fetches the canonical checksum from the network. This vulnerability impacts Go projects and developers using the Go toolchain, particularly those managing GOMODPROXY configurations. The fix ensures that the toolchain verifies checksums properly, preventing potential bypasses.

Review Go toolchain CVE published 2026-10-08

CVE-2026-94444

A checksum bypass vulnerability in the Go toolchain allows a malicious Go project to serve an arbitrary module in place of the legitimate golang.org/fips140 module. This issue can be mitigated by verifying the integrity of the module using the toolchain's built-in verification mechanisms. The vulnerability is triggered when a user operates within a malicious Go project that defines a bogus golang.org/fips140 and connects to a malicious GOMODPROXY of their choice. The affected versions of the Go toolchain are 1.26.0 to 1.26.8 and 1.27.0-0 to 1.27.1.

HIGH Go toolchain CVE published 2026-01-28

CVE-2025-61731

CVE-2025-61731 is a vulnerability in Go's cmd/go that allows an attacker to write to a file with partial control of the content. The vulnerability is caused by the '#cgo pkg-config:' directive in a Go source file, which provides command-line arguments to the Go pkg-config command. An attacker can provide a '--log-file' argument to this directive, causing pkg-config to write to an attacker-controlled location. This vulnerability has a CVSS score of 7.8 and is classified as HIGH severity. The CVE was published on January 28, 2026, and modified on June 30, 2026.

Review Go toolchain CVE published 2026-01-28

CVE-2025-68119

CVE-2025-68119 is an unexpected code execution vulnerability when invoking the toolchain in cmd/go. Downloading and building modules with malicious version strings can cause local code execution. On systems with Mercurial (hg) installed, downloading modules from non-standard sources can cause unexpected code execution due to how external VCS commands are constructed. On systems with Git installed, downloading and building modules with malicious version strings can allow an attacker to write to arbitrary files on the filesystem.