7.5high
CVE-2020-28366
Arbitrary code execution in go command with cgo in cmd/go and cmd/cgo
Also known as GO-2022-0475
Published 5 y ago · modified 4 mo ago · JSON
CVSS
7.5
v3.1 · NVD
CISA KEV
No
not known exploited
EPSS
2.3%
percentile 84%
Public exploits
0
none known
Summary
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.
Exploit prediction (EPSS)
2.34% probability of exploitation in the next 30 days, higher than 84% of all scored CVEs.
CVSS scores
| Assigned by | Version | Score | Vector |
|---|---|---|---|
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 5.1 | AV:N/AC:H/Au:N/C:P/I:P/A:P |
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| go | toolchain | <1.14.12 >=1.15.0-0, <1.15.5 | 1.14.12 1.15.5 |
Affected products
- Go toolchain cmd/go
- Go toolchain cmd/cgo
Classification
- Weakness
- CWE-94 Improper Control of Generation of Code
References
- go.dev /cl/269658 · x_transferred
- go.googlesource.com /go/+/062e0e5ce6df339dc26732438ad771f73dbf2292 · x_transferred
- go.dev /issue/42559 · x_transferred
- groups.google.com /g/golang-announce/c/NpBGTTmKzpM · x_transferred
- pkg.go.dev /vuln/GO-2022-0475 · x_transferred
Sources
- CVE List: CVE-2020-28366
- NVD: CVE-2020-28366
- OSV: GO-2022-0475
vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.