CVE-2020-28367

NameCVE-2020-28367
DescriptionCode 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-2460-1, DLA-3395-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
golang-1.11 (PTS)buster1.11.6-1+deb10u4vulnerable
buster (security)1.11.6-1+deb10u7fixed
golang-1.15 (PTS)bullseye1.15.15-1~deb11u4fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
golang-1.11sourcebuster1.11.6-1+deb10u6DLA-3395-1
golang-1.11source(unstable)(unfixed)
golang-1.15source(unstable)1.15.5-1
golang-1.7source(unstable)(unfixed)
golang-1.8sourcestretch1.8.1-1+deb9u2DLA-2460-1
golang-1.8source(unstable)(unfixed)

Notes

[stretch] - golang-1.7 <ignored> (validation of cgo flags first introduced in golang-1.8 / CVE-2018-6574)
https://groups.google.com/g/golang-announce/c/NpBGTTmKzpM/m/fLguyiM2CAAJ
https://github.com/golang/go/issues/42556
Fixed by: https://github.com/golang/go/commit/da7aa86917811a571e6634b45a457f918b8e6561 (go1.16beta1)
Regression: https://github.com/golang/go/commit/782cf560db4c919790fdb476d1bbe18e5ddf5ffd (go1.16beta1)

Search for package or bug name: Reporting problems