Cyber Resilience

CVE-2018-7187

RCE in Golang Go ≤ 1.9.5

Public PoCHigh EPSSRCECommand Injection
Published
16 February 2018
Modified
21 November 2024
CVSS Score v3.1 8.8
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS Score 0.63 99.1th percentile
Risk Priority 83 floored blend · peak EPSS

Summary

CVE-2018-7187 is a high-severity OS Command Injection (CWE-78) vulnerability in Golang Go. Its CVSS base score is 8.8 (High).

Operationally, ranked in the top 0.9% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

crafted web site.

CWE(s)

Related Threats

Likely ATT&CK TechniquesAI

Techniques this vulnerability likely enables, inferred from its description, weakness type, and attributed-actor tradecraft. Confidence is per-technique.

T1190 Exploit Public-Facing Application Initial Accessconfidence: HIGH
The vulnerability allows remote attackers to execute arbitrary OS commands via a crafted web site, directly enabling exploitation of a public-facing application.
T1059.004 Unix Shell Executionconfidence: HIGH
Arbitrary OS command execution via a crafted import path enables use of the Unix shell for command execution.
inferred from description + CWE · MITRE ATT&CK Enterprise v19.0

CVEs Like This One

CVE-2023-51385Same product: Debian Debian Linux
CVE-2024-10224Same product: Debian Debian Linux
CVE-2011-2523Same product: Debian Debian Linux
CVE-2025-63261Same product: Debian Debian Linux
CVE-2023-24805Same product: Debian Debian Linux
CVE-2019-10149Same product: Debian Debian Linux
CVE-2026-27139Same product: Golang Go
CVE-2023-39326Same product: Golang Go
CVE-2025-61724Same product: Golang Go
CVE-2023-39320Same product: Golang Go

Affected Assets

golang
go
≤ 1.9.5 · 1.10 — 1.10.1
debian
debian linux
7.0, 9.0

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

Detect
Catch it (NIST detect / respond)

Harden
Shrink the surface (DISA STIG)

Validate
Prove the fix (OWASP ASVS)
  • V1.2.5
  • V1.2.8
  • V15.2.5

Likely Mitigating Controls AI

Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.

addresses: CWE-78

Platform-independent apps typically execute inside a managed runtime or sandbox that restricts direct OS command execution, reducing the ability to exploit OS command injection.

addresses: CWE-78

Validates inputs to block special elements that would alter OS command execution.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-06 mostly match
prevents

PR.PS-06's SDLC practices directly require secure coding and input handling that blocks command-injection defects, yet the single broad outcome leaves many specific neutralization vectors and verification gaps unaddressed.

PR.PS-02 partial match
prevents

Routine patching/maintenance can remediate known command-injection CVEs in dependencies (partial forward) but does nothing to stop developers from introducing improper neutralization in custom code (none reverse).

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

detects

Security testing and code review target insecure use of operating-system command interfaces, catching command-injection flaws introduced during development.

References