Paper/Archive/CVE-2023-29402

CVE-2023-29402

Go toolchain cmd/go — Code injection via go command with cgo in cmd/go

Description · from the CVE record

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).

Affected

ProductAffectedFixed inSource
cmd/go< 1.19.101.19.10CNA
cmd/go1.20.0-0 – < 1.20.51.20.5CNA

Scores by source

CISA ADP9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CISA ADPSSVCExploitation: none · Automatable: yes · Technical impact: total

References

refgo.dev/issue/60167refgo.dev/cl/501226refgroups.google.com/g/golang-announce/c/q5135a9d924/m/j0ZoAJOHAwAJrefpkg.go.dev/vuln/GO-2023-1839reflists.fedoraproject.org/archives/list/[email protected]/message/XBS3IIK6ADV24C5ULQU55QLT2UE762ZXreflists.fedoraproject.org/archives/list/[email protected]/message/NZ2O6YCO2IZMZJELQGZYR2WAUNEDLYV6refsecurity.gentoo.org/glsa/202311-09refsecurity.netapp.com/advisory/ntap-20241213-0004