CVEfocus › CVE database › CVE-2021-3115

CVE-2021-3115

CVSS 7.5 HighEPSS 6.9% (higher than 94% of CVEs)Published 2021-01-26Updated 2024-08-03Assigner: 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" command to fetch modules that make use of cgo (for example, cgo can execute a gcc program from an untrusted download).

What to do

Fixed builds are available from Alpine, Go, Red Hat, Rocky Linux: see the table below for the fixed version per release.

Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

25Fixed
11Fix pending
6Will not fix
47Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 20.04golang-1.13Not affected
vulnerable_code_not_present
Ubuntu 20.04golang-1.14Not affected
vulnerable_code_not_present
Ubuntu 18.04golang-1.10Not affected
vulnerable_code_not_present
Ubuntu 18.04golang-1.8Not affected
vulnerable_code_not_present
Ubuntu 18.04golang-1.9Not affected
vulnerable_code_not_present
Ubuntu 16.04golang-1.10Not affected
vulnerable_code_not_present
Ubuntu 16.04golang-1.13Not affected
vulnerable_code_not_present
Ubuntu 16.04golang-1.6Not affected
vulnerable_code_not_present
Ubuntu 14.04golangFix pending
Ubuntu 14.04golang-1.10Fix pending
Ubuntu 14.04golang-1.6Fix pending
Red Hat Enterprise Linux 9go-toolsetFix pending
Affected
Red Hat Enterprise Linux 9golangFix pending
Affected
Red Hat Enterprise Linux 9golang-binFix pending
Affected
Red Hat Enterprise Linux 9golang-docsFix pending
Affected
Red Hat Enterprise Linux 9golang-miscFix pending
Affected
Red Hat Enterprise Linux 9golang-raceFix pending
Affected
Red Hat Enterprise Linux 9golang-srcFix pending
Affected
Red Hat Enterprise Linux 9golang-testsFix pending
Affected
Red Hat Enterprise Linux 8delveFixed0:1.5.0-2.module+el8.4.0+8864+58b0fcdbRHSA-2021:1746
Red Hat Enterprise Linux 8go-toolsetFixed0:1.15.7-1.module+el8.4.0+9580+3b0e6c24RHSA-2021:1746
Red Hat Enterprise Linux 8golangFixed0:1.15.7-1.module+el8.4.0+9580+3b0e6c24RHSA-2021:1746
Red Hat Enterprise Linux 8golang-binFixed0:1.15.7-1.module+el8.4.0+9580+3b0e6c24RHSA-2021:1746
Red Hat Enterprise Linux 8golang-docsFixed0:1.15.7-1.module+el8.4.0+9580+3b0e6c24RHSA-2021:1746
Red Hat Enterprise Linux 8golang-miscFixed0:1.15.7-1.module+el8.4.0+9580+3b0e6c24RHSA-2021:1746
Red Hat Enterprise Linux 8golang-raceFixed0:1.15.7-1.module+el8.4.0+9580+3b0e6c24RHSA-2021:1746
Red Hat Enterprise Linux 8golang-srcFixed0:1.15.7-1.module+el8.4.0+9580+3b0e6c24RHSA-2021:1746
Red Hat Enterprise Linux 8golang-testsFixed0:1.15.7-1.module+el8.4.0+9580+3b0e6c24RHSA-2021:1746
Red Hat Enterprise Linux 7cppNot affected
Red Hat Enterprise Linux 7gccNot affected
Red Hat Enterprise Linux 7gcc-c++Not affected
Red Hat Enterprise Linux 7gcc-gfortranNot affected
Red Hat Enterprise Linux 7gcc-gnatNot affected
Red Hat Enterprise Linux 7gcc-goNot affected
Red Hat Enterprise Linux 7gcc-objcNot affected
Red Hat Enterprise Linux 7gcc-objc++Not affected
Red Hat Enterprise Linux 7gcc-plugin-develNot affected
Red Hat Enterprise Linux 7golangWill not fix
Out of support scope
Red Hat Enterprise Linux 7golang-binWill not fix
Out of support scope
Red Hat Enterprise Linux 7golang-docsWill not fix
Out of support scope
Red Hat Enterprise Linux 7golang-miscWill not fix
Out of support scope
Red Hat Enterprise Linux 7golang-srcWill not fix
Out of support scope
Red Hat Enterprise Linux 7golang-testsWill not fix
Out of support scope
Red Hat Enterprise Linux 7libasanNot affected
Red Hat Enterprise Linux 7libasan-staticNot affected
Red Hat Enterprise Linux 7libatomicNot affected
Red Hat Enterprise Linux 7libatomic-staticNot affected
Red Hat Enterprise Linux 7libgccNot affected
Red Hat Enterprise Linux 7libgfortranNot affected
Red Hat Enterprise Linux 7libgfortran-staticNot affected
Red Hat Enterprise Linux 7libgnatNot affected
Red Hat Enterprise Linux 7libgnat-develNot affected
Red Hat Enterprise Linux 7libgnat-staticNot affected
Red Hat Enterprise Linux 7libgoNot affected
Red Hat Enterprise Linux 7libgo-develNot affected
Red Hat Enterprise Linux 7libgo-staticNot affected
Red Hat Enterprise Linux 7libgompNot affected
Red Hat Enterprise Linux 7libitmNot affected
Red Hat Enterprise Linux 7libitm-develNot affected
Red Hat Enterprise Linux 7libitm-staticNot affected
Red Hat Enterprise Linux 7libmudflapNot affected
Red Hat Enterprise Linux 7libmudflap-develNot affected
Red Hat Enterprise Linux 7libmudflap-staticNot affected
Red Hat Enterprise Linux 7libobjcNot affected
Red Hat Enterprise Linux 7libquadmathNot affected
Red Hat Enterprise Linux 7libquadmath-develNot affected
Red Hat Enterprise Linux 7libquadmath-staticNot affected
Red Hat Enterprise Linux 7libstdc++Not affected
Red Hat Enterprise Linux 7libstdc++-develNot affected
Red Hat Enterprise Linux 7libstdc++-docsNot affected
Red Hat Enterprise Linux 7libstdc++-staticNot affected
Red Hat Enterprise Linux 7libtsanNot affected
Red Hat Enterprise Linux 7libtsan-staticNot affected
Rocky Linux 8delveFixed0:1.5.0-2.module+el8.4.0+396+d2d16ae3RLSA-2021:1746
Rocky Linux 8go-toolsetFixed0:1.15.7-1.module+el8.4.0+396+d2d16ae3RLSA-2021:1746
Rocky Linux 8golangFixed0:1.15.7-1.module+el8.4.0+396+d2d16ae3RLSA-2021:1746
Alpine Linux 3.24goFixed1.15.7-r0ALPINE-CVE-2021-3115
Alpine Linux 3.23goFixed1.15.7-r0ALPINE-CVE-2021-3115
Alpine Linux 3.22goFixed1.15.7-r0ALPINE-CVE-2021-3115
Alpine Linux 3.21goFixed1.15.7-r0ALPINE-CVE-2021-3115
Alpine Linux 3.20goFixed1.15.7-r0ALPINE-CVE-2021-3115
Alpine Linux 3.19goFixed1.15.7-r0ALPINE-CVE-2021-3115
Alpine Linux 3.18goFixed1.15.7-r0ALPINE-CVE-2021-3115
Alpine Linux 3.17goFixed1.15.7-r0ALPINE-CVE-2021-3115
Alpine Linux 3.16goFixed1.15.7-r0ALPINE-CVE-2021-3115
Alpine Linux 3.15goFixed1.15.7-r0ALPINE-CVE-2021-3115
Alpine Linux 3.14goFixed1.15.7-r0ALPINE-CVE-2021-3115
Alpine Linux 3.13goFixed1.15.7-r0ALPINE-CVE-2021-3115
Go librarytoolchainFixed1.15.7GO-2021-0068

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.