Vulnerability Report: GO-2022-0476
standard library- CVE-2020-28367
- Affects: cmd/go
- Published: Jul 28, 2022
- Modified: May 20, 2024
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.
Affected Packages
-
PathGo VersionsSymbols
-
before go1.14.12, from go1.15.0-0 before go1.15.5
1 unexported affected symbols
- validCompilerFlags
Aliases
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
- https://vuln.go.dev/ID/GO-2022-0476.json
Credits
- Imre Rad
Feedback
See anything missing or incorrect?
Suggest an edit to this report.