RCE in Golang Go
CVE-2018-7187
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.
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.630 (99.2th percentile), scored .
High probability of exploitation in the next 30 days — patch promptly. 99th percentile — 99.2% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.630 · newest: 0.630 · change: 0.000
Affected products
- Golang Go
- Debian Linux — versions 7.0, 9.0
Weakness classification (CWE)
Public proof-of-concept exploits
References
- lists.debian.org/debian-lts-announce/2018/02/msg00029.html (mailing-list, Mailing List, Third Party Advisory)
- www.debian.org/security/2019/dsa-4380 (vendor-advisory, Third Party Advisory)
- security.gentoo.org/glsa/201804-12 (vendor-advisory, Third Party Advisory)
- www.debian.org/security/2019/dsa-4379 (vendor-advisory, Third Party Advisory)
- github.com/golang/go/issues/23867 (Exploit, Third Party Advisory, Issue Tracking)
- gist.github.com/SLAYEROWNER/b2a358f13ab267f2e9543bb9f9320ffc (Third Party Advisory)
Frequently asked questions
- What is CVE-2018-7187?
- CVE-2018-7187 is a high-severity vulnerability in Golang Go, classified under OS Command Injection. CVSS score: 8.8/10. Published 2018-02-16.
- How severe is CVE-2018-7187?
- High severity. CVSS v3 base score is 8.8 out of 10.
- Is CVE-2018-7187 known to be exploited?
- 1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.