{"id":"CVE-2020-28367","state":"PUBLISHED","title":"Arbitrary code execution via the go command with cgo in cmd/go","description":"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.","publishedAt":"2020-11-18T00:00:00.000Z","updatedAt":"2024-08-04T16:33:59.087Z","severity":null,"assigner":"Go","products":["Go toolchain cmd/go"],"affected":[{"vendor":"Go toolchain","product":"cmd/go","packageName":"cmd/go","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1.14.12","versionType":"semver"},{"version":"1.15.0-0","status":"affected","lessThan":"1.15.5","versionType":"semver"}],"collectionURL":"https://pkg.go.dev","programRoutines":[{"name":"validCompilerFlags"}]}],"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://pkg.go.dev/vuln/GO-2022-0476","https://lists.debian.org/debian-lts-announce/2023/04/msg00021.html"],"weaknesses":[],"ingestedAt":"2026-10-29T19:47:13.795Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2020/28xxx/CVE-2020-28367.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2020-28367","state":"PUBLISHED","datePublished":"2020-11-18T00:00:00.000Z","dateUpdated":"2024-08-04T16:33:59.087Z","assignerShortName":"Go","assignerOrgId":"1bb62c36-49e3-4200-9d77-64a1400537cc","dateReserved":"2020-11-09T00:00:00.000Z"},"containers":{"cna":{"title":"Arbitrary code execution via the go command with cgo in cmd/go","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Go toolchain","product":"cmd/go","packageName":"cmd/go","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1.14.12","versionType":"semver"},{"version":"1.15.0-0","status":"affected","lessThan":"1.15.5","versionType":"semver"}],"collectionURL":"https://pkg.go.dev","programRoutines":[{"name":"validCompilerFlags"}]}],"references":[{"url":"https://go.dev/cl/267277"},{"url":"https://go.googlesource.com/go/+/da7aa86917811a571e6634b45a457f918b8e6561"},{"url":"https://go.dev/issue/42556"},{"url":"https://groups.google.com/g/golang-announce/c/NpBGTTmKzpM"},{"url":"https://pkg.go.dev/vuln/GO-2022-0476"},{"url":"https://lists.debian.org/debian-lts-announce/2023/04/msg00021.html"}],"problemTypes":[{"descriptions":[{"lang":"en","description":"CWE-94: Improper Control of Generation of Code ('Code Injection')"}]}],"providerMetadata":{"shortName":"Go","orgId":"1bb62c36-49e3-4200-9d77-64a1400537cc","dateUpdated":"2023-06-12T19:04:24.544Z"},"credits":[{"lang":"en","value":"Imre Rad"}]},"adp":[{"title":"CVE Program Container","references":[{"url":"https://go.dev/cl/267277","tags":["x_transferred"]},{"url":"https://go.googlesource.com/go/+/da7aa86917811a571e6634b45a457f918b8e6561","tags":["x_transferred"]},{"url":"https://go.dev/issue/42556","tags":["x_transferred"]},{"url":"https://groups.google.com/g/golang-announce/c/NpBGTTmKzpM","tags":["x_transferred"]},{"url":"https://pkg.go.dev/vuln/GO-2022-0476","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/04/msg00021.html","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-04T16:33:59.087Z"}}]}}}