CVE-2020-28367

published 18 Nov 2020 · updated 11 Sep 2024

Arbitrary code execution via the go command with cgo in cmd/go

7.5HighCVSS 7.5EPSS 2%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 2%. Fixed in 1.14.12 and 1.15.5.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Go toolchain<1.14.12, >=1.15.0-0 <1.15.51.14.12, 1.15.5

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2020-28367 severity on Zeptric[![CVE-2020-28367](https://zeptric.io/badge/cve/CVE-2020-28367.svg)](https://zeptric.io/cve/CVE-2020-28367)