CVE-2021-3115
publishedgolang: cmd/go: packages using cgo can cause arbitrary code execution at build time
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Amazon Linux | AL2 | Release evaluationALAS2-2021-1609 | Fixed | Not stated | Amazon Linux assessment |
| Alpine Linux | edge | go | Fixed | 1.15.7-r0 | Package fix record |
| Oracle Linux | 8 | delvex86_64 · go-toolset · ol8 is enabled | Advisory build | 0:1.5.0-2.0.1.module+el8.4.0+20021+8a86d991 | ELSA-2021-1746 |
| Red Hat Enterprise Linux | RHEL-8 | delvesrc | Advisory build | 1.5.0-2.module+el8.4.0+8864+58b0fcdb | RHSA-2021:1746 |
| SUSE / openSUSE | SLE-15-SP1 | go1.14aarch64 | Advisory build | 1.14.14-1.32.1 | SUSE-SU-2021:0222-1 |
| Alpine Linux | v3.13 | go | Fixed | 1.15.7-r0 | Package fix record |
| Alpine Linux | v3.14 | go | Fixed | 1.15.7-r0 | Package fix record |
Show 94 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.15 | go | Fixed | 1.15.7-r0 | Package fix record |
| Alpine Linux | v3.16 | go | Fixed | 1.15.7-r0 | Package fix record |
| Alpine Linux | v3.17 | go | Fixed | 1.15.7-r0 | Package fix record |
| Alpine Linux | v3.18 | go | Fixed | 1.15.7-r0 | Package fix record |
| Alpine Linux | v3.19 | go | Fixed | 1.15.7-r0 | Package fix record |
| Alpine Linux | v3.20 | go | Fixed | 1.15.7-r0 | Package fix record |
| Alpine Linux | v3.21 | go | Fixed | 1.15.7-r0 | Package fix record |
| Alpine Linux | v3.22 | go | Fixed | 1.15.7-r0 | Package fix record |
| Alpine Linux | v3.23 | go | Fixed | 1.15.7-r0 | Package fix record |
| Alpine Linux | v3.24 | go | Fixed | 1.15.7-r0 | Package fix record |
| Oracle Linux | 8 | go-toolsetaarch64 · go-toolset · ol8 is enabled | Advisory build | 0:1.15.7-1.module+el8.4.0+20021+8a86d991 | ELSA-2021-1746 |
| Oracle Linux | 8 | go-toolsetx86_64 · go-toolset · ol8 is enabled | Advisory build | 0:1.15.7-1.module+el8.4.0+20021+8a86d991 | ELSA-2021-1746 |
| Oracle Linux | 8 | golangaarch64 · go-toolset · ol8 is enabled | Advisory build | 0:1.15.7-1.module+el8.4.0+20021+8a86d991 | ELSA-2021-1746 |
| Oracle Linux | 8 | golangx86_64 · go-toolset · ol8 is enabled | Advisory build | 0:1.15.7-1.module+el8.4.0+20021+8a86d991 | ELSA-2021-1746 |
| Oracle Linux | 8 | golang-binaarch64 · go-toolset · ol8 is enabled | Advisory build | 0:1.15.7-1.module+el8.4.0+20021+8a86d991 | ELSA-2021-1746 |
| Oracle Linux | 8 | golang-binx86_64 · go-toolset · ol8 is enabled | Advisory build | 0:1.15.7-1.module+el8.4.0+20021+8a86d991 | ELSA-2021-1746 |
| Oracle Linux | 8 | golang-docsaarch64 · go-toolset · ol8 is enabled | Advisory build | 0:1.15.7-1.module+el8.4.0+20021+8a86d991 | ELSA-2021-1746 |
| Oracle Linux | 8 | golang-docsx86_64 · go-toolset · ol8 is enabled | Advisory build | 0:1.15.7-1.module+el8.4.0+20021+8a86d991 | ELSA-2021-1746 |
| Oracle Linux | 8 | golang-miscaarch64 · go-toolset · ol8 is enabled | Advisory build | 0:1.15.7-1.module+el8.4.0+20021+8a86d991 | ELSA-2021-1746 |
| Oracle Linux | 8 | golang-miscx86_64 · go-toolset · ol8 is enabled | Advisory build | 0:1.15.7-1.module+el8.4.0+20021+8a86d991 | ELSA-2021-1746 |
| Oracle Linux | 8 | golang-racex86_64 · go-toolset · ol8 is enabled | Advisory build | 0:1.15.7-1.module+el8.4.0+20021+8a86d991 | ELSA-2021-1746 |
| Oracle Linux | 8 | golang-srcaarch64 · go-toolset · ol8 is enabled | Advisory build | 0:1.15.7-1.module+el8.4.0+20021+8a86d991 | ELSA-2021-1746 |
| Oracle Linux | 8 | golang-srcx86_64 · go-toolset · ol8 is enabled | Advisory build | 0:1.15.7-1.module+el8.4.0+20021+8a86d991 | ELSA-2021-1746 |
| Oracle Linux | 8 | golang-testsaarch64 · go-toolset · ol8 is enabled | Advisory build | 0:1.15.7-1.module+el8.4.0+20021+8a86d991 | ELSA-2021-1746 |
| Oracle Linux | 8 | golang-testsx86_64 · go-toolset · ol8 is enabled | Advisory build | 0:1.15.7-1.module+el8.4.0+20021+8a86d991 | ELSA-2021-1746 |
| Red Hat Enterprise Linux | RHEL-8 | delvex86_64 | Advisory build | 1.5.0-2.module+el8.4.0+8864+58b0fcdb | RHSA-2021:1746 |
| Red Hat Enterprise Linux | RHEL-8 | delve-debuginfox86_64 | Advisory build | 1.5.0-2.module+el8.4.0+8864+58b0fcdb | RHSA-2021:1746 |
| Red Hat Enterprise Linux | RHEL-8 | delve-debugsourcex86_64 | Advisory build | 1.5.0-2.module+el8.4.0+8864+58b0fcdb | RHSA-2021:1746 |
| Red Hat Enterprise Linux | RHEL-8 | go-toolsetaarch64 | Advisory build | 1.15.7-1.module+el8.4.0+9580+3b0e6c24 | RHSA-2021:1746 |
| Red Hat Enterprise Linux | RHEL-8 | go-toolsetppc64le | Advisory build | 1.15.7-1.module+el8.4.0+9580+3b0e6c24 | RHSA-2021:1746 |
| Red Hat Enterprise Linux | RHEL-8 | go-toolsets390x | Advisory build | 1.15.7-1.module+el8.4.0+9580+3b0e6c24 | RHSA-2021:1746 |
| Red Hat Enterprise Linux | RHEL-8 | go-toolsetsrc | Advisory build | 1.15.7-1.module+el8.4.0+9580+3b0e6c24 | RHSA-2021:1746 |
| Red Hat Enterprise Linux | RHEL-8 | go-toolsetx86_64 | Advisory build | 1.15.7-1.module+el8.4.0+9580+3b0e6c24 | RHSA-2021:1746 |
| Red Hat Enterprise Linux | RHEL-8 | golangaarch64 | Advisory build | 1.15.7-1.module+el8.4.0+9580+3b0e6c24 | RHSA-2021:1746 |
| Red Hat Enterprise Linux | RHEL-8 | golangppc64le | Advisory build | 1.15.7-1.module+el8.4.0+9580+3b0e6c24 | RHSA-2021:1746 |
| Red Hat Enterprise Linux | RHEL-8 | golangs390x | Advisory build | 1.15.7-1.module+el8.4.0+9580+3b0e6c24 | RHSA-2021:1746 |
| Red Hat Enterprise Linux | RHEL-8 | golangsrc | Advisory build | 1.15.7-1.module+el8.4.0+9580+3b0e6c24 | RHSA-2021:1746 |
| Red Hat Enterprise Linux | RHEL-8 | golangx86_64 | Advisory build | 1.15.7-1.module+el8.4.0+9580+3b0e6c24 | RHSA-2021:1746 |
| Red Hat Enterprise Linux | RHEL-8 | golang-binaarch64 | Advisory build | 1.15.7-1.module+el8.4.0+9580+3b0e6c24 | RHSA-2021:1746 |
| Red Hat Enterprise Linux | RHEL-8 | golang-binppc64le | Advisory build | 1.15.7-1.module+el8.4.0+9580+3b0e6c24 | RHSA-2021:1746 |
| Red Hat Enterprise Linux | RHEL-8 | golang-bins390x | Advisory build | 1.15.7-1.module+el8.4.0+9580+3b0e6c24 | RHSA-2021:1746 |
| Red Hat Enterprise Linux | RHEL-8 | golang-binx86_64 | Advisory build | 1.15.7-1.module+el8.4.0+9580+3b0e6c24 | RHSA-2021:1746 |
| Red Hat Enterprise Linux | RHEL-8 | golang-docsnoarch | Advisory build | 1.15.7-1.module+el8.4.0+9580+3b0e6c24 | RHSA-2021:1746 |
| Red Hat Enterprise Linux | RHEL-8 | golang-miscnoarch | Advisory build | 1.15.7-1.module+el8.4.0+9580+3b0e6c24 | RHSA-2021:1746 |
| Red Hat Enterprise Linux | RHEL-8 | golang-racex86_64 | Advisory build | 1.15.7-1.module+el8.4.0+9580+3b0e6c24 | RHSA-2021:1746 |
| Red Hat Enterprise Linux | RHEL-8 | golang-srcnoarch | Advisory build | 1.15.7-1.module+el8.4.0+9580+3b0e6c24 | RHSA-2021:1746 |
| Red Hat Enterprise Linux | RHEL-8 | golang-testsnoarch | Advisory build | 1.15.7-1.module+el8.4.0+9580+3b0e6c24 | RHSA-2021:1746 |
| SUSE / openSUSE | SLE-15-SP1 | go1.14ppc64le | Advisory build | 1.14.14-1.32.1 | SUSE-SU-2021:0222-1 |
| SUSE / openSUSE | SLE-15-SP1 | go1.14s390x | Advisory build | 1.14.14-1.32.1 | SUSE-SU-2021:0222-1 |
| SUSE / openSUSE | SLE-15-SP1 | go1.14x86_64 | Advisory build | 1.14.14-1.32.1 | SUSE-SU-2021:0222-1 |
| SUSE / openSUSE | SLE-15-SP1 | go1.14-docaarch64 | Advisory build | 1.14.14-1.32.1 | SUSE-SU-2021:0222-1 |
| SUSE / openSUSE | SLE-15-SP1 | go1.14-docppc64le | Advisory build | 1.14.14-1.32.1 | SUSE-SU-2021:0222-1 |
| SUSE / openSUSE | SLE-15-SP1 | go1.14-docs390x | Advisory build | 1.14.14-1.32.1 | SUSE-SU-2021:0222-1 |
| SUSE / openSUSE | SLE-15-SP1 | go1.14-docx86_64 | Advisory build | 1.14.14-1.32.1 | SUSE-SU-2021:0222-1 |
| SUSE / openSUSE | SLE-15-SP1 | go1.15aarch64 | Advisory build | 1.15.7-1.17.1 | SUSE-SU-2021:0223-1 |
| SUSE / openSUSE | SLE-15-SP1 | go1.15ppc64le | Advisory build | 1.15.7-1.17.1 | SUSE-SU-2021:0223-1 |
| SUSE / openSUSE | SLE-15-SP1 | go1.15s390x | Advisory build | 1.15.7-1.17.1 | SUSE-SU-2021:0223-1 |
| SUSE / openSUSE | SLE-15-SP1 | go1.15x86_64 | Advisory build | 1.15.7-1.17.1 | SUSE-SU-2021:0223-1 |
| SUSE / openSUSE | SLE-15-SP1 | go1.15-docaarch64 | Advisory build | 1.15.7-1.17.1 | SUSE-SU-2021:0223-1 |
| SUSE / openSUSE | SLE-15-SP1 | go1.15-docppc64le | Advisory build | 1.15.7-1.17.1 | SUSE-SU-2021:0223-1 |
| SUSE / openSUSE | SLE-15-SP1 | go1.15-docs390x | Advisory build | 1.15.7-1.17.1 | SUSE-SU-2021:0223-1 |
| SUSE / openSUSE | SLE-15-SP1 | go1.15-docx86_64 | Advisory build | 1.15.7-1.17.1 | SUSE-SU-2021:0223-1 |
| SUSE / openSUSE | SLE-15-SP1 | go1.15-raceaarch64 | Advisory build | 1.15.7-1.17.1 | SUSE-SU-2021:0223-1 |
| SUSE / openSUSE | SLE-15-SP1 | go1.15-racex86_64 | Advisory build | 1.15.7-1.17.1 | SUSE-SU-2021:0223-1 |
| SUSE / openSUSE | SLE-15-SP2 | go1.14aarch64 | Advisory build | 1.14.14-1.32.1 | SUSE-SU-2021:0222-1 |
| SUSE / openSUSE | SLE-15-SP2 | go1.14ppc64le | Advisory build | 1.14.14-1.32.1 | SUSE-SU-2021:0222-1 |
| SUSE / openSUSE | SLE-15-SP2 | go1.14s390x | Advisory build | 1.14.14-1.32.1 | SUSE-SU-2021:0222-1 |
| SUSE / openSUSE | SLE-15-SP2 | go1.14x86_64 | Advisory build | 1.14.14-1.32.1 | SUSE-SU-2021:0222-1 |
| SUSE / openSUSE | SLE-15-SP2 | go1.14-docaarch64 | Advisory build | 1.14.14-1.32.1 | SUSE-SU-2021:0222-1 |
| SUSE / openSUSE | SLE-15-SP2 | go1.14-docppc64le | Advisory build | 1.14.14-1.32.1 | SUSE-SU-2021:0222-1 |
| SUSE / openSUSE | SLE-15-SP2 | go1.14-docs390x | Advisory build | 1.14.14-1.32.1 | SUSE-SU-2021:0222-1 |
| SUSE / openSUSE | SLE-15-SP2 | go1.14-docx86_64 | Advisory build | 1.14.14-1.32.1 | SUSE-SU-2021:0222-1 |
| SUSE / openSUSE | SLE-15-SP2 | go1.15aarch64 | Advisory build | 1.15.7-1.17.1 | SUSE-SU-2021:0223-1 |
| SUSE / openSUSE | SLE-15-SP2 | go1.15ppc64le | Advisory build | 1.15.7-1.17.1 | SUSE-SU-2021:0223-1 |
| SUSE / openSUSE | SLE-15-SP2 | go1.15s390x | Advisory build | 1.15.7-1.17.1 | SUSE-SU-2021:0223-1 |
| SUSE / openSUSE | SLE-15-SP2 | go1.15x86_64 | Advisory build | 1.15.7-1.17.1 | SUSE-SU-2021:0223-1 |
| SUSE / openSUSE | SLE-15-SP2 | go1.15-docaarch64 | Advisory build | 1.15.7-1.17.1 | SUSE-SU-2021:0223-1 |
| SUSE / openSUSE | SLE-15-SP2 | go1.15-docppc64le | Advisory build | 1.15.7-1.17.1 | SUSE-SU-2021:0223-1 |
| SUSE / openSUSE | SLE-15-SP2 | go1.15-docs390x | Advisory build | 1.15.7-1.17.1 | SUSE-SU-2021:0223-1 |
| SUSE / openSUSE | SLE-15-SP2 | go1.15-docx86_64 | Advisory build | 1.15.7-1.17.1 | SUSE-SU-2021:0223-1 |
| SUSE / openSUSE | SLE-15-SP2 | go1.15-raceaarch64 | Advisory build | 1.15.7-1.17.1 | SUSE-SU-2021:0223-1 |
| SUSE / openSUSE | SLE-15-SP2 | go1.15-racex86_64 | Advisory build | 1.15.7-1.17.1 | SUSE-SU-2021:0223-1 |
| SUSE / openSUSE | openSUSE-Leap-15.1 | go1.14x86_64 | Advisory build | 1.14.14-lp151.28.1 | OPENSUSE-SU-2021:0190-1 |
| SUSE / openSUSE | openSUSE-Leap-15.1 | go1.14-docx86_64 | Advisory build | 1.14.14-lp151.28.1 | OPENSUSE-SU-2021:0190-1 |
| SUSE / openSUSE | openSUSE-Leap-15.1 | go1.14-racex86_64 | Advisory build | 1.14.14-lp151.28.1 | OPENSUSE-SU-2021:0190-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | go1.14x86_64 | Advisory build | 1.14.14-lp152.2.18.1 | OPENSUSE-SU-2021:0194-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | go1.14-docx86_64 | Advisory build | 1.14.14-lp152.2.18.1 | OPENSUSE-SU-2021:0194-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | go1.14-racex86_64 | Advisory build | 1.14.14-lp152.2.18.1 | OPENSUSE-SU-2021:0194-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | go1.15x86_64 | Advisory build | 1.15.7-lp152.8.1 | OPENSUSE-SU-2021:0192-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | go1.15-docx86_64 | Advisory build | 1.15.7-lp152.8.1 | OPENSUSE-SU-2021:0192-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | go1.15-racex86_64 | Advisory build | 1.15.7-lp152.8.1 | OPENSUSE-SU-2021:0192-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | go1.14aarch64 | Advisory build | 1.14.15-1.6 | OPENSUSE-SU-2024:10807-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | go1.14ppc64le | Advisory build | 1.14.15-1.6 | OPENSUSE-SU-2024:10807-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | go1.14s390x | Advisory build | 1.14.15-1.6 | OPENSUSE-SU-2024:10807-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
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).
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
5- https://blog.golang.org/path-security
- https://groups.google.com/g/golang-announce/c/mperVMGa98w
- FEDORA-2021-e435a8bb88 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YWAYJGXWC232SG3UR3TR574E6BP3OSQQ/
- GLSA-202208-02 https://security.gentoo.org/glsa/202208-02
- https://security.netapp.com/advisory/ntap-20210219-0001/
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 6cc8cc97d5e8904a3cc548e7f2605c668f2935ce6144ddc805110ca6d26ebdf9
- Ingested
- 23 Sep 2026, 07:55:44 UTC
- Source record
- Official CVE record