Vulnerabilities · 2023 · Golang
CVE-2023-29404
Golang Go vulnerability
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.
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-1841 · Vendor Advisory
- go.dev/cl/501225 · Patch
- go.dev/issue/60305
- 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-20241115-0009/
- nvd.nist.gov/vuln/detail/CVE-2023-29404
- cve.org/CVERecord?id=CVE-2023-29404
More vulnerabilities in Golang products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.