CVE-2020-28367GO-2022-0476BIT-GOLANG-2020-28367
Arbitrary code execution via the go command with cgo in cmd/go
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 1.14.12, 1.15.5
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
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 malicious gcc flags specified via a #cgo directive.
Timeline
- CVE published
- Record last updated
Affected versions
- cmd/go
fixed in 1.14.12; From 1.15.0-0 · fixed in 1.15.5
- toolchainGo
fixed in 1.14.12; From 1.15.0-0 · fixed in 1.15.5