GO-2022-0476
Arbitrary code execution via the go command with cgo in cmd/go
En bref
- Publiée
- Mise à jour
- CVE
- CVE-2020-28367
- Alias
- BIT-golang-2020-28367
Description
The go command may execute arbitrary code at build time when cgo is in use. This may occur when running go get on a malicious package, or any other command that builds untrusted code. This can be caused by malicious gcc flags specified via a cgo directive.
Paquets affectés
| Paquet | Versions |
|---|---|
| Go · toolchain | introduced 0, fixed 1.14.12, introduced 1.15.0-0, fixed 1.15.5 |
Références
- https://go.dev/cl/267277 FIX
- https://go.googlesource.com/go/+/da7aa86917811a571e6634b45a457f918b8e6561 FIX
- https://go.dev/issue/42556 REPORT
- https://groups.google.com/g/golang-announce/c/NpBGTTmKzpM WEB
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — Go Vulnerability Database |