CVE Database›Document archive›CVE-2018-7187

CVE-2018-7187

golang: arbitrary command execution via VCS path

Loading…

Severity

Moderate

Red Hat Product Security

7.1

CVSS 3.0

Review impact separately from score.

Published · February 16, 2018

Updated · November 22, 2025

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.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CVSS 3.0 · 7.1
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L

CWE-20 · Improper Input Validation