CVE-2020-28367
HIGH7.5EPSS 0.27%Arbitrary code execution via the go command with cgo in cmd/go
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 malicious gcc flags specified via a #cgo directive.
Affected packages (4)
- Bitnami/golangfrom 0, < 1.14.12, >= 1.15.0, < 1.15.5
- Debian/golang-1.11from 0, < 1.11.6-1+deb10u6
- 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 (8)
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2020-28367
- PATCHhttps://go.dev/cl/267277
- PATCHhttps://go.googlesource.com/go/+/da7aa86917811a571e6634b45a457f918b8e6561
- REPORThttps://go.dev/issue/42556
- WEBhttps://groups.google.com/g/golang-announce/c/NpBGTTmKzpM
- WEBhttps://lists.debian.org/debian-lts-announce/2023/04/msg00021.html
- WEBhttps://nvd.nist.gov/vuln/detail/CVE-2020-28367
- WEBhttps://pkg.go.dev/vuln/GO-2022-0476