CVE-2018-7187
highpriority · attend · 57EPSS 0.630 · 99 %ileEURUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (8)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GO-2022-0203Remote command execution via "go get" command with "-insecure" option in cmd/go2022-08-09vendor · osvUS
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.
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (18)
External citations — patches, advisories, analysis.
- https://gist.github.com/SLAYEROWNER/b2a358f13ab267f2e9543bb9f9320ffccnnvd
- https://github.com/golang/go/issues/23867cnnvd
- https://lists.debian.org/debian-lts-announce/2018/02/msg00029.htmlcnnvd
- https://security.gentoo.org/glsa/201804-12cnnvd
- https://www.debian.org/security/2019/dsa-4379cnnvd
- https://www.debian.org/security/2019/dsa-4380cnnvd
- https://gist.github.com/SLAYEROWNER/b2a358f13ab267f2e9543bb9f9320ffcenisa_euvd
- https://github.com/golang/go/issues/23867enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan