Skip to content

cmd/go: improper validation of cgo flags can lead to remote code execution at build time #42556

Description

@katiehockman

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions