{"id":"CVE-2018-7187","published":"2018-02-16T17:00:00Z","modified":"2024-08-05T06:24:10Z","title":"The \"go get\" implementation in Go 1.9.4, when the -insecure command-line option is used, does not validate the import…","vendor":null,"product":null,"tier":"core","eol":null,"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"The flaw lies in the \"go get\" command of Go 1.9.4 (the Go toolchain), where the import path validation in get/vcs.go only checks for the presence of \"://\" anywhere in the string. An attacker who can host a crafted web site can execute arbitrary OS commands on a system where \"go get\" is run with the -insecure option.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-29T07:23:59Z"},"cvss":null,"epss":{"score":0.63027,"percentile":0.992,"date":"2026-11-01","provenance":"source"},"kev":null,"vulncheckKev":null,"exploited":false,"otx":{"pulseCount":0,"pulses":[],"provenance":"machine"},"cwes":[],"references":[{"url":"https://lists.debian.org/debian-lts-announce/2018/02/msg00029.html","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://www.debian.org/security/2019/dsa-4380","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://security.gentoo.org/glsa/201804-12","tags":["vendor-advisory","x_refsource_GENTOO"]},{"url":"https://www.debian.org/security/2019/dsa-4379","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://github.com/golang/go/issues/23867","tags":["x_refsource_CONFIRM"]},{"url":"https://gist.github.com/SLAYEROWNER/b2a358f13ab267f2e9543bb9f9320ffc","tags":["x_refsource_MISC"]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"Go","package":"toolchain","vulnerableRanges":["<1.9.5",">=1.10.0-0, <1.10.1"],"patched":["1.9.5","1.10.1"],"from":["GO-2022-0203"],"provenance":"source"}],"advisories":[{"id":"GO-2022-0203","url":"https://osv.dev/vulnerability/GO-2022-0203","severity":null,"ecosystem":"Go","package":"toolchain","vulnerableRanges":["<1.9.5",">=1.10.0-0, <1.10.1"],"patched":["1.9.5","1.10.1"],"provenance":"source","from":"OSV"}],"euvd":{"id":"EUVD-2018-18929","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2018-18929","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":null,"exploitRefs":[],"flow":[],"timeline":[{"date":"2018-02-16","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2018-7187","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":null,"daysToKev":null},"priority":{"score":19.8,"factors":[{"name":"In a KEV catalog","points":0.0,"detail":"not listed"},{"name":"Recent KEV listing","points":0.0,"detail":"not listed"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.84,"detail":"percentile 0.9920"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":0.0,"detail":"none found"},{"name":"Mentioned in OTX pulses","points":0.0,"detail":"0 pulses"},{"name":"CVSS severity","points":0.0,"detail":"no CVSS"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]},"lineage":{"packageHistory":[{"cve":"CVE-2017-15041","published":"2017-10-05","fixed":"1.9.1","kev":false},{"cve":"CVE-2018-6574","published":"2018-02-07","fixed":"1.9.4","kev":false,"link":{"from":"CVE-2018-6574","to":"CVE-2018-7187","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:toolchain","fromFixed":"1.9.4","toFixed":"1.9.5","daysApart":9}]}},{"cve":"CVE-2018-7187","published":"2018-02-16","fixed":"1.10.1","kev":false},{"cve":"CVE-2018-16873","published":"2018-12-14","fixed":"1.11.3","kev":false,"link":{"from":"CVE-2018-7187","to":"CVE-2018-16873","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:toolchain","fromFixed":"1.10.1","toFixed":"1.10.6","daysApart":301}]}},{"cve":"CVE-2018-16874","published":"2018-12-14","fixed":"1.11.3","kev":false,"link":{"from":"CVE-2018-7187","to":"CVE-2018-16874","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:toolchain","fromFixed":"1.10.1","toFixed":"1.10.6","daysApart":301}]}},{"cve":"CVE-2020-28366","published":"2020-11-18","fixed":"1.15.5","kev":false}],"package":"Go:toolchain"}}