Skip to content
Noroxi
CVE-2021-3115· NVD / CVE Program· CNA mitre

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" c

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).

HighCVSS 7.5 · v3.1—No exploit Fix available
Published
Jan 26, 2021
Updated
Jun 17, 2026
EPSS
6.5% · 94th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

32

Monitor

Low priority for now.

CVSS
30 / 40 · 7.5 / 10
CISA KEV
0 / 30 · Not listed
EPSS
2 / 30 · 6.5%

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for the hundreds of thousands of vulnerabilities in the database; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help

Affected systems

VendorProduct
golanggo
microsoftwindows
fedoraprojectfedora
netappcloud insights telegraf agent
netappstoragegrid

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • fedoraproject fedora33
  • golang gobefore 1.14.14
  • golang go1.15 and later · before 1.15.7
  • netapp cloud insights telegraf agentall versions
  • netapp storagegridall versions

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Debian:11golang-1.15before 1.15.7-11.15.7-1
Gotoolchainfrom 1.15.0-0 · before 1.15.71.15.7
Gotoolchainbefore 1.14.141.14.14
openSUSE:Leap 15.1go1.14before 1.14.14-lp151.28.11.14.14-lp151.28.1
openSUSE:Leap 15.2go1.14before 1.14.14-lp152.2.18.11.14.14-lp152.2.18.1
openSUSE:Leap 15.2go1.15before 1.15.7-lp152.8.11.15.7-lp152.8.1
openSUSE:Tumbleweedgo1.14before 1.14.15-1.61.14.15-1.6
openSUSE:Tumbleweedgo1.15before 1.15.15-1.21.15.15-1.2
Red Hat:enterprise_linux:8::appstreamdelvebefore 0:1.5.0-2.module+el8.4.0+8864+58b0fcdb0:1.5.0-2.module+el8.4.0+8864+58b0fcdb
Red Hat:enterprise_linux:8::appstreamdelve-debuginfobefore 0:1.5.0-2.module+el8.4.0+8864+58b0fcdb0:1.5.0-2.module+el8.4.0+8864+58b0fcdb
Red Hat:enterprise_linux:8::appstreamdelve-debugsourcebefore 0:1.5.0-2.module+el8.4.0+8864+58b0fcdb0:1.5.0-2.module+el8.4.0+8864+58b0fcdb
Red Hat:enterprise_linux:8::appstreamgo-toolsetbefore 0:1.15.7-1.module+el8.4.0+9580+3b0e6c240:1.15.7-1.module+el8.4.0+9580+3b0e6c24
Red Hat:enterprise_linux:8::appstreamgolangbefore 0:1.15.7-1.module+el8.4.0+9580+3b0e6c240:1.15.7-1.module+el8.4.0+9580+3b0e6c24
Red Hat:enterprise_linux:8::appstreamgolang-binbefore 0:1.15.7-1.module+el8.4.0+9580+3b0e6c240:1.15.7-1.module+el8.4.0+9580+3b0e6c24
Red Hat:enterprise_linux:8::appstreamgolang-docsbefore 0:1.15.7-1.module+el8.4.0+9580+3b0e6c240:1.15.7-1.module+el8.4.0+9580+3b0e6c24
Red Hat:enterprise_linux:8::appstreamgolang-miscbefore 0:1.15.7-1.module+el8.4.0+9580+3b0e6c240:1.15.7-1.module+el8.4.0+9580+3b0e6c24
Red Hat:enterprise_linux:8::appstreamgolang-racebefore 0:1.15.7-1.module+el8.4.0+9580+3b0e6c240:1.15.7-1.module+el8.4.0+9580+3b0e6c24
Red Hat:enterprise_linux:8::appstreamgolang-srcbefore 0:1.15.7-1.module+el8.4.0+9580+3b0e6c240:1.15.7-1.module+el8.4.0+9580+3b0e6c24
Red Hat:enterprise_linux:8::appstreamgolang-testsbefore 0:1.15.7-1.module+el8.4.0+9580+3b0e6c240:1.15.7-1.module+el8.4.0+9580+3b0e6c24
Red Hat:serverless:1.0::el8openshift-serverless-clientsbefore 0:0.20.0-6.el80:0.20.0-6.el8
Red Hat:serverless:1.0::el8openshift-serverless-clientsbefore 0:0.20.0-7.el80:0.20.0-7.el8
Rocky Linux:8delvebefore 0:1.5.0-2.module+el8.4.0+396+d2d16ae30:1.5.0-2.module+el8.4.0+396+d2d16ae3
Rocky Linux:8go-toolsetbefore 0:1.15.7-1.module+el8.4.0+396+d2d16ae30:1.15.7-1.module+el8.4.0+396+d2d16ae3
Rocky Linux:8golangbefore 0:1.15.7-1.module+el8.4.0+396+d2d16ae30:1.15.7-1.module+el8.4.0+396+d2d16ae3

+2

Other highest-scoring records for the same primary product.

  • CVE-2018-7187The "go get" implementation in Go 1.9.4, when the -insecure command-line option is used, does not validate the import path (get/vcs.go only
    54Plan
  • CVE-2018-16873In Go before 1.10.6 and 1.11.x before 1.11.3, the "go get" command is vulnerable to remote code execution when executed with the -u flag and
    52Plan
  • CVE-2021-38297Go before 1.16.9 and 1.17.x before 1.17.2 has a Buffer Overflow via large arguments in a function invocation from a WASM module, when GOARCH
    42Plan
  • CVE-2019-14809net/url in Go before 1.11.13 and 1.12.x before 1.12.8 mishandles malformed hosts in URLs, leading to an authorization bypass in some applica
    42Plan
  • CVE-2015-5739The net/http library in net/textproto/reader.go in Go before 1.4.3 does not properly parse HTTP header keys, which allows remote attackers t
    42Plan
  • CVE-2017-15041Go before 1.8.4 and 1.9.x before 1.9.1 allows "go get" remote command execution.
    42Plan

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
debian:golang-1.151.15.7-1 · Debian:11Package registry (OSV)
Go:toolchain1.14.14Package registry (OSV)
Go:toolchain1.15.7Package registry (OSV)
opensuse:go1.141.14.14-lp151.28.1 · openSUSE:Leap 15.1Package registry (OSV)
opensuse:go1.151.15.7-lp152.8.1 · openSUSE:Leap 15.2Package registry (OSV)
red hat:delve0:1.5.0-2.module+el8.4.0+8864+58b0fcdb · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:delve-debuginfo0:1.5.0-2.module+el8.4.0+8864+58b0fcdb · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:delve-debugsource0:1.5.0-2.module+el8.4.0+8864+58b0fcdb · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:go-toolset0:1.15.7-1.module+el8.4.0+9580+3b0e6c24 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:golang0:1.15.7-1.module+el8.4.0+9580+3b0e6c24 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:golang-bin0:1.15.7-1.module+el8.4.0+9580+3b0e6c24 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:golang-docs0:1.15.7-1.module+el8.4.0+9580+3b0e6c24 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:golang-misc0:1.15.7-1.module+el8.4.0+9580+3b0e6c24 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:golang-race0:1.15.7-1.module+el8.4.0+9580+3b0e6c24 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:golang-src0:1.15.7-1.module+el8.4.0+9580+3b0e6c24 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:golang-tests0:1.15.7-1.module+el8.4.0+9580+3b0e6c24 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:openshift-serverless-clients0:0.20.0-6.el8 · Red Hat:serverless:1.0::el8Package registry (OSV)
rocky linux:delve0:1.5.0-2.module+el8.4.0+396+d2d16ae3 · Rocky Linux:8Package registry (OSV)
rocky linux:go-toolset0:1.15.7-1.module+el8.4.0+396+d2d16ae3 · Rocky Linux:8Package registry (OSV)
rocky linux:golang0:1.15.7-1.module+el8.4.0+396+d2d16ae3 · Rocky Linux:8Package registry (OSV)
suse:go1.141.14.14-1.32.1 · SUSE:Linux Enterprise Module for Development Tools 15 SP2Package registry (OSV)
suse:go1.151.15.7-1.17.1 · SUSE:Linux Enterprise Module for Development Tools 15 SP2Package registry (OSV)

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

No commit or PR link among the references.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • No account or password is required.
  • A user must open a link or visit a page.
  • Special conditions such as timing or configuration are required.

If successful

Confidentiality
high · data can be read
Integrity
high · data or configuration can be modified
Availability
high · the service can be disrupted
Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
Required
Scope
Unchanged
Confidentiality impact
High
Integrity impact
High
Availability impact
High

CVSS vector

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

nvd-primary

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records