Vulnerabilities · 2023 · Golang
CVE-2023-29405
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. Flags containing embedded spaces are mishandled, allowing disallowed flags to be smuggled through the LDFLAGS sanitization by including them in the argument of another flag. This only affects usage of the gccgo compiler.
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-1842 · Vendor Advisory
- go.dev/cl/501224 · Patch
- groups.google.com/g/golang-announce/c/q5135a9d924/m/j0ZoAJOHAwAJ · Third Party Advisory
- go.dev/issue/60306
- 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-20241206-0003/
- nvd.nist.gov/vuln/detail/CVE-2023-29405
- cve.org/CVERecord?id=CVE-2023-29405
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.