CVE-2020-28367
published 2020-11-18CVE-2020-28367: 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…
PriorityP346high7.5CVSS 3.1
AVNACHPRNUIRSUCHIHAH
EPSS
2.37%
81.7th percentile
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
12 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | golang-1.15 | < golang-1.15 1.15.5-1 (bullseye) | golang-1.15 1.15.5-1 (bullseye) |
| go_toolchain | cmd_go | < 1.14.12 | 1.14.12 |
| go_toolchain | cmd_go | >= 1.15.0-0 < 1.15.5 | 1.15.5 |
| golang | go | < 1.14.12 | 1.14.12 |
| golang | go | >= 1.15 < 1.15.5 | 1.15.5 |
| msrc | azl3_python-tensorboard_2.11.0-3_on_azure_linux_3.0 | — | — |
| msrc | azl3_python-tensorboard_2.16.2-2_on_azure_linux_3.0 | — | — |
| msrc | azure_linux_3.0_arm | — | — |
| msrc | azure_linux_3.0_x64 | — | — |
| msrc | cbl_mariner_1.0_arm | — | — |
| msrc | cbl_mariner_1.0_x64 | — | — |
| msrc | cm1_golang_1.15.13-1_on_cbl_mariner_1.0 | — | — |
CVSS provenance
nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
nvdv2.05.1MEDIUMAV:N/AC:H/Au:N/C:P/I:P/A:P
osv7.5HIGH
vendor_debian7.5HIGH
vendor_msrc7.5HIGH
vendor_redhat7.5HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Red Hat
golang: improper validation of cgo flags can lead to code execution at build time
vendor_redhat·2020-11-12·CVSS 7.5
CVE-2020-28367 [HIGH] CWE-20 golang: improper validation of cgo flags can lead to code execution at build time
golang: improper validation of cgo flags can lead to code execution at build time
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.
An input validation vulnerability was found in Go. If cgo is specified in a Go file, it is possible to bypass the validation of arguments to the gcc compiler. This flaw allows an attacker to create a malicious repository that can execute arbitrary code when downloaded and run via `go get` or `go build` while building a Go project. The highest threat from this vulnerability is to confidentiality and integrity as well as system availability.
Statement: While the OpenShift Container Platform (OCP), Red Hat OpenShift Jaeger (RHOSJ), Open
Microsoft
Arbitrary code execution via the go command with cgo in cmd/go
vendor_msrc·2020-11-10·CVSS 7.5
CVE-2020-28367 [HIGH] CWE-94 Arbitrary code execution via the go command with cgo in cmd/go
Arbitrary code execution via the go command with cgo in cmd/go
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Mariner: Mariner
Go: Go
Customer Action Required: Yes
Remediation: CBL-Mariner Releases
Reference: https://lear
Debian
CVE-2020-28367: golang-1.15 - Code injection in the go command with cgo before Go 1.14.12 and Go 1.15.5 allows...
vendor_debian·2020·CVSS 7.5
CVE-2020-28367 [HIGH] CVE-2020-28367: golang-1.15 - Code injection in the go command with cgo before Go 1.14.12 and Go 1.15.5 allows...
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.
Scope: local
bullseye: resolved (fixed in 1.15.5-1)
OSV
Arbitrary code execution via the go command with cgo in cmd/go
osv·2022-07-28
CVE-2020-28367 Arbitrary code execution via the go command with cgo in cmd/go
Arbitrary code execution via the go command with cgo in cmd/go
The go command may execute arbitrary code at build time when cgo is in use. This may occur when running go get on a malicious package, or any other command that builds untrusted code.
This can be caused by malicious gcc flags specified via a cgo directive.
GHSA
GHSA-827f-m9xx-4cfw: Go before 1
ghsa_unreviewed·2022-05-24
CVE-2020-28367 [CRITICAL] CWE-88 GHSA-827f-m9xx-4cfw: Go before 1
Go before 1.14.12 and 1.15.x before 1.15.5 allows Argument Injection.
OSV
CVE-2020-28367: Code injection in the go command with cgo before Go 1
osv·2020-11-18·CVSS 7.5
CVE-2020-28367 [HIGH] CVE-2020-28367: Code injection in the go command with cgo before Go 1
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.
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://go.dev/cl/267277https://go.dev/issue/42556https://go.googlesource.com/go/+/da7aa86917811a571e6634b45a457f918b8e6561https://groups.google.com/g/golang-announce/c/NpBGTTmKzpMhttps://lists.debian.org/debian-lts-announce/2023/04/msg00021.htmlhttps://pkg.go.dev/vuln/GO-2022-0476https://go.dev/cl/267277https://go.dev/issue/42556https://go.googlesource.com/go/+/da7aa86917811a571e6634b45a457f918b8e6561https://groups.google.com/g/golang-announce/c/NpBGTTmKzpMhttps://lists.debian.org/debian-lts-announce/2023/04/msg00021.htmlhttps://pkg.go.dev/vuln/GO-2022-0476
2020-11-18
Published