GO-2022-0476
Dashboard / Vulnerabilities / GO-2022-0476
GO-2022-0476
Published: 28 Jul 2022Last Modified: 20 May 2024
Aliases:
Summary: Arbitrary code execution via the go command with cgo in cmd/go
Details: The go command may execute arbitrary code at build time when cgo is in use. This may occur when running go get on a malicious package, or any other command that builds untrusted code. This can be caused by malicious gcc flags specified via a cgo directive.
References: https://go.dev/cl/267277, https://go.googlesource.com/go/+/da7aa86917811a571e6634b45a457f918b8e6561, https://go.dev/issue/42556, https://groups.google.com/g/golang-announce/c/NpBGTTmKzpM
Affected packages
Package
Name: toolchain
Purl: pkg:golang/toolchain
Affected ranges
Type: SEMVER
Events:
Introduced- 0
Fixed -1.14.12
Affected versions
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
