RULE(RULE ID:321871)

Rule General Information
Release Date: 2019-06-20
Rule Name: Google Golang GET Command Injection Vulnerability (CVE-2018-7187)
Severity:
CVE ID:
Rule Protection Details
Description: The "go get" implementation in Go 1.9.4, when the -insecure command-line option is used, 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.
Impact: An attacker can execute arbitrary command via a successful exploit in the context of the vulnerable software.
Affected OS: Windows, Linux, FreeBSD, Solaris, Other Unix, Network Device, Mac OS, iOS, Android, Others
Reference: https://gist.github.com/SLAYEROWNER/b2a358f13ab267f2e9543bb9f9320ffc
https://github.com/golang/go/issues/23867
https://lists.debian.org/debian-lts-announce/2018/02/msg00029.html
https://security.gentoo.org/glsa/201804-12
Solutions
The vendors have released upgrade patches to fix vulnerabilities, please visit:
https://github.com/golang/go/issues/23867