Vulnerability
CVE-2023-29404
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. The arguments for a number of flags which are non-optional are incorrectly considered optional, allowing disallowed flags to be smuggled through the LDFLAGS sanitization. This affects usage of both the gc and gccgo compilers.
53 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-29404
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-29404
-
ALSA-2023:3922
Critical: go-toolset:rhel8 security update
-
ALSA-2023:3923
Critical: go-toolset and golang security update
-
AZL-27140
CVE-2023-29404 affecting package golang for versions less than 1.20.7-1
-
AZL-27150
CVE-2023-29404 affecting package msft-golang for versions less than 1.19.10-1
-
AZL-37337
CVE-2023-29404 affecting package golang for versions less than 1.21.6-1
-
AZL-37510
CVE-2023-29404 affecting package golang for versions less than 1.21.6-1
-
AZL-47146
CVE-2023-29404 affecting package golang for versions less than 1.22.7-2
- CGA-2f2m-9gpv-4x7c
- CGA-3cgf-8v2g-85rv
- CGA-5pm8-fp89-47vf
- CGA-5rr7-3rq4-m7q4
- CGA-77w6-2v8w-gcfr
- CGA-8c9w-x3rg-8x8p
- CGA-8m44-9v23-2hrh
- CGA-95h2-47qv-5777
- CGA-f3wq-3prr-qx9w
- CGA-fj79-jxxq-8r9g
- CGA-h278-pwg3-3m2p
- CGA-h9gh-f4vc-677g
- CGA-jxhv-4mfr-f2m3
- CGA-m8j4-wq33-qwm6
- CGA-mwpp-c47f-fvfj
- CGA-mxmq-3mgg-vrwg
- CGA-mxw2-66rf-6fr9
- CGA-pfm6-wv55-j3rg
- CGA-q9qx-mf34-8vm6
- CGA-qcrc-5g76-w75r
- CGA-r2r8-gr85-2w5j
- CGA-r9cw-gc37-84cw
- CGA-rvx2-26w4-6cfq
- CGA-wg76-33jf-wr63
-
DEBIAN-CVE-2023-29404
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-1841
Improper handling of non-optional LDFLAGS 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-29404
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-29404
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/501225
- https://go.dev/issue/60305
- 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-1841
- https://security.gentoo.org/glsa/202311-09
- https://security.netapp.com/advisory/ntap-20241115-0009/