7.5

CVE-2020-28367: Arbitrary code execution via the go command with cgo in cmd/go

Modified
AliasesUBUNTU-CVE-2020-28367DEBIAN-CVE-2020-28367GO-2022-0476
Published 18-11-2020Last modified 04-08-2024

Vulnerability summary

CVE-2020-28367 is a high (CVSS 7.5) Improper Control of Generation of Code vulnerability in go toolchain cmd/go. EPSS estimates a 2.40% chance of exploitation in the next 30 days, higher than 84% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 7.5, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.5/10
010
High · v3.1 (NVD)
EPSS score
2.40%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 13 · Related 7

Timeline

  1. 18-11-2020
    PublishedVulnerability first disclosed.
  2. 04-08-2024
    Last modifiedVulnerability information updated.

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 metrics

5 scores · 4 sources · 2 versions

EPSS trend

Probability

2.40%

Chance of exploitation in the next 30 days

Percentile

84%

Versus all other CVEs

30-day change

No change 0.00 pp

From 2.40% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Ubuntu6 products
  • golang-1.10All versions (No fix recorded)
  • golang-1.13All versions (No fix recorded)
  • golang-1.14All versions (No fix recorded)
  • golang-1.6All versions (No fix recorded)
  • golang-1.8All versions (No fix recorded)
Alpine1 product
  • go≥ 1.15, < 1.15.5-r0
Debian1 product
  • golang-1.15< 1.15.5-1
Go1 product
  • toolchain≥ 1.15.0-0, < 1.15.5
Go toolchain1 product
  • cmd/go< 1.14.12 | ≥ 1.15.0-0, < 1.15.5
Golang1 product
  • go< 1.14.12 | ≥ 1.15, < 1.15.5

6 vendors · 11 products

References

12 links
Show all 12 references