Security mailing lists by PureSourceCode

CVE-2020-28367

HIGH 7.5CVSS 3.1

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

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.

Published
18 Nov 2020
Last modified
17 Jun 2026
Assigned by
security@golang.org
NVD status
Modified
Weakness
CWE-94
Also known as
BIT-golang-2020-28367GO-2022-0476
Sources
NVDJSONOSV GO-2022-0476JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 5.1 AV:N/AC:H/Au:N/C:P/I:P/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD golang go
cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
< 1.14.12 1.14.12
NVD golang go
cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
>= 1.15, < 1.15.5 1.15.5
OSV Go toolchain < 1.14.12; >= 1.15.0-0, < 1.15.5 1.14.12, 1.15.5

References

History

  • 25 Nov 2026 20:32 UTC · NVD: first stored (published 18 Nov 2020)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 28 Jul 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.