UNKNOWN Go
Arbitrary code injection via the go command with cgo on Windows in cmd/go
GO-2021-0068 · BIT-golang-2021-3115 · CVE-2021-3115
Published · Modified
AI SAST
Find this class of vulnerability in your own code
Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.
Description
The go command may execute arbitrary code at build time when using cgo on Windows. This can be triggered by running go get on a malicious module, or any other time the code is built.
References
- FIX https://go.dev/cl/284783
- FIX https://go.googlesource.com/go/+/953d1feca9b21af075ad5fc8a3dad096d3ccc3a0
- REPORT https://go.dev/issue/43783
- WEB https://groups.google.com/g/golang-announce/c/mperVMGa98w/m/yo5W5wnvAAAJ
- FIX https://go.dev/cl/284780
- FIX https://go.googlesource.com/go/+/46e2e2e9d99925bbf724b12693c6d3e27a95d6a0
Ready to move
Start Securing
Free, no credit card | First findings in minutes