toolchain
Go32 known CVEs affecting this package
Aggregated from OSV, GitHub Security Advisories, NVD, and vendor advisories. Each CVE links to its full detail page with vendor advisories, patches, fixed versions, and remediation guidance.
CVEs affecting toolchainpage 1 of 1
- CVE-2017-15041CRITICALCVSS 9.8EG 9.8fixed in 1.8.4 or 1.9.1, by version range2017-10-05
Go before 1.8.4 and 1.9.x before 1.9.1 allows "go get" remote command execution. Using custom domains, it is possible to arrange things so that example.com/pkg1 points to a Subversion repository but example.com/pkg1/pkg2 points to a Git re…
- CVE-2018-16873HIGHCVSS 8.1EG 8.7fixed in 1.10.6 or 1.11.3, by version range2018-12-14
In Go before 1.10.6 and 1.11.x before 1.11.3, the "go get" command is vulnerable to remote code execution when executed with the -u flag and the import path of a malicious Go package, or a package that imports it directly or indirectly. Sp…
- CVE-2018-16874HIGHCVSS 8.1EG 8.1fixed in 1.10.6 or 1.11.3, by version range2018-12-14
In Go before 1.10.6 and 1.11.x before 1.11.3, the "go get" command is vulnerable to directory traversal when executed with the import path of a malicious Go package which contains curly braces (both '{' and '}' characters). Specifically, i…
- CVE-2018-6574HIGHCVSS 7.8EG 7.8fixed in 1.8.7 or 1.9.4, by version range2018-02-07
Go before 1.8.7, Go 1.9.x before 1.9.4, and Go 1.10 pre-releases before Go 1.10rc2 allow "go get" remote command execution during source code build, by leveraging the gcc or clang plugin feature, because -fplugin= and -plugin= arguments we…
- CVE-2018-7187HIGHCVSS 8.8EG 8.9fixed in 1.9.5 or 1.10.1, by version range2018-02-16
The "go get" implementation in Go 1.9.4, when the -insecure command-line option is used, does not validate the import path (get/vcs.go only checks for "://" anywhere in the string), which allows remote attackers to execute arbitrary OS com…
- CVE-2020-28366HIGHCVSS 7.5EG 7.5fixed in 1.14.12 or 1.15.5, by version range2020-11-18
Code 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 a linked object file.
- CVE-2020-28367HIGHCVSS 7.5EG 7.5fixed in 1.14.12 or 1.15.5, by version range2020-11-18
Code 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 #cgo directive.
- CVE-2021-3115HIGHCVSS 7.5EG 7.5fixed in 1.14.14 or 1.15.7, by version range2021-01-26
Go before 1.14.14 and 1.15.x before 1.15.7 on Windows is vulnerable to Command Injection and remote code execution when using the "go get" command to fetch modules that make use of cgo (for example, cgo can execute a gcc program from an un…
- CVE-2021-38297CRITICALCVSS 9.8EG 9.8fixed in 1.16.9 or 1.17.2, by version range2021-10-18
Go before 1.16.9 and 1.17.x before 1.17.2 has a Buffer Overflow via large arguments in a function invocation from a WASM module, when GOARCH=wasm GOOS=js is used.
- CVE-2022-23773HIGHCVSS 7.5EG 7.5fixed in 1.16.14 or 1.17.7, by version range2022-02-11
cmd/go in Go before 1.16.14 and 1.17.x before 1.17.7 can misinterpret branch names that falsely appear to be version tags. This can lead to incorrect access control if an actor is supposed to be able to create branches but not tags.
- CVE-2023-24531CRITICALCVSS 9.8EG 9.8fixed in 1.21.0-02024-07-02
Command 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 shell script can cause various bad bahaviors, including executing arbitrary comm…
- CVE-2023-29402CRITICALCVSS 9.8EG 9.8fixed in 1.19.10 or 1.20.5, by version range2023-06-08
The 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 may occur when running an untrusted module which contains directories with newl…
- CVE-2023-29404CRITICALCVSS 9.8EG 9.8fixed in 1.19.10 or 1.20.5, by version range2023-06-08
The 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 command which builds untrusted code. This is can by triggered by linker flags, sp…
- CVE-2023-29405CRITICALCVSS 9.8EG 9.8fixed in 1.19.10 or 1.20.5, by version range2023-06-08
The 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 command which builds untrusted code. This is can by triggered by linker flags, sp…
- CVE-2023-39320CRITICALCVSS 9.8EG 9.8fixed in 1.21.12023-09-08
The 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" command was executed within the module. This applies to modules downloaded using the "…
- CVE-2023-39323CRITICALCVSS 8.1EG 9.8fixed in 1.20.9 or 1.21.2, by version range2023-10-05
Line directives ("//line") can be used to bypass the restrictions on "//go:cgo_" directives, allowing blocked linker and compiler flags to be passed during compilation. This can result in unexpected execution of arbitrary code when running…
- CVE-2023-45285HIGHCVSS 7.5EG 7.5fixed in 1.20.12 or 1.21.5, by version range2023-12-06
Using 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 "https://" and "git+ssh://" protocols, even if GOINSECURE is not set for said mod…
- CVE-2024-24787MEDIUMCVSS 6.4EG 6.4fixed in 1.21.10 or 1.22.3, by version range2024-05-08
On 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 flag in a "#cgo LDFLAGS" directive.
- CVE-2024-45340HIGHCVSS 8.8EG 8.8fixed in 1.24.0-rc.22025-01-28
Credentials provided via the new GOAUTH feature were not being properly segmented by domain, allowing a malicious server to request credentials they should not have access to. By default, unless otherwise set, this only affected credential…
- CVE-2025-22867HIGHCVSS 7.5EG 7.5fixed in 1.24.0-rc.32025-02-06
On 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_path, @loader_path, or @rpath special values in a "#cgo LDFLAGS" directive. This is…
- CVE-2025-4674HIGHCVSS 8.6EG 8.6fixed in 1.23.11 or 1.24.5, by version range2025-07-29
The go command may execute unexpected commands when operating in untrusted VCS repositories. This occurs when possibly dangerous VCS configuration is present in repositories. This can happen when a repository was fetched via one VCS (e.g. …
- CVE-2025-61731HIGHCVSS 7.8EG 7.8fixed in 1.24.12 or 1.25.6, by version range2026-01-28
Building 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:" directive in a Go source file provides command-line arguments to provide to t…
- CVE-2025-61732HIGHCVSS 8.6EG 8.6fixed in 1.24.13 or 1.25.7, by version range2026-02-05
A discrepancy between how Go and C/C++ comments were parsed allowed for code smuggling into the resulting cgo binary.
- CVE-2025-68119HIGHCVSS 7.0EG 7.0fixed in 1.25.62026-01-28
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 (e.g., custom domains) can cause unexpected code execut…
- CVE-2026-27140HIGHCVSS 8.8EG 8.8fixed in 1.25.9 or 1.26.2, by version range2026-04-08
SWIG 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-2026-27143CRITICALCVSS 9.8EG 9.8fixed in 1.25.9 or 1.26.2, by version range2026-04-08
Arithmetic over induction variables in loops were not correctly checked for underflow or overflow. As a result, the compiler would allow for invalid indexing to occur at runtime, potentially leading to memory corruption.
- CVE-2026-27144HIGHCVSS 7.1EG 7.1fixed in 1.25.9 or 1.26.2, by version range2026-04-08
The 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 determination about non-overlapping moves, potentially leading to memory corrupti…
- CVE-2026-39817MEDIUMCVSS 5.9EG 5.9fixed in 1.25.10 or 1.26.3, by version range2026-05-07
The "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 malicious archive file with the "pack" subcommand can write files to arbitrary lo…
- CVE-2026-39819MEDIUMCVSS 5.3EG 5.3fixed in 1.25.10 or 1.26.3, by version range2026-05-07
The "go bug" command writes to two files with predictable names in the system temporary directory (for example, "/tmp"). An attacker with access to the temporary directory can create a symlink in one of these names, causing "go bug" to ove…
- CVE-2026-42501HIGHCVSS 7.5EG 7.5fixed in 1.25.10 or 1.26.3, by version range2026-05-07
A malicious module proxy can exploit a flaw in the go command's validation of module checksums to bypass checksum database validation. This vulnerability affects any user using an untrusted module proxy (GOMODPROXY) or checksum database (G…
- CVE-2026-56864HIGHCVSS 7.5EG 7.5fixed in 1.25.13, 1.26.6 or 1.27.0-rc.3, by version range2026-08-13
A malicious GOSUMDB was capable of serving arbitrary module content not contained within the transparency log. This attack allows for a coordinating GOPROXY and GOSUMDB to serve a client malicious module content that cannot be detected by …
- CVE-2026-56865HIGHCVSS 8.4EG 8.4fixed in 1.25.13, 1.26.6 or 1.27.0-rc.3, by version range2026-08-13
A 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-controlled module content to a local Go module cache. This attack allows for a m…
Check whether toolchain is used in your infrastructure
EchelonGraph scans your cloud and SBOMs to map every package to your actual deployments. See blast radius for toolchain CVEs against the assets you own.
Book a Demo →