Vulnerabilities · 2020 · Golang
CVE-2020-28367
Golang Go vulnerability
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 products
Go. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Golang Go runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- go.dev/cl/267277
- go.dev/issue/42556
- go.googlesource.com/go/+/da7aa86917811a571e6634b45a457f918b8e6561
- groups.google.com/g/golang-announce/c/NpBGTTmKzpM
- lists.debian.org/debian-lts-announce/2023/04/msg00021.html
- pkg.go.dev/vuln/GO-2022-0476
- nvd.nist.gov/vuln/detail/CVE-2020-28367
- cve.org/CVERecord?id=CVE-2020-28367
More vulnerabilities in Golang products
CVE-2026-42506CVE-2026-42502CVE-2026-27136CVE-2026-25681CVE-2026-25680CVE-2025-68121CVE-2025-68119CVE-2025-61732All 172
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.