cve.bz

CVE-2021-3115 Uncontrolled Search Path Element

7.5 highEPSS 6.9%Fix available

High (7.5). EPSS 6.9% estimated probability of exploitation activity in the next 30 days. Fixed in toolchain 1.14.14, 1.15.7.

On this page
Go before 1.14.14 and 1.15.x before 1.15.7 on Windows is vulnerable to Command Injection and remote code execution when using the "go get" command to fetch modules that make use of cgo (for example, cgo can execute a gcc program from an untrusted download).

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
6.9% (unchanged from 6.9% a week ago; 6.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 94th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-427 Uncontrolled Search Path Element
OWASP Top 10
A08:2025 Software or Data Integrity Failures
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-2021-3115 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-3115?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-3115?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-2021-3115 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 NVD's CPE matches.

ProductAffected
golang:gobefore 1.14.14
golang:gofrom 1.15 before 1.15.7
fedoraproject:fedora33

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GO-2021-0068Gotoolchain<1.14.14
>=1.15.0-0 <1.15.7
1.14.14, 1.15.7

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11golang-1.151.15.7-1DEBIAN-CVE-2021-3115
Red Hatenterprise_linux:8::appstreamdelve, delve-debuginfo, delve-debugsource0:1.5.0-2.module+el8.4.0+8864+58b0fcdbRHSA-2021:1746
Red Hatenterprise_linux:8::appstreamgolang, go-toolset, golang-bin and 5 more0:1.15.7-1.module+el8.4.0+9580+3b0e6c24RHSA-2021:1746
Red Hatserverless:1.0::el8openshift-serverless-clients0:0.20.0-6.el8RHSA-2021:1339
Red Hatserverless:1.0::el8openshift-serverless-clients0:0.20.0-7.el8RHSA-2021:2095
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 7 morego1.141.14.14-1.32.1SUSE-SU-2021:0222-1
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 7 morego1.151.15.7-1.17.1SUSE-SU-2021:0223-1
openSUSELeap 15.1go1.141.14.14-lp151.28.1openSUSE-SU-2021:0190-1
openSUSELeap 15.2go1.141.14.14-lp152.2.18.1openSUSE-SU-2021:0194-1
openSUSELeap 15.2go1.151.15.7-lp152.8.1openSUSE-SU-2021:0192-1
openSUSETumbleweedgo1.141.14.15-1.6openSUSE-SU-2024:10807-1
openSUSETumbleweedgo1.151.15.15-1.2openSUSE-SU-2024:10808-1
Rocky Linux8delve0:1.5.0-2.module+el8.4.0+396+d2d16ae3RLSA-2021:1746
Rocky Linux8golang, go-toolset0:1.15.7-1.module+el8.4.0+396+d2d16ae3RLSA-2021:1746
Alpinev3.13, v3.14, v3.15 and 9 morego1.15.7-r0ALPINE-CVE-2021-3115
Azure Linux3python-tensorboard2.16.2-1AZL-38572

From the distributions' data via OSV.dev: the Debian Security Tracker; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; Rocky Linux's errata, BSD-3-Clause; 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 · 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. Hence 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's mitigation

The flaw can be mitigated by making sure "." is not in your PATH environment variable.

ProductPackageStateAdvisory
Openshift Serveless 1.10openshift-serverless-1/client-kn-rhel8:0.16.1-4Fixed 2021-05-19RHSA-2021:2021
Openshift Serveless 1.10openshift-serverless-1/ingress-rhel8-operator:1.10.2-1Fixed 2021-05-19RHSA-2021:2021
Openshift Serveless 1.10openshift-serverless-1/knative-rhel8-operator:1.10.2-1Fixed 2021-05-19RHSA-2021:2021
Openshift Serveless 1.10openshift-serverless-1/kn-cli-artifacts-rhel8:0.16.1-4Fixed 2021-05-19RHSA-2021:2021
Openshift Serveless 1.10openshift-serverless-1/kourier-control-rhel8:0.16.0-7Fixed 2021-05-19RHSA-2021:2021
Openshift Serveless 1.10openshift-serverless-1/serverless-operator-bundle:1.10.2-4Fixed 2021-05-19RHSA-2021:2021
Openshift Serveless 1.10openshift-serverless-1/serverless-rhel8-operator:1.10.2-1Fixed 2021-05-19RHSA-2021:2021
Openshift Serveless 1.10openshift-serverless-1/serving-activator-rhel8:0.16.0-6Fixed 2021-05-19RHSA-2021:2021
Openshift Serveless 1.10openshift-serverless-1/serving-autoscaler-hpa-rhel8:0.16.0-6Fixed 2021-05-19RHSA-2021:2021
Openshift Serveless 1.10openshift-serverless-1/serving-autoscaler-rhel8:0.16.0-6Fixed 2021-05-19RHSA-2021:2021
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 Serverlessknative-servingAffected
OpenShift Service Mesh 1kialiNot affected
OpenShift Service Mesh 1servicemeshNot affected
OpenShift Service Mesh 1servicemesh-operatorNot affected
OpenShift Service Mesh 2.0kialiNot affected
66 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-2021-3115.

Attack patterns (CAPEC)

  • CAPEC-38 Leveraging/Manipulating Configuration File Search Paths Likelihood: High · Severity: Very High
  • CAPEC-471 Search Order Hijacking Severity: Medium

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

References

Check your stackJSON