Vulnerability
CVE-2023-29405
The go command may execute arbitrary code at build time when using cgo. This may occur when running "go get" on a malicious module, or when running any other command which builds untrusted code. This is can by triggered by linker flags, specified via a "#cgo LDFLAGS" directive. Flags containing embedded spaces are mishandled, allowing disallowed flags to be smuggled through the LDFLAGS sanitization by including them in the argument of another flag. This only affects usage of the gccgo compiler.
55 advisories report this vulnerability, across 15 ecosystems.
Advisories
-
ALAS2-2023-2163
Amazon Linux 2 2017.12 - ALAS2-2023-2163: important priority package update for golang
-
ALAS2023-2023-269
Amazon Linux 2023 - ALAS2023-2023-269: Important priority package update for golang
-
ALPINE-CVE-2023-29405
The go command may execute arbitrary code at build time when using cgo. This may occur when running "go get" on a malicious module, or when running any other command which builds untrusted code. This is can by triggered…
- ALPINE-EDGE-CVE-2023-29405
-
ALSA-2023:3922
Critical: go-toolset:rhel8 security update
-
ALSA-2023:3923
Critical: go-toolset and golang security update
-
AZL-27110
CVE-2023-29405 affecting package golang for versions less than 1.20.7-1
-
AZL-27123
CVE-2023-29405 affecting package msft-golang for versions less than 1.20.7-1
-
AZL-37347
CVE-2023-29405 affecting package golang for versions less than 1.21.6-1
-
AZL-37499
CVE-2023-29405 affecting package golang for versions less than 1.21.6-1
-
AZL-52827
CVE-2023-29405 affecting package golang for versions less than 1.20.7-1
-
AZL-79012
CVE-2023-29405 affecting package golang 1.25.7-1
-
AZL-98760
CVE-2023-29405 affecting package golang 1.27.1-1
- CGA-296g-pqvq-4hv3
- CGA-2hc4-2vhc-ccx4
- CGA-3m64-ghvv-qm9w
- CGA-48rp-7jwq-hm82
- CGA-4w5x-rh35-57vc
- CGA-6c2j-xc3w-552m
- CGA-8mfr-8v5g-96cq
- CGA-952c-33m7-6828
- CGA-f33c-fmjr-jgvg
- CGA-g549-9x24-2jhf
- CGA-gghw-jh7c-4hf6
- CGA-h2rx-qfpm-rr23
- CGA-h56f-xrj9-3mhr
- CGA-hfp8-ff9p-7q3h
- CGA-j3vj-f572-vp6m
- CGA-p3vg-rgfc-wg3j
- CGA-p5hp-qhpw-79hc
- CGA-qcrm-g4wg-mv9m
- CGA-qrfw-qm57-gwvq
- CGA-qwf8-3h9x-9vj7
- CGA-rc7g-h9m5-m9qg
- CGA-rvqm-xf83-57c3
- CGA-vr3q-c4pg-85r6
- CGA-wv5f-px9q-w2mq
-
DEBIAN-CVE-2023-29405
The go command may execute arbitrary code at build time when using cgo. This may occur when running "go get" on a malicious module, or when running any other command which builds untrusted code. This is can by triggered…
-
ELSA-2023-3922
ELSA-2023-3922: go-toolset:ol8 security update (CRITICAL)
-
ELSA-2023-3923
ELSA-2023-3923: go-toolset and golang security update (CRITICAL)
-
GO-2023-1842
Improper sanitization of LDFLAGS with embedded spaces in go command with cgo in cmd/go
-
OESA-2023-1386
golang security update
-
OESA-2023-1499
golang security update
-
RHSA-2023:3920
Red Hat Security Advisory: go-toolset-1.19 and go-toolset-1.19-golang security update
-
RHSA-2023:3922
Red Hat Security Advisory: go-toolset:rhel8 security update
-
RHSA-2023:3923
Red Hat Security Advisory: go-toolset and golang security update
-
RLSA-2023:3923
Critical: go-toolset and golang security update
-
SUSE-SU-2023:2525-1
Security update for go1.19
-
SUSE-SU-2023:2526-1
Security update for go1.20
-
SUSEVEX-CVE-2023-29405
The go command may execute arbitrary code at build time when using cgo. This may occur when running "go get" on a malicious module, or when running any other command which builds untrusted code. This is can by triggered…
-
UBUNTU-CVE-2023-29405
The go command may execute arbitrary code at build time when using cgo. This may occur when running "go get" on a malicious module, or when running any other command which builds untrusted code. This is can by triggered…
-
USN-7061-1
golang-1.17 vulnerabilities
-
USN-7109-1
golang-1.18 vulnerabilities
-
openSUSE-SU-2024:12987-1
go1.19-1.19.10-1.1 on GA media
-
openSUSE-SU-2024:12988-1
go1.20-1.20.5-1.1 on GA media
References
- https://go.dev/cl/501224
- https://go.dev/issue/60306
- https://groups.google.com/g/golang-announce/c/q5135a9d924/m/j0ZoAJOHAwAJ
- https://lists.fedoraproject.org/archives/list/[email protected]/message/NZ2O6YCO2IZMZJELQGZYR2WAUNEDLYV6/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/XBS3IIK6ADV24C5ULQU55QLT2UE762ZX/
- https://pkg.go.dev/vuln/GO-2023-1842
- https://security.gentoo.org/glsa/202311-09
- https://security.netapp.com/advisory/ntap-20241206-0003/