CVE-2018-7187
HIGH 8.8CVSS 3.1Remote command execution via "go get" command with "-insecure" option in cmd/go
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.
- Published
- 16 Feb 2018
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-78
- Also known as
- GO-2022-0203
- Sources
- NVDJSONOSV GO-2022-0203JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 9.3 | AV:N/AC:M/Au:N/C:C/I:C/A:C |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | golang | gocpe:2.3:a:golang:go:*:*:*:*:*:*:*:* |
< 1.9.5 | 1.9.5 |
| NVD | golang | gocpe:2.3:a:golang:go:*:*:*:*:*:*:*:* |
>= 1.10, < 1.10.1 | 1.10.1 |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:* |
= 7.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| OSV | Go | toolchain | < 1.9.5; >= 1.10.0-0, < 1.10.1 | 1.9.5, 1.10.1 |
References
- https://gist.github.com/SLAYEROWNER/b2a358f13ab267f2e9543bb9f9320ffc · Third Party Advisory
- https://github.com/golang/go/issues/23867 · Exploit, Issue Tracking, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2018/02/msg00029.html · Mailing List, Third Party Advisory
- https://security.gentoo.org/glsa/201804-12 · Third Party Advisory
- https://www.debian.org/security/2019/dsa-4379 · Third Party Advisory
- https://www.debian.org/security/2019/dsa-4380 · Third Party Advisory
- https://go.dev/cl/94603 · FIX
- https://go.googlesource.com/go/+/c941e27e70c3e06e1011d2dd71d72a7a06a9bcbc · FIX
- https://go.dev/issue/23867 · REPORT
- https://groups.google.com/g/golang-announce/c/IkPkOF8JqLs/m/TFBbWHJYAwAJ · WEB
History
- 25 Nov 2026 20:20 UTC · NVD: first stored (published 16 Feb 2018)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 9 Aug 2022)