Skip to content
Noroxi
CVE-2018-7187· NVD / CVE Program· CNA mitre

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

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.

HighCVSS 8.8 · v3.1—No exploit Fix available
Published
Feb 16, 2018
Updated
Jun 16, 2026
EPSS
63.0% · 99th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

54

Plan

Add it to your regular patch cycle.

CVSS
35 / 40 · 8.8 / 10
CISA KEV
0 / 30 · Not listed
EPSS
19 / 30 · 63.0%

Affected systems

VendorProduct
golanggo
debiandebian linux

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • debian debian linux7.0
  • debian debian linux9.0
  • golang gobefore 1.9.5
  • golang go1.10 and later · before 1.10.1

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Debian:7golangbefore 2:1.0.2-1.1+deb7u32:1.0.2-1.1+deb7u3
Debian:9golang-1.7before 1.7.4-2+deb9u11.7.4-2+deb9u1
Debian:9golang-1.8before 1.8.1-1+deb9u11.8.1-1+deb9u1
Gotoolchainfrom 1.10.0-0 · before 1.10.11.10.1
Gotoolchainbefore 1.9.51.9.5
openSUSE:Tumbleweedgobefore 1.17-1.11.17-1.1
openSUSE:Tumbleweedgo1.9before 1.9.7-11.21.9.7-11.2
SUSE:Linux Enterprise Module for Containers 15containerdbefore 1.1.2-5.3.41.1.2-5.3.4
SUSE:Linux Enterprise Module for Containers 15dockerbefore 18.06.1_ce-6.8.218.06.1_ce-6.8.2
SUSE:Linux Enterprise Module for Containers 15docker-runcbefore 1.0.0rc5+gitr3562_69663f0bd4b6-6.3.41.0.0rc5+gitr3562_69663f0bd4b6-6.3.4
SUSE:Linux Enterprise Module for Containers 15golang-github-docker-libnetworkbefore 0.7.0.1+gitr2664_3ac297bc7fd0-4.3.50.7.0.1+gitr2664_3ac297bc7fd0-4.3.5
SUSE:Package Hub 15gobefore 1.10.4-bp150.2.3.11.10.4-bp150.2.3.1
SUSE:Package Hub 15go1.10before 1.10.7-bp150.2.11.10.7-bp150.2.1
SUSE:Package Hub 15golang-packagingbefore 15.0.11-bp150.3.3.115.0.11-bp150.3.3.1

Other highest-scoring records for the same primary product.

  • CVE-2018-16873In Go before 1.10.6 and 1.11.x before 1.11.3, the "go get" command is vulnerable to remote code execution when executed with the -u flag and
    52Plan
  • CVE-2021-38297Go before 1.16.9 and 1.17.x before 1.17.2 has a Buffer Overflow via large arguments in a function invocation from a WASM module, when GOARCH
    42Plan
  • CVE-2019-14809net/url in Go before 1.11.13 and 1.12.x before 1.12.8 mishandles malformed hosts in URLs, leading to an authorization bypass in some applica
    42Plan
  • CVE-2015-5739The net/http library in net/textproto/reader.go in Go before 1.4.3 does not properly parse HTTP header keys, which allows remote attackers t
    42Plan
  • CVE-2017-15041Go before 1.8.4 and 1.9.x before 1.9.1 allows "go get" remote command execution.
    42Plan
  • CVE-2025-68121Unexpected session resumption in crypto/tls
    40Plan

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
debian:golang2:1.0.2-1.1+deb7u3 · Debian:7Package registry (OSV)
debian:golang-1.71.7.4-2+deb9u1 · Debian:9Package registry (OSV)
debian:golang-1.81.8.1-1+deb9u1 · Debian:9Package registry (OSV)
Go:toolchain1.10.1Package registry (OSV)
Go:toolchain1.9.5Package registry (OSV)
opensuse:go1.17-1.1 · openSUSE:TumbleweedPackage registry (OSV)
opensuse:go1.91.9.7-11.2 · openSUSE:TumbleweedPackage registry (OSV)
suse:containerd1.1.2-5.3.4 · SUSE:Linux Enterprise Module for Containers 15Package registry (OSV)
suse:docker18.06.1_ce-6.8.2 · SUSE:Linux Enterprise Module for Containers 15Package registry (OSV)
suse:docker-runc1.0.0rc5+gitr3562_69663f0bd4b6-6.3.4 · SUSE:Linux Enterprise Module for Containers 15Package registry (OSV)
suse:go1.10.4-bp150.2.3.1 · SUSE:Package Hub 15Package registry (OSV)
suse:go1.101.10.7-bp150.2.1 · SUSE:Package Hub 15Package registry (OSV)
suse:golang-github-docker-libnetwork0.7.0.1+gitr2664_3ac297bc7fd0-4.3.5 · SUSE:Linux Enterprise Module for Containers 15Package registry (OSV)
suse:golang-packaging15.0.11-bp150.3.3.1 · SUSE:Package Hub 15Package registry (OSV)

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

No commit or PR link among the references.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • No account or password is required.
  • A user must open a link or visit a page.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
high · data can be read
Integrity
high · data or configuration can be modified
Availability
high · the service can be disrupted
Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Unchanged
Confidentiality impact
High
Integrity impact
High
Availability impact
High

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

nvd-primary

Root cause

User input is inserted as text into a shell command. The shell may interpret special characters in the input as part of the command.

A representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.

Vulnerable

ts
const host = req.body.host;exec("ping -c 1 " + host, onResult);

Fixed

ts
const host = req.body.host;if (!/^[a-z0-9.-]{1,253}$/i.test(host)) return res.sendStatus(400);execFile("ping", ["-c", "1", host], onResult);

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records