Go Toolchain

24 CVEs across 3 Go Toolchain products. Browse Go Toolchain vulnerabilities, severities, and proof-of-concept exploits.

Go Toolchain products with known CVEs

ProductCVEs
Cmd/go21
Cmd/cgo3
Cmd/compile2
Go Toolchain CVEs — newest first
CVESeverityScorePublishedSummary
CVE-2026-56865High8.42026-08-13A malicious GOPROXY was previously capable of forging up to two sumdb tiles that allow for a requested module to bypass the GOSUMDB check and persist attacker-…
CVE-2026-56864High7.52026-08-13A malicious GOSUMDB was capable of serving arbitrary module content not contained within the transparency log. This attack allows for a coordinating GOPROXY an…
CVE-2026-42501High7.52026-05-07A malicious module proxy can exploit a flaw in the go command's validation of module checksums to bypass checksum database validation. This vulnerability affec…
CVE-2026-39819Medium5.32026-05-07The "go bug" command writes to two files with predictable names in the system temporary directory (for example, "/tmp"). An attacker with access to the tempora…
CVE-2026-39817Medium5.92026-05-07The "go tool pack" subcommand (usually used only by the compiler as an internal tool with known-good inputs) does not sanitize output filenames. Extracting a m…
CVE-2026-27144High7.12026-04-08The compiler is meant to unwrap pointers which are the operands of a memory move; a no-op interface conversion prevented the compiler from making the correct d…
CVE-2026-27143Critical9.82026-04-08Arithmetic over induction variables in loops were not correctly checked for underflow or overflow. As a result, the compiler would allow for invalid indexing t…
CVE-2026-27140High8.82026-04-08SWIG file names containing 'cgo' and well-crafted payloads could lead to code smuggling and arbitrary code execution at build time due to trust layer bypass.
CVE-2025-61732High8.62026-02-05A discrepancy between how Go and C/C++ comments were parsed allowed for code smuggling into the resulting cgo binary.
CVE-2025-68119High7.02026-01-28Downloading and building modules with malicious version strings can cause local code execution. On systems with Mercurial (hg) installed, downloading modules f…
CVE-2025-61731High7.82026-01-28Building a malicious file with cmd/go can cause can cause a write to an attacker-controlled file with partial control of the file content. The "#cgo pkg-config…
CVE-2025-4674High8.62025-07-29The go command may execute unexpected commands when operating in untrusted VCS repositories. This occurs when possibly dangerous VCS configuration is present i…
CVE-2025-22867High7.52025-02-06On Darwin, building a Go module which contains CGO can trigger arbitrary code execution when using the Apple version of ld, due to usage of the @executable_pat…
CVE-2024-45340High8.82025-01-28Credentials provided via the new GOAUTH feature were not being properly segmented by domain, allowing a malicious server to request credentials they should not…
CVE-2023-24531Critical9.82024-07-02Command go env is documented as outputting a shell script containing the Go environment. However, go env doesn't sanitize values, so executing its output as a…
CVE-2024-24787Medium6.42024-05-08On Darwin, building a Go module which contains CGO can trigger arbitrary code execution when using the Apple version of ld, due to usage of the -lto_library fl…
CVE-2023-45285High7.52023-12-06Using go get to fetch a module with the ".git" suffix may unexpectedly fallback to the insecure "git://" protocol if the module is unavailable via the secure "…
CVE-2023-39323High8.12023-10-05Line directives ("//line") can be used to bypass the restrictions on "//go:cgo_" directives, allowing blocked linker and compiler flags to be passed during com…
CVE-2023-39320Critical9.82023-09-08The go.mod toolchain directive, introduced in Go 1.21, can be leveraged to execute scripts and binaries relative to the root of the module when the "go" comman…
CVE-2023-29405Critical9.82023-06-08The go command may execute arbitrary code at build time when using cgo. This may occur when running "go get" on a malicious module, or when running any other c…
CVE-2023-29404Critical9.82023-06-08The go command may execute arbitrary code at build time when using cgo. This may occur when running "go get" on a malicious module, or when running any other c…
CVE-2023-29402Critical9.82023-06-08The go command may generate unexpected code at build time when using cgo. This may result in unexpected behavior when running a go program which uses cgo. This…
CVE-2020-28367High7.52020-11-18Code injection in the go command with cgo before Go 1.14.12 and Go 1.15.5 allows arbitrary code execution at build time via malicious gcc flags specified via a…
CVE-2020-28366High7.52020-11-18Code injection in the go command with cgo before Go 1.14.12 and Go 1.15.5 allows arbitrary code execution at build time via a malicious unquoted symbol name in…