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 on…

CVE-2018-7187 affects 4 listed versions of Go in the Dawnsentry catalogue.

8.8CVSS high
None knownexploitation
63%EPSS (next 30 days)
16 February 2018published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

Go

4 of 250 listed versions are affected. Fixed in 1.10.1, 1.9.5. The newest release, 1.27.4, is not affected.

1.10 1.9.4 1.9.3 1.9.2

What it is

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:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (NVD)

Published by MITRE on 16 February 2018. Last changed 17 June 2026.

Sources

Check one version you run: look CVE-2018-7187 up, or pick a product and version in the quick lookup.

Updated 1 December 2026.