Vulnerability
CVE-2023-29402
The go command may generate unexpected code at build time when using cgo. This may result in unexpected behavior when running a go program which uses cgo. This may occur when running an untrusted module which contains directories with newline characters in their names. Modules which are retrieved using the go command, i.e. via "go get", are not affected (modules retrieved using GOPATH-mode, i.e. GO111MODULE=off, may be affected).
52 advisories report this vulnerability, across 15 ecosystems.
Advisories
-
ALAS2-2023-2131
Amazon Linux 2 2017.12 - ALAS2-2023-2131: important priority package update for golang
-
ALAS2023-2023-269
Amazon Linux 2023 - ALAS2023-2023-269: Important priority package update for golang
-
ALPINE-CVE-2023-29402
The go command may generate unexpected code at build time when using cgo. This may result in unexpected behavior when running a go program which uses cgo. This may occur when running an untrusted module which contains…
- ALPINE-EDGE-CVE-2023-29402
-
ALSA-2023:3922
Critical: go-toolset:rhel8 security update
-
ALSA-2023:3923
Critical: go-toolset and golang security update
-
AZL-27111
CVE-2023-29402 affecting package golang for versions less than 1.20.7-1
-
AZL-27122
CVE-2023-29402 affecting package msft-golang for versions less than 1.19.10-1
-
AZL-37329
CVE-2023-29402 affecting package golang for versions less than 1.21.6-1
-
AZL-37353
CVE-2023-29402 affecting package golang for versions less than 1.21.6-1
-
AZL-47225
CVE-2023-29402 affecting package golang for versions less than 1.22.7-2
- CGA-2xpf-jqvg-rg2h
- CGA-9xg3-265f-2pw7
- CGA-cq4f-pm63-w7gc
- CGA-cxx8-mv8c-mgr8
- CGA-fmjc-42vm-g8cw
- CGA-fwmv-33cg-7494
- CGA-gf4x-vpr8-35cr
- CGA-h662-36jr-xqpj
- CGA-m64f-grh9-786p
- CGA-mhqx-2q38-f7c8
- CGA-p625-9qwp-c4qw
- CGA-pfm4-jh99-hx3g
- CGA-q69g-qm46-85w3
- CGA-qq46-c96h-4925
- CGA-r92f-w86r-2wmw
- CGA-r95q-cfj7-38xm
- CGA-rw9p-j8fc-fjrc
- CGA-v2r5-ccr4-f42w
- CGA-v68v-624q-vm6j
- CGA-w42x-qmw7-9gp4
- CGA-wr4r-4rvw-jcp3
- CGA-wwfg-f4h5-8g94
- CGA-x5h8-hcw5-fr3c
- CGA-xx92-fxq6-wh75
-
DEBIAN-CVE-2023-29402
The go command may generate unexpected code at build time when using cgo. This may result in unexpected behavior when running a go program which uses cgo. This may occur when running an untrusted module which contains…
-
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-1839
Code injection via go command with cgo in cmd/go
-
OESA-2023-1386
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-29402
The go command may generate unexpected code at build time when using cgo. This may result in unexpected behavior when running a go program which uses cgo. This may occur when running an untrusted module which contains…
-
UBUNTU-CVE-2023-29402
The go command may generate unexpected code at build time when using cgo. This may result in unexpected behavior when running a go program which uses cgo. This may occur when running an untrusted module which contains…
-
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/501226
- https://go.dev/issue/60167
- 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-1839
- https://security.gentoo.org/glsa/202311-09
- https://security.netapp.com/advisory/ntap-20241213-0004/