CVE-2020-28367Code Injection in Toolchain CMD GO

Severity
7.5HIGHNVD
EPSS
0.3%
top 49.28%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedNov 18
Latest updateJul 28

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.

CVSS vector

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:HExploitability: 1.6 | Impact: 5.9

Affected Packages2 packages

NVDgolang/go1.151.15.5+1
CVEListV5go_toolchain/cmd_go1.15.0-01.15.5+1

🔴Vulnerability Details

4
OSV
Arbitrary code execution via the go command with cgo in cmd/go2022-07-28
GHSA
GHSA-827f-m9xx-4cfw: Go before 12022-05-24
CVEList
Arbitrary code execution via the go command with cgo in cmd/go2020-11-18
OSV
CVE-2020-28367: Code injection in the go command with cgo before Go 12020-11-18

📋Vendor Advisories

3
Red Hat
golang: improper validation of cgo flags can lead to code execution at build time2020-11-12
Microsoft
Arbitrary code execution via the go command with cgo in cmd/go2020-11-10
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...2020
CVE-2020-28367 — Code Injection in GO Toolchain CMD GO | cvebase