Bug 1546386 (CVE-2018-7187) - CVE-2018-7187 golang: arbitrary command execution via VCS path
Summary: CVE-2018-7187 golang: arbitrary command execution via VCS path
Alias: CVE-2018-7187
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On: 1546387 1546388 1565588 1566229 1567013 1567014 1611188
Blocks: 1546392
TreeView+ depends on / blocked
Reported: 2018-02-16 22:42 UTC by Laura Pardo
Modified: 2023-09-20 14:11 UTC (History)
28 users (show)

Fixed In Version: golang 1.9.5, golang 1.10.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2021-10-21 19:55:01 UTC

Attachments (Terms of Use)

Description Laura Pardo 2018-02-16 22:42:02 UTC
A flaw was found in Go Lang. 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.

External References:

Upstream Patch:

Comment 1 Laura Pardo 2018-02-16 22:43:26 UTC
Created golang tracking bugs for this issue:

Affects: epel-6 [bug 1546387]
Affects: fedora-all [bug 1546388]

Comment 2 Joshua Padman 2018-02-19 00:53:33 UTC
golang was included in Red Hat OpenStack 8 & 9 operational tools only as a technical preview for customers, it was provided without support and is not intended to be deployed in production.

Note You need to log in before you can comment on or make changes to this bug.