Security mailing lists by PureSourceCode

CVE-2018-7187

HIGH 8.8CVSS 3.1

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

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.

Published
16 Feb 2018
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-78
Also known as
GO-2022-0203
Sources
NVDJSONOSV GO-2022-0203JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 8.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD nvd@nist.gov (Primary) CVSS 2.0 HIGH 9.3 AV:N/AC:M/Au:N/C:C/I:C/A:C

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD golang go
cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
< 1.9.5 1.9.5
NVD golang go
cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
>= 1.10, < 1.10.1 1.10.1
NVD debian debian_linux
cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:*
= 7.0
NVD debian debian_linux
cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
= 9.0
OSV Go toolchain < 1.9.5; >= 1.10.0-0, < 1.10.1 1.9.5, 1.10.1

References

History

  • 25 Nov 2026 20:20 UTC · NVD: first stored (published 16 Feb 2018)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 9 Aug 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.