CVE-2020-28366
HIGH7.5EPSS 0.17%Arbitrary code execution in go command with cgo in cmd/go and cmd/cgo
Published: 7/28/2022Modified: 4/28/2026
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 a malicious unquoted symbol name in a linked object file.
Affected packages (3)
- Bitnami/golangfrom 0, < 1.14.12, >= 1.15.0, < 1.15.5
- Debian/golang-1.15from 0, < 1.15.5-1
- Go/toolchainfrom 0, < 1.14.12, >= 1.15.0-0, < 1.15.5
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
References (7)
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2020-28366
- PATCHhttps://go.dev/cl/269658
- PATCHhttps://go.googlesource.com/go/+/062e0e5ce6df339dc26732438ad771f73dbf2292
- REPORThttps://go.dev/issue/42559
- WEBhttps://groups.google.com/g/golang-announce/c/NpBGTTmKzpM
- WEBhttps://nvd.nist.gov/vuln/detail/CVE-2020-28366
- WEBhttps://pkg.go.dev/vuln/GO-2022-0475