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 "go build". The line directive requires...
Product
cmd/go vulnerabilities
32 published CVES affecting cmd/go, from public sources (CVE.org, NVD, CISA KEV, FIRST EPSS, OSV).
- Total
- 32
- Critical
- 6
- High
- 23
- Medium
- 3
- Low
- 0
- Unscored
- 0
- CISA KEV
- 0
Latest cmd/go CVEs
Newest publication first · page 2 of 2
-
HighCVSS 8.1 EPSS 1.9%
-
CriticalCVSS 9.8 EPSS 1.8%
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 "go" command from the module proxy, as wel...
-
CriticalCVSS 9.8 EPSS 2.1%
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, specified via a "#cgo LDFLAGS" directive. F...
-
CriticalCVSS 9.8 EPSS 2.1%
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, specified via a "#cgo LDFLAGS" directive. T...
-
CriticalCVSS 9.8 EPSS 1.8%
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 newline characters in their names. Modules wh...
-
HighCVSS 7.5 EPSS 2.4%
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.
-
HighCVSS 7.5 EPSS 2.3%
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.
Sources: CVE.org, NVD, CISA KEV, FIRST EPSS, OSV and public exploit-reference metadata. Product matching comes from the published CVE records. A proof-of-concept means public code exists; it is not evidence of exploitation.