ADVISORIES

Vulnerability

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 only checks for "://" anywhere in the string), which allows remote attackers to execute arbitrary OS commands via a crafted web site.

10 advisories report this vulnerability, across 6 ecosystems.

Advisories

  • DLA-1294-1

    golang - security update

    CVE-2018-7187 Debian Updated 20 November 2026
  • DSA-4379-1

    golang-1.7 - security update

    CVE-2018-7187CVE-2019-6486 Debian Updated 20 November 2026
  • DSA-4380-1

    golang-1.8 - security update

    CVE-2018-6574CVE-2018-7187CVE-2019-6486 Debian Updated 20 November 2026
  • GO-2022-0203

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

    CVE-2018-7187 Go Updated 20 May 2024
  • RHVEX-CVE-2018-7187

    golang: arbitrary command execution via VCS path

    Moderate CVE-2018-7187 Red Hat Updated 23 November 2026
  • SUSE-SU-2018:4297-1

    Security update for containerd, docker and go

    CVE-2018-16873CVE-2018-16874CVE-2018-16875CVE-2018-7187 SUSE Updated 4 February 2026
  • UBUNTU-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 only checks for "://" anywhere in the string), which allows remote attackers to…

    CVE-2018-7187 Ubuntu Updated 24 October 2025
  • openSUSE-SU-2018:4302-1

    Security update for go

    CVE-2018-7187 SUSE Updated 4 February 2026
  • openSUSE-SU-2024:10802-1

    go-1.17-1.1 on GA media

    CVE-2016-5386CVE-2017-15041CVE-2017-15042CVE-2017-8932 openSUSE Updated 7 May 2025
  • openSUSE-SU-2024:10812-1

    go1.9-1.9.7-11.2 on GA media

    CVE-2014-7189CVE-2015-8618CVE-2016-3959CVE-2016-5386 openSUSE Updated 4 February 2026

References