Every CVE Search/ Get API key

CVE-2018-7187

The "go get" implementation in Go 1.9.4, when the -insecure command-line option is used, does not...

8.8 HighFix available

CVE-2018-7187 is a high vulnerability (CVSS 8.8) in Golang Go, published February 16, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 63.0%, the 99th percentile. Fixed in golang 2:1.0.2-1.1+deb7u3.

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
Required

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

63.0%Up 61.1 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 8.8

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.

Record
CVE-2018-7187
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS 2.0
9.3 HighAV:N/AC:M/Au:N/C:C/I:C/A:C
Weakness
CWE-78
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2018-7187
Updated
2026-11-02
EUVDEUVD-2018-18929 No score

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.

Record
EUVD-2018-18929
Updated
2026-11-03
GitHub AdvisoriesGHSA-44r2-v58f-9q85 8.8

The "go get" implementation in Go 1.9.4, when the -insecure command-line option is used, does not...

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.

Record
GHSA-44r2-v58f-9q85
CVSS 3.0
8.8 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness
CWE-78
Updated
2026-11-02
OSV 8.8

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.

Record
CVE-2018-7187
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2018-7187 8.8

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.

Record
UBUNTU-CVE-2018-7187
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
Show 6 moreShow less
OSVGO-2022-0203 No score

Remote command execution via "go get" command with "-insecure" option in cmd/go

The "go get" command is vulnerable to remote code execution.

When the -insecure command-line option is used, "go get" 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.

Record
GO-2022-0203
Updated
2026-11-02
OSVMGASA-2018-0238 No score

Updated golang packages fix security vulnerability

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 (CVE-2018-7187)

Record
MGASA-2018-0238
Updated
2026-11-02
OSVopenSUSE-SU-2018:4302-1 No score

Security update for go

This update for go fixes the following issues:

  • golang: arbitrary command execution via VCS path (bsc#1081495, CVE-2018-7187)
  • Make profile.d/go.sh no longer set GOROOT=, in order to make switching between versions no longer break. This ends up removing the need for go.sh entirely (because GOPATH is also set automatically) (boo#1119634)
  • Fix a regression that broke go get for import path patterns containing '...' (bsc#1119706)

Additionally, the package go1.10 has been added.

This update was imported from the SUSE:SLE-15:Update update project.

Record
openSUSE-SU-2018:4302-1
Updated
2026-11-02
OSVopenSUSE-SU-2024:10802-1 No score

go-1.17-1.1 on GA media

These are all security issues fixed in the go-1.17-1.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:10802-1
Updated
2026-11-02
OSVopenSUSE-SU-2024:10812-1 No score

go1.9-1.9.7-11.2 on GA media

These are all security issues fixed in the go1.9-1.9.7-11.2 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:10812-1
Updated
2026-11-02
OSVSUSE-SU-2018:4297-1 No score

Security update for containerd, docker and go

This update for containerd, docker and go fixes the following issues:

containerd and docker:

  • Add backport for building containerd (bsc#1102522, bsc#1113313)
  • Upgrade to containerd v1.1.2, which is required for Docker v18.06.1-ce. (bsc#1102522)
  • Enable seccomp support on SLE12 (fate#325877)
  • Update to containerd v1.1.1, which is the required version for the Docker v18.06.0-ce upgrade. (bsc#1102522)
  • Put containerd under the podruntime slice (bsc#1086185)
  • 3rd party registries used the default Docker certificate (bsc#1084533)
  • Handle build breakage due to missing 'export GOPATH' (caused by resolution of boo#1119634). I believe Docker is one of the only packages with this problem.

go:

  • golang: arbitrary command execution via VCS path (bsc#1081495, CVE-2018-7187)
  • Make profile.d/go.sh no longer set GOROOT=, in order to make switching between versions no longer break. This ends up removing the need for go.sh entirely (because GOPATH is also set automatically) (boo#1119634)
  • Fix a regression that broke go get for import path patterns containing '...' (bsc#1119706)

Additionally, the package go1.10 has been added.

Record
SUSE-SU-2018:4297-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
golang
Debian:7
before 2:1.0.2-1.1+deb7u3, plus listed versions
2:1.0.2-1.12:1.0.2-1.1+deb7u12:1.0.2-1.1+deb7u2
2:1.0.2-1.1+deb7u3
golang-1.7
Debian:9
before 1.7.4-2+deb9u1, plus listed versions
1.7.4-2
1.7.4-2+deb9u1
golang-1.8
Debian:9
before 1.8.1-1+deb9u1, plus listed versions
1.8.1-1
1.8.1-1+deb9u1
toolchain
Go
before 1.9.5, 1.10.0-0 up to 1.10.1
1.9.51.10.1
golang
Mageia:6
before 1.9.4-4.mga6
1.9.4-4.mga6
containerd
SUSE:Linux Enterprise Module for Containers 15
before 1.1.2-5.3.4
1.1.2-5.3.4
docker
SUSE:Linux Enterprise Module for Containers 15
before 18.06.1_ce-6.8.2
18.06.1_ce-6.8.2
docker-runc
SUSE:Linux Enterprise Module for Containers 15
before 1.0.0rc5+gitr3562_69663f0bd4b6-6.3.4
1.0.0rc5+gitr3562_69663f0bd4b6-6.3.4
golang-github-docker-libnetwork
SUSE:Linux Enterprise Module for Containers 15
before 0.7.0.1+gitr2664_3ac297bc7fd0-4.3.5
0.7.0.1+gitr2664_3ac297bc7fd0-4.3.5
golang-1.6
Ubuntu:16.04:LTS
All versions, plus listed versions
1.6-0ubuntu11.6-0ubuntu21.6-0ubuntu31.6-0ubuntu41.6-0ubuntu5
Show 5 moreShow less
1.6.1-0ubuntu11.6.2-0ubuntu5~16.041.6.2-0ubuntu5~16.04.21.6.2-0ubuntu5~16.04.31.6.2-0ubuntu5~16.04.4
None known
Show 6 moreShow less
Affected packages
PackageAffectedFixed
golang-1.9
Ubuntu:18.04:LTS
All versions, plus listed versions
1.9.1-2ubuntu11.9.2-1ubuntu11.9.2-3ubuntu11.9.3-1ubuntu11.9.4-1ubuntu1
None known
go
SUSE:Package Hub 15
before 1.10.4-bp150.2.3.1
1.10.4-bp150.2.3.1
go1.10
SUSE:Package Hub 15
before 1.10.7-bp150.2.1
1.10.7-bp150.2.1
golang-packaging
SUSE:Package Hub 15
before 15.0.11-bp150.3.3.1
15.0.11-bp150.3.3.1
go
openSUSE:Tumbleweed
before 1.17-1.1
1.17-1.1
go1.9
openSUSE:Tumbleweed
before 1.9.7-11.2
1.9.7-11.2

History

History
WhenChangedSources
2026-11-03aliasesEUVD
2026-11-02createdCVE List, GitHub Advisories, NVD, OSV

References

Show 47 moreShow less
MoveEnter Open