{"id":"CVE-2020-28366","published":"2020-11-18T00:00:00Z","modified":"2024-08-04T16:33:58Z","title":"Arbitrary code execution in go command with cgo in cmd/go and cmd/cgo","vendor":"Go toolchain","product":"cmd/go","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.02342,"percentile":0.84032,"provenance":"source"},"cwes":[],"references":[{"url":"https://go.dev/cl/269658","tags":[]},{"url":"https://go.googlesource.com/go/+/062e0e5ce6df339dc26732438ad771f73dbf2292","tags":[]},{"url":"https://go.dev/issue/42559","tags":[]},{"url":"https://groups.google.com/g/golang-announce/c/NpBGTTmKzpM","tags":[]},{"url":"https://pkg.go.dev/vuln/GO-2022-0475","tags":[]}],"priority":{"score":16.8,"factors":[{"name":"EPSS percentile","points":16.81}]},"vendorSlug":"go-toolchain","affectedVersions":[{"vendor":"Go toolchain","product":"cmd/go","versions":["< 1.14.12",">= 1.15.0-0, < 1.15.5"]},{"vendor":"Go toolchain","product":"cmd/cgo","versions":["< 1.14.12",">= 1.15.0-0, < 1.15.5"]}],"affected":[{"ecosystem":"Go","package":"toolchain","vulnerableRanges":["<1.14.12",">=1.15.0-0, <1.15.5"],"patched":["1.14.12","1.15.5"],"from":["GO-2022-0475"],"provenance":"source"}],"summary":{"text":"The flaw is a code injection weakness in the go command's cgo handling within the Go toolchain's cmd/go component.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:33:15Z"},"euvd":{"id":"EUVD-2020-20825","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2018-7187","published":"2018-02-16","fixed":"1.10.1","kev":false},{"cve":"CVE-2018-16873","published":"2018-12-14","fixed":"1.11.3","kev":false},{"cve":"CVE-2018-16874","published":"2018-12-14","fixed":"1.11.3","kev":false,"link":{"from":"CVE-2018-16874","to":"CVE-2020-28366","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:toolchain","fromFixed":"1.11.3","toFixed":"1.14.12","daysApart":705}]}},{"cve":"CVE-2020-28366","published":"2020-11-18","fixed":"1.15.5","kev":false},{"cve":"CVE-2020-28367","published":"2020-11-18","fixed":"1.15.5","kev":false},{"cve":"CVE-2021-3115","published":"2021-01-26","fixed":"1.15.7","kev":false,"link":{"from":"CVE-2020-28366","to":"CVE-2021-3115","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:toolchain","fromFixed":"1.14.12","toFixed":"1.14.14","daysApart":69}]}},{"cve":"CVE-2021-38297","published":"2021-10-18","fixed":"1.17.2","kev":false}],"package":"Go:toolchain"}}