{"schema_version":"1.7.3","id":"BIT-golang-2020-28367","published":"2024-03-06T11:07:32.402Z","modified":"2025-05-20T10:02:07.006Z","aliases":["CVE-2020-28367","GO-2022-0476"],"summary":"Arbitrary code execution via the go command with cgo in cmd/go","details":"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":[{"package":{"name":"golang","ecosystem":"Bitnami","purl":"pkg:bitnami/golang"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.14.12"},{"introduced":"1.15.0"},{"fixed":"1.15.5"}]}],"database_specific":{"source":"https://github.com/bitnami/vulndb/tree/main/data/golang/BIT-golang-2020-28367.json"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}],"references":[{"type":"WEB","url":"https://go.dev/cl/267277"},{"type":"WEB","url":"https://go.dev/issue/42556"},{"type":"WEB","url":"https://go.googlesource.com/go/+/da7aa86917811a571e6634b45a457f918b8e6561"},{"type":"WEB","url":"https://groups.google.com/g/golang-announce/c/NpBGTTmKzpM"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2023/04/msg00021.html"},{"type":"WEB","url":"https://pkg.go.dev/vuln/GO-2022-0476"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-28367"}],"database_specific":{"cpes":["cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*"],"severity":"High"}}