Vulnerabilities · 2023 · Golang
CVE-2023-29402
Golang Go vulnerability
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).
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Go, Fedora. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Golang Go runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- pkg.go.dev/vuln/GO-2023-1839 · Vendor Advisory
- go.dev/cl/501226 · Patch
- go.dev/issue/60167
- groups.google.com/g/golang-announce/c/q5135a9d924/m/j0ZoAJOHAwAJ
- lists.fedoraproject.org/archives/list/[email protected]/message/NZ2
- lists.fedoraproject.org/archives/list/[email protected]/message/XBS
- security.gentoo.org/glsa/202311-09
- security.netapp.com/advisory/ntap-20241213-0004/
- nvd.nist.gov/vuln/detail/CVE-2023-29402
- cve.org/CVERecord?id=CVE-2023-29402
More vulnerabilities in Golang products
CVE-2026-42506CVE-2026-42502CVE-2026-27136CVE-2026-25681CVE-2026-25680CVE-2025-68121CVE-2025-68119CVE-2025-61732All 172
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.