cve.bz

CVE-2020-28366 Code Injection

7.5 highEPSS 2.3%Fix available

High (7.5). EPSS 2.3% estimated probability of exploitation activity in the next 30 days. Fixed in toolchain 1.14.12, 1.15.5.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
2.3% (unchanged from 2.3% a week ago; 2.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 84th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-94 Improper Control of Generation of Code (Code Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2020-28366 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-28366?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-28366?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2020-28366 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Go toolchain cmd/gobefore 1.14.12
Go toolchain cmd/gofrom 1.15.0-0 before 1.15.5
Go toolchain cmd/cgobefore 1.14.12
Go toolchain cmd/cgofrom 1.15.0-0 before 1.15.5

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GO-2022-0475Gotoolchain<1.14.12
>=1.15.0-0 <1.15.5
1.14.12, 1.15.5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11golang-1.151.15.5-1DEBIAN-CVE-2020-28366
Ubuntu14.04:LTSgolang-1.10no fix listedUBUNTU-CVE-2020-28366
Ubuntu16.04:LTSgolang-1.6, golang-1.10no fix listedUBUNTU-CVE-2020-28366
Ubuntu18.04:LTSgolang-1.8, golang-1.9, golang-1.10no fix listedUBUNTU-CVE-2020-28366
Ubuntu20.04:LTSgolang-1.13, golang-1.14no fix listedUBUNTU-CVE-2020-28366
UbuntuPro:16.04:LTS, Pro:18.04:LTS, Pro:22.04:LTSgolang-1.13no fix listedUBUNTU-CVE-2020-28366
Red Hatdevtools:2020go-toolset-1.14, go-toolset-1.14-build, go-toolset-1.14-golang and 7 more0:1.14.12-1.el7_9RHSA-2020:5333
Red Hatenterprise_linux:8::appstreamdelve, delve-debuginfo, delve-debugsource0:1.4.1-1.module+el8.3.0+7840+63dfb1edRHSA-2020:5493
Red Hatenterprise_linux:8::appstreamgolang, go-toolset, golang-bin and 5 more0:1.14.12-1.module+el8.3.0+8784+380394dcRHSA-2020:5493
Red Hatserverless:1.0::el8openshift-serverless-clients0:0.18.4-2.el8RHSA-2021:0145
SUSELinux Enterprise Module for Development Tools 15 SP1, Linux Enterprise Module for Development Tools 15 SP2go1.141.14.12-1.26.1SUSE-SU-2020:3369-1
SUSELinux Enterprise Module for Development Tools 15 SP1, Linux Enterprise Module for Development Tools 15 SP2go1.151.15.5-1.11.1SUSE-SU-2020:3368-1
openSUSELeap 15.1go1.141.14.12-lp151.22.1openSUSE-SU-2020:2047-1
openSUSELeap 15.2go1.141.14.12-lp152.2.12.1openSUSE-SU-2020:2067-1
openSUSELeap 15.2go1.151.15.5-lp152.2.1openSUSE-SU-2020:2139-1
openSUSETumbleweedgo1.141.14.15-1.6openSUSE-SU-2024:10807-1
openSUSETumbleweedgo1.151.15.15-1.2openSUSE-SU-2024:10808-1
Alpinev3.13, v3.14, v3.15 and 9 morego1.15.5-r0ALPINE-CVE-2020-28366
Azure Linux3python-tensorboard2.16.2-1AZL-38452

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

While OpenShift Container Platform (OCP), Red Hat OpenShift Jaeger (RHOSJ), OpenShift Service Mesh (OSSM), and OpenShift Virtualization all contain RPMs and containers which are compiled with a vulnerable version of Go, the vulnerability is specific to the building of Go code itself. Using `go get` or `go build` and as such, the relevant components have been marked as not affected.

Additionally, only the main RPMs and containers for OCP, RHOSJ, OSSM, and OpenShift Virtualization are represented due to the large volume of not affected components.

Red Hat Ceph Storage 3 ships the vulnerable version of go, and an attacker building go code on RHCS 3 could potentially exploit this vulnerability.

Red Hat's mitigation

If it's possible to confirm that the Go project being built does not rely on any cgo code in the included dependencies, the env variable CGO_ENABLED=0 can be specified when using either `go get` or `go build`.

For example:

CGO_ENABLED=0 go get github.com/someproject

This will not stop the files being downloaded but will stop any automatic complication of the cgo code, including inlined in the go file and separate .c files. Of course, this will only be effective if cgo is not relied upon in a given dependency and may not be appropriate in all scenarios.

ProductPackageStateAdvisory
Openshift Serveless 1.12openshift-serverless-1/client-kn-rhel8:0.18.4-2Fixed 2021-01-14RHSA-2021:0146
Openshift Serveless 1.12openshift-serverless-1/eventing-apiserver-receive-adapter-rhel8:0.18.6-2Fixed 2021-01-14RHSA-2021:0146
Openshift Serveless 1.12openshift-serverless-1/eventing-controller-rhel8:0.18.6-2Fixed 2021-01-14RHSA-2021:0146
Openshift Serveless 1.12openshift-serverless-1/eventing-in-memory-channel-controller-rhel8:0.18.6-2Fixed 2021-01-14RHSA-2021:0146
Openshift Serveless 1.12openshift-serverless-1/eventing-in-memory-channel-dispatcher-rhel8:0.18.6-2Fixed 2021-01-14RHSA-2021:0146
Openshift Serveless 1.12openshift-serverless-1/eventing-mtbroker-filter-rhel8:0.18.6-2Fixed 2021-01-14RHSA-2021:0146
Openshift Serveless 1.12openshift-serverless-1/eventing-mtbroker-ingress-rhel8:0.18.6-2Fixed 2021-01-14RHSA-2021:0146
Openshift Serveless 1.12openshift-serverless-1/eventing-mtchannel-broker-rhel8:0.18.6-2Fixed 2021-01-14RHSA-2021:0146
Openshift Serveless 1.12openshift-serverless-1/eventing-mtping-rhel8:0.18.6-2Fixed 2021-01-14RHSA-2021:0146
Openshift Serveless 1.12openshift-serverless-1/eventing-storage-version-migration-rhel8:0.18.6-2Fixed 2021-01-14RHSA-2021:0146
Distributed Tracing Jaeger 1distributed-tracing/jaeger-all-in-one-rhel7Not affected
Distributed Tracing Jaeger 1distributed-tracing/jaeger-all-in-one-rhel8Not affected
Distributed Tracing Jaeger 1jaeger-rhel7-operatorNot affected
Distributed Tracing Jaeger 1jaeger-rhel8-operatorNot affected
OpenShift Serverlessknative-eventingAffected
OpenShift Service Mesh 1kialiNot affected
OpenShift Service Mesh 1servicemeshNot affected
OpenShift Service Mesh 1servicemesh-operatorNot affected
OpenShift Service Mesh 2.0kialiNot affected
OpenShift Service Mesh 2.0servicemeshNot affected
47 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2020-28366.

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON