7.5high

CVE-2020-28366

Arbitrary code execution in go command with cgo in cmd/go and cmd/cgo

Also known as GO-2022-0475

Published 5 y ago · modified 4 mo ago · JSON

CVSS
7.5
v3.1 · NVD
CISA KEV
No
not known exploited
EPSS
2.3%
percentile 84%
Public exploits
0
none known

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 a malicious unquoted symbol name in a linked object file.

Exploit prediction (EPSS)

2.34% probability of exploitation in the next 30 days, higher than 84% of all scored CVEs.

CVSS scores

Assigned byVersionScoreVector
NVD3.17.5CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD2.05.1AV:N/AC:H/Au:N/C:P/I:P/A:P

Affected packages

EcosystemPackageAffectedFixed in
gotoolchain
<1.14.12
>=1.15.0-0, <1.15.5
1.14.12
1.15.5

Affected products

  • Go toolchain cmd/go
  • Go toolchain cmd/cgo

Classification

Weakness
  • CWE-94 Improper Control of Generation of Code

References

Sources

vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.