cve.bz

CVE-2018-7187 OS Command Injection

8.8 highExploit referenceEPSS 63%Fix available

High (8.8). EPSS 63% estimated probability of exploitation activity in the next 30 days. Fixed in toolchain 1.10.1, 1.9.5.

On this page
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.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
63% (unchanged from 63% a week ago; 63% 30 days ago) estimated probability of exploitation activity in the next 30 days; 99th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-78 Improper Neutralization of Special Elements used in an OS Command (OS Command Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-7187 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-7187?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-7187?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-7187 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
golang:gobefore 1.9.5
golang:gofrom 1.10 before 1.10.1
debian:debian_linux7.0
debian:debian_linux9.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GO-2022-0203Gotoolchain<1.9.5
>=1.10.0-0 <1.10.1
1.9.5, 1.10.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian7golang2:1.0.2-1.1+deb7u3DLA-1294-1
Debian9golang-1.71.7.4-2+deb9u1DSA-4379-1
Debian9golang-1.81.8.1-1+deb9u1DSA-4380-1
Ubuntu16.04:LTSgolang-1.6no fix listedUBUNTU-CVE-2018-7187
Ubuntu18.04:LTSgolang-1.9no fix listedUBUNTU-CVE-2018-7187
SUSELinux Enterprise Module for Containers 15containerd1.1.2-5.3.4SUSE-SU-2018:4297-1
SUSELinux Enterprise Module for Containers 15docker18.06.1_ce-6.8.2SUSE-SU-2018:4297-1
SUSELinux Enterprise Module for Containers 15docker-runc1.0.0rc5+gitr3562_69663f0bd4b6-6.3.4SUSE-SU-2018:4297-1
SUSELinux Enterprise Module for Containers 15golang-github-docker-libnetwork0.7.0.1+gitr2664_3ac297bc7fd0-4.3.5SUSE-SU-2018:4297-1
SUSEPackage Hub 15go1.10.4-bp150.2.3.1openSUSE-SU-2018:4302-1
SUSEPackage Hub 15go1.101.10.7-bp150.2.1openSUSE-SU-2018:4302-1
SUSEPackage Hub 15golang-packaging15.0.11-bp150.3.3.1openSUSE-SU-2018:4302-1
openSUSETumbleweedgo1.17-1.1openSUSE-SU-2024:10802-1
openSUSETumbleweedgo1.91.9.7-11.2openSUSE-SU-2024:10812-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Ceph Storage 2golangNot affected
Red Hat Ceph Storage 3golangNot affected
Red Hat Enterprise Linux 7golangWill not fix
Red Hat Enterprise Linux 8golangNot affected
Red Hat OpenShift Enterprise 3golangAffected
Red Hat OpenStack Platform 8 (Liberty) Operational ToolsgolangWill not fix
Red Hat OpenStack Platform 9 (Mitaka) Operational ToolsgolangWill not fix
Red Hat Storage 3golangNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-7187.

Attack patterns (CAPEC)

  • CAPEC-6 Argument Injection Likelihood: High · Severity: High
  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON