CVE-2018-7187

Public Exploit

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.

Category

8.8
CVSS
Severity: High
CVSS 3.1 •
CVSS 2.0 •
EPSS 18.77% Top 10%
Vendor Advisory debian.org Vendor Advisory gentoo.org Vendor Advisory debian.org
Affected: n/a n/a
Published at:
Updated at:

References

Link Tags
https://lists.debian.org/debian-lts-announce/2018/02/msg00029.html third party advisory mailing list
https://www.debian.org/security/2019/dsa-4380 third party advisory vendor advisory
https://security.gentoo.org/glsa/201804-12 third party advisory vendor advisory
https://www.debian.org/security/2019/dsa-4379 third party advisory vendor advisory
https://github.com/golang/go/issues/23867 third party advisory issue tracking exploit
https://gist.github.com/SLAYEROWNER/b2a358f13ab267f2e9543bb9f9320ffc third party advisory

Frequently Asked Questions

What is the severity of CVE-2018-7187?
CVE-2018-7187 has been scored as a high severity vulnerability.
How to fix CVE-2018-7187?
To fix CVE-2018-7187, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2018-7187 being actively exploited in the wild?
It is possible that CVE-2018-7187 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~19% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.