CVE-2020-28366
HIGH 7.5CVSS 3.1Arbitrary code execution in go command with cgo in cmd/go and cmd/cgo
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.
- Published
- 18 Nov 2020
- Last modified
- 17 Jun 2026
- Assigned by
- security@golang.org
- NVD status
- Modified
- Weakness
- CWE-94
- Also known as
- BIT-golang-2020-28366GO-2022-0475
- Sources
- NVDJSONOSV GO-2022-0475JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.1 | AV:N/AC:H/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | golang | gocpe:2.3:a:golang:go:*:*:*:*:*:*:*:* |
< 1.14.12 | 1.14.12 |
| NVD | golang | gocpe:2.3:a:golang:go:*:*:*:*:*:*:*:* |
>= 1.15, < 1.15.5 | 1.15.5 |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:* |
= 32 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:* |
= 33 | |
| NVD | netapp | cloud_insights_telegraf_agentcpe:2.3:a:netapp:cloud_insights_telegraf_agent:-:*:*:*:*:*:*:* |
(no version) | |
| NVD | netapp | tridentcpe:2.3:a:netapp:trident:-:*:*:*:*:*:*:* |
(no version) | |
| OSV | Go | toolchain | < 1.14.12; >= 1.15.0-0, < 1.15.5 | 1.14.12, 1.15.5 |
References
- https://go.dev/cl/269658 · FIX
- https://go.dev/issue/42559 · REPORT
- https://go.googlesource.com/go/+/062e0e5ce6df339dc26732438ad771f73dbf2292 · FIX
- https://groups.google.com/g/golang-announce/c/NpBGTTmKzpM · WEB
- https://pkg.go.dev/vuln/GO-2022-0475
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 18 Nov 2020)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 28 Jul 2022)