UNKNOWN Go

Remote command execution via "go get" command with "-insecure" option in cmd/go

GO-2022-0203 · CVE-2018-7187

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 get" command is vulnerable to remote code execution.

When the -insecure command-line option is used, "go get" does not validate the import path (get/vcs.go only checks for "://" anywhere in the string), which allows remote attackers to execute arbitrary OS commands via a crafted web site.

Ready to move

Start Securing

Free, no credit card | First findings in minutes