CVEfocus › CVE database › CVE-2020-28367

CVE-2020-28367Arbitrary code execution via the go command with cgo in cmd/go

CVSS 7.5 HighEPSS 2.4% (higher than 84% of CVEs)Published 2020-11-18Updated 2024-08-04Assigner: Go

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 malicious gcc flags specified via a #cgo directive.

What to do

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

Ubuntu has 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

22Fixed
13Fix pending
45Will not fix

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 22.04golang-1.13Fix pendingUBUNTU-CVE-2020-28367
Ubuntu 20.04golang-1.13Fix pendingUBUNTU-CVE-2020-28367
Ubuntu 20.04golang-1.14Fix pendingUBUNTU-CVE-2020-28367
Ubuntu 18.04golang-1.10Fix pendingUBUNTU-CVE-2020-28367
Ubuntu 18.04golang-1.13Fix pendingUBUNTU-CVE-2020-28367
Ubuntu 18.04golang-1.8Fix pendingUBUNTU-CVE-2020-28367
Ubuntu 18.04golang-1.9Fix pendingUBUNTU-CVE-2020-28367
Ubuntu 16.04golang-1.10Fix pendingUBUNTU-CVE-2020-28367
Ubuntu 16.04golang-1.13Fix pendingUBUNTU-CVE-2020-28367
Ubuntu 16.04golang-1.6Fix pendingUBUNTU-CVE-2020-28367
Ubuntu 14.04golangFix pending
Ubuntu 14.04golang-1.10Fix pendingUBUNTU-CVE-2020-28367
Ubuntu 14.04golang-1.6Fix pending
Red Hat Enterprise Linux 8delveFixed0:1.4.1-1.module+el8.3.0+7840+63dfb1edRHSA-2020:5493
Red Hat Enterprise Linux 8go-toolsetFixed0:1.14.12-1.module+el8.3.0+8784+380394dcRHSA-2020:5493
Red Hat Enterprise Linux 8golangFixed0:1.14.12-1.module+el8.3.0+8784+380394dcRHSA-2020:5493
Red Hat Enterprise Linux 8golang-binFixed0:1.14.12-1.module+el8.3.0+8784+380394dcRHSA-2020:5493
Red Hat Enterprise Linux 8golang-docsFixed0:1.14.12-1.module+el8.3.0+8784+380394dcRHSA-2020:5493
Red Hat Enterprise Linux 8golang-miscFixed0:1.14.12-1.module+el8.3.0+8784+380394dcRHSA-2020:5493
Red Hat Enterprise Linux 8golang-raceFixed0:1.14.12-1.module+el8.3.0+8784+380394dcRHSA-2020:5493
Red Hat Enterprise Linux 8golang-srcFixed0:1.14.12-1.module+el8.3.0+8784+380394dcRHSA-2020:5493
Red Hat Enterprise Linux 8golang-testsFixed0:1.14.12-1.module+el8.3.0+8784+380394dcRHSA-2020:5493
Red Hat Enterprise Linux 7cppWill not fix
Out of support scope
Red Hat Enterprise Linux 7gccWill not fix
Out of support scope
Red Hat Enterprise Linux 7gcc-c++Will not fix
Out of support scope
Red Hat Enterprise Linux 7gcc-gfortranWill not fix
Out of support scope
Red Hat Enterprise Linux 7gcc-gnatWill not fix
Out of support scope
Red Hat Enterprise Linux 7gcc-goWill not fix
Out of support scope
Red Hat Enterprise Linux 7gcc-objcWill not fix
Out of support scope
Red Hat Enterprise Linux 7gcc-objc++Will not fix
Out of support scope
Red Hat Enterprise Linux 7gcc-plugin-develWill not fix
Out of support scope
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 7libasanWill not fix
Out of support scope
Red Hat Enterprise Linux 7libasan-staticWill not fix
Out of support scope
Red Hat Enterprise Linux 7libatomicWill not fix
Out of support scope
Red Hat Enterprise Linux 7libatomic-staticWill not fix
Out of support scope
Red Hat Enterprise Linux 7libgccWill not fix
Out of support scope
Red Hat Enterprise Linux 7libgfortranWill not fix
Out of support scope
Red Hat Enterprise Linux 7libgfortran-staticWill not fix
Out of support scope
Red Hat Enterprise Linux 7libgnatWill not fix
Out of support scope
Red Hat Enterprise Linux 7libgnat-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7libgnat-staticWill not fix
Out of support scope
Red Hat Enterprise Linux 7libgoWill not fix
Out of support scope
Red Hat Enterprise Linux 7libgo-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7libgo-staticWill not fix
Out of support scope
Red Hat Enterprise Linux 7libgompWill not fix
Out of support scope
Red Hat Enterprise Linux 7libitmWill not fix
Out of support scope
Red Hat Enterprise Linux 7libitm-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7libitm-staticWill not fix
Out of support scope
Red Hat Enterprise Linux 7libmudflapWill not fix
Out of support scope
Red Hat Enterprise Linux 7libmudflap-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7libmudflap-staticWill not fix
Out of support scope
Red Hat Enterprise Linux 7libobjcWill not fix
Out of support scope
Red Hat Enterprise Linux 7libquadmathWill not fix
Out of support scope
Red Hat Enterprise Linux 7libquadmath-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7libquadmath-staticWill not fix
Out of support scope
Red Hat Enterprise Linux 7libstdc++Will not fix
Out of support scope
Red Hat Enterprise Linux 7libstdc++-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7libstdc++-docsWill not fix
Out of support scope
Red Hat Enterprise Linux 7libstdc++-staticWill not fix
Out of support scope
Red Hat Enterprise Linux 7libtsanWill not fix
Out of support scope
Red Hat Enterprise Linux 7libtsan-staticWill not fix
Out of support scope
Alpine Linux 3.24goFixed1.15.5-r0ALPINE-CVE-2020-28367
Alpine Linux 3.23goFixed1.15.5-r0ALPINE-CVE-2020-28367
Alpine Linux 3.22goFixed1.15.5-r0ALPINE-CVE-2020-28367
Alpine Linux 3.21goFixed1.15.5-r0ALPINE-CVE-2020-28367
Alpine Linux 3.20goFixed1.15.5-r0ALPINE-CVE-2020-28367
Alpine Linux 3.19goFixed1.15.5-r0ALPINE-CVE-2020-28367
Alpine Linux 3.18goFixed1.15.5-r0ALPINE-CVE-2020-28367
Alpine Linux 3.17goFixed1.15.5-r0ALPINE-CVE-2020-28367
Alpine Linux 3.16goFixed1.15.5-r0ALPINE-CVE-2020-28367
Alpine Linux 3.15goFixed1.15.5-r0ALPINE-CVE-2020-28367
Alpine Linux 3.14goFixed1.15.5-r0ALPINE-CVE-2020-28367
Alpine Linux 3.13goFixed1.15.5-r0ALPINE-CVE-2020-28367
Go librarytoolchainFixed1.14.12GO-2022-0476

What the vendor says

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

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.