CVE-2018-7187Golang Go
High 8.8 No auth neededHigh EPSS
Follow: this CVE · Golang · Golang Go We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 8.8
- EPSS
- 63.0% probability of exploitation in 30 days · percentile 99
- Auth required
- No
- Published
- Feb 16, 2018
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-78
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
What happens
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
- Apply the vendor's security update for Go.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | toolchain |
< 1.9.5 |
1.9.5 |
go get toolchain@v1.9.5 |
| Go | toolchain |
≥ 1.10.0-0 < 1.10.1 |
1.10.1 |
go get toolchain@v1.10.1 |
Per OSV / GitHub Advisories (GO-2022-0203). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| golang | go | < 1.9.5 |
| golang | go | ≥ 1.10 < 1.10.1 |
| debian | debian_linux | 7.0 |
| debian | debian_linux | 9.0 |
Official sources
References
Links published by the sources. Open them with care.
- gist.github.com Third Party Advisory
- github.com Exploit Issue Tracking Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory
- security.gentoo.org Third Party Advisory
- www.debian.org Third Party Advisory
- www.debian.org Third Party Advisory