Live threats

All CVEs / Golang

CVE-2018-7187Golang Go

High 8.8 No auth neededHigh EPSS

Priority
74
CVSS 3.1
8.8
EPSS
63.0%
probability of exploitation in 30 days · percentile 99
Auth required
No
Published
Feb 16, 2018
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-78
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Go.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go toolchain < 1.9.5 1.9.5 go get toolchain@v1.9.5
Go toolchain ≥ 1.10.0-0 < 1.10.1 1.10.1 go get toolchain@v1.10.1

Per OSV / GitHub Advisories (GO-2022-0203). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
golanggo< 1.9.5
golanggo≥ 1.10 < 1.10.1
debiandebian_linux7.0
debiandebian_linux9.0

Official sources

References

Links published by the sources. Open them with care.