All reports
Medium

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

Affected versions

Affected versions
<1.9.5 || >=1.10.0-0 <1.10.1
Fixed version
1.10.1 · 1.9.5
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2018-7187

Probability of exploitation in the next 30 days: 63.03%

FIRST EPSS · 2026-11-20

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.

Links

Credits

  • Arthur Khashaev