UNKNOWN Go

Arbitrary code execution via the go command with cgo in cmd/go

GO-2022-0476 · BIT-golang-2020-28367 · CVE-2020-28367

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 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.

Ready to move

Start Securing

Free, no credit card | First findings in minutes