You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 a malicious gcc flags specified via a #cgo directive.
katiehockman
changed the title
cmd/go: improper validation of cgo flags can lead to remote code execution at build time [Go 1.14]
cmd/go: improper validation of cgo flags can lead to remote code execution at build time
Nov 12, 2020
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 a malicious gcc flags specified via a #cgo directive.
Thanks to Imre Rad for reporting this issue.
This issue is CVE-2020-28367.
The text was updated successfully, but these errors were encountered: