Skip to content
OpenAdvisories
Unscored CVE-2020-28366 BIT-golang-2020-28366EUVD-2020-20825GHSA-mwfg-6wv9-379fGO-2022-0475

Arbitrary code execution in go command with cgo in cmd/go and cmd/cgo

Published Nov 18, 2020 · Updated Aug 4, 2024 · Assigned by Go

Description

Code injection in the go command with cgo before Go 1.14.12 and Go 1.15.5 allows arbitrary code execution at build time via a malicious unquoted symbol name in a linked object file.

Affected products

VendorProductAffectedFixed
Go toolchain cmd/go < 1.14.12, 1.15.0-0 – < 1.15.5 1.14.12
Go toolchain cmd/cgo < 1.14.12, 1.15.0-0 – < 1.15.5 1.14.12

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.5-1 —
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS golang-1.13 +1 No fix yet —
Ubuntu 18.04 LTS golang-1.8 +2 No fix yet —
Ubuntu 16.04 LTS golang-1.6 +1 No fix yet —
Ubuntu 14.04 LTS golang-1.10 No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 22.04 LTS golang-1.13 No fix yet —
Ubuntu Pro 18.04 LTS golang-1.13 No fix yet —
Ubuntu Pro 16.04 LTS golang-1.13 No fix yet —
ReleasePackageFixed inAdvisory
RHEL 8 delve 1.4.1-1.module+el8.3.0+7840+63dfb1ed RHSA-2020:5493
RHEL 8 golang +7 1.14.12-1.module+el8.3.0+8784+380394dc RHSA-2020:5493
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Serverless 1 openshift-serverless-clients 0.18.4-2.el8 RHSA-2021:0145
Red Hat Devtools 2020 go-toolset-1.14 +9 1.14.12-1.el7_9 RHSA-2020:5333
ReleasePackageFixed inAdvisory
SLES 15 SP2 go1.14 1.14.12-1.26.1 SUSE-SU-2020:3369-1
SLES 15 SP2 go1.15 1.15.5-1.11.1 SUSE-SU-2020:3368-1
SLES 15 SP1 go1.14 1.14.12-1.26.1 SUSE-SU-2020:3369-1
SLES 15 SP1 go1.15 1.15.5-1.11.1 SUSE-SU-2020:3368-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.12-lp152.2.12.1 openSUSE-SU-2020:2067-1
openSUSE Leap 15.2 go1.15 1.15.5-lp152.2.1 openSUSE-SU-2020:2139-1
openSUSE Leap 15.1 go1.14 1.14.12-lp151.22.1 openSUSE-SU-2020:2047-1
ReleasePackageFixed inAdvisory
Alpine v3.24 go 1.15.5-r0 —
Alpine v3.23 go 1.15.5-r0 —
Alpine v3.22 go 1.15.5-r0 —
Alpine v3.21 go 1.15.5-r0 —
Alpine v3.20 go 1.15.5-r0 —
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 go 1.15.5-r0 —
Alpine v3.18 go 1.15.5-r0 —
Alpine v3.17 go 1.15.5-r0 —
Alpine v3.16 go 1.15.5-r0 —
Alpine v3.15 go 1.15.5-r0 —
Alpine v3.14 go 1.15.5-r0 —
Alpine v3.13 go 1.15.5-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 golang +6 1.15.5-1.amzn2.0.2 ALAS2-2021-1578

Azure Linux

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

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 delve 1.4.1-1.0.1.module+el8.3.0+7887+1b2c3dab ELSA-2020-5493
Oracle Linux 8 golang +7 1.14.12-1.module+el8.3.0+7887+1b2c3dab ELSA-2020-5493

Affected packages

EcosystemPackageAffectedFixedRecord
Go toolchain < 1.14.12 · >= 1.15.0-0, < 1.15.5 1.14.12, 1.15.5 GO-2022-0475

Advisories 13

References