Skip to content
OpenAdvisories
Unscored CVE-2021-3115 BIT-golang-2021-3115EUVD-2021-26467GHSA-79cw-x93g-q95pGO-2021-0068

Arbitrary code injection via the go command with cgo on Windows in cmd/go

Published Jan 26, 2021 · Updated Aug 3, 2024 · Assigned by mitre

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

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 11 golang-1.15 1.15.7-1 —
ReleasePackageFixed inAdvisory
RHEL 8 delve 1.5.0-2.module+el8.4.0+8864+58b0fcdb RHSA-2021:1746
RHEL 8 golang +7 1.15.7-1.module+el8.4.0+9580+3b0e6c24 RHSA-2021:1746
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Serverless 1 openshift-serverless-clients 0.20.0-6.el8 RHSA-2021:2095, RHSA-2021:1339

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 delve 1.5.0-2.module+el8.4.0+396+d2d16ae3 RLSA-2021:1746
Rocky Linux 8 golang +1 1.15.7-1.module+el8.4.0+396+d2d16ae3 RLSA-2021:1746
ReleasePackageFixed inAdvisory
SLES 15 SP2 go1.14 1.14.14-1.32.1 SUSE-SU-2021:0222-1
SLES 15 SP2 go1.15 1.15.7-1.17.1 SUSE-SU-2021:0223-1
SLES 15 SP1 go1.14 1.14.14-1.32.1 SUSE-SU-2021:0222-1
SLES 15 SP1 go1.15 1.15.7-1.17.1 SUSE-SU-2021:0223-1
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP1 go1.14 1.14.14-1.32.1 SUSE-SU-2021:0222-1
SLES for SAP 15 SP1 go1.15 1.15.7-1.17.1 SUSE-SU-2021:0223-1
SLE HPC 15 SP1 go1.14 1.14.14-1.32.1 SUSE-SU-2021:0222-1
SLE HPC 15 SP1 go1.15 1.15.7-1.17.1 SUSE-SU-2021:0223-1
SUSE Manager Server 4.0 go1.14 1.14.14-1.32.1 SUSE-SU-2021:0222-1
SUSE Manager Server 4.0 go1.15 1.15.7-1.17.1 SUSE-SU-2021:0223-1
SUSE Manager Retail Branch Server 4.0 go1.14 1.14.14-1.32.1 SUSE-SU-2021:0222-1
SUSE Manager Retail Branch Server 4.0 go1.15 1.15.7-1.17.1 SUSE-SU-2021:0223-1
SUSE Manager Proxy 4.0 go1.14 1.14.14-1.32.1 SUSE-SU-2021:0222-1
SUSE Manager Proxy 4.0 go1.15 1.15.7-1.17.1 SUSE-SU-2021:0223-1
SUSE Enterprise Storage 6 go1.14 1.14.14-1.32.1 SUSE-SU-2021:0222-1
SUSE Enterprise Storage 6 go1.15 1.15.7-1.17.1 SUSE-SU-2021:0223-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed go1.14 1.14.15-1.6 openSUSE-SU-2024:10807-1
openSUSE Tumbleweed go1.15 1.15.15-1.2 openSUSE-SU-2024:10808-1
openSUSE Leap 15.2 go1.14 1.14.14-lp152.2.18.1 openSUSE-SU-2021:0194-1
openSUSE Leap 15.2 go1.15 1.15.7-lp152.8.1 openSUSE-SU-2021:0192-1
openSUSE Leap 15.1 go1.14 1.14.14-lp151.28.1 openSUSE-SU-2021:0190-1
ReleasePackageFixed inAdvisory
Alpine v3.24 go 1.15.7-r0 —
Alpine v3.23 go 1.15.7-r0 —
Alpine v3.22 go 1.15.7-r0 —
Alpine v3.21 go 1.15.7-r0 —
Alpine v3.20 go 1.15.7-r0 —
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 go 1.15.7-r0 —
Alpine v3.18 go 1.15.7-r0 —
Alpine v3.17 go 1.15.7-r0 —
Alpine v3.16 go 1.15.7-r0 —
Alpine v3.15 go 1.15.7-r0 —
Alpine v3.14 go 1.15.7-r0 —
Alpine v3.13 go 1.15.7-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 golang +6 1.15.8-1.amzn2.0.1 ALAS2-2021-1609

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 python-tensorboard 2.16.2-1 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 delve 1.5.0-2.0.1.module+el8.4.0+20021+8a86d991 ELSA-2021-1746
Oracle Linux 8 golang +7 1.15.7-1.module+el8.4.0+20021+8a86d991 ELSA-2021-1746

Affected packages

EcosystemPackageAffectedFixedRecord
Go toolchain < 1.14.14 · >= 1.15.0-0, < 1.15.7 1.14.14, 1.15.7 GO-2021-0068

Advisories 13

References