CVE-2018-7187

NameCVE-2018-7187
DescriptionThe "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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more)
ReferencesDLA-1294-1, DSA-4379-1, DSA-4380-1
NVD severityhigh (attack range: remote)
Debian Bugs895663, 895664, 895665

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
golang (PTS)jessie2:1.3.3-1vulnerable
jessie (security)2:1.3.3-1+deb8u1vulnerable
golang-1.7 (PTS)stretch1.7.4-2vulnerable
stretch (security)1.7.4-2+deb9u1fixed
golang-1.8 (PTS)stretch1.8.1-1vulnerable
stretch (security)1.8.1-1+deb9u1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
golangsource(unstable)(unfixed)high
golangsourcewheezy2:1.0.2-1.1+deb7u3highDLA-1294-1
golang-1.10source(unstable)1.10.1-1high
golang-1.7source(unstable)(unfixed)high895665
golang-1.7sourcestretch1.7.4-2+deb9u1highDSA-4379-1
golang-1.8source(unstable)(unfixed)high895664
golang-1.8sourcestretch1.8.1-1+deb9u1highDSA-4380-1
golang-1.9source(unstable)(unfixed)high895663

Notes

[jessie] - golang <ignored> (Minor issue)
https://github.com/golang/go/issues/23867
https://github.com/golang/go/commit/c941e27e70c3e06e1011d2dd71d72a7a06a9bcbc

Search for package or bug name: Reporting problems