{"id":"CVE-2017-15041","published":"2017-10-05T21:00:00Z","modified":"2024-08-05T19:42:22Z","title":"Go before 1.8.4 and 1.9.x before 1.9.1 allows \"go get\" remote command execution","vendor":null,"product":null,"tier":"tail","description":{"text":"Go before 1.8.4 and 1.9.x before 1.9.1 allows \"go get\" remote command execution. Using custom domains, it is possible to arrange things so that example.com/pkg1 points to a Subversion repository but example.com/pkg1/pkg2 points to a Git repository. If the Subversion repository includes a Git checkout in its pkg2 directory and some other work is done to ensure the proper ordering of operations, \"go get\" can be tricked into reusing this Git checkout for the fetch of code from pkg2. If the Subversion repository's Git checkout has malicious commands in .git/hooks/, they will execute on the system running \"go get.\"","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.08944,"percentile":0.95368,"provenance":"source"},"cwes":[],"references":[{"url":"https://access.redhat.com/errata/RHSA-2017:3463","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2018:0878","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://golang.org/cl/68190","tags":["x_refsource_CONFIRM"]},{"url":"http://www.securityfocus.com/bid/101196","tags":["vdb-entry","x_refsource_BID"]},{"url":"https://golang.org/cl/68022","tags":["x_refsource_CONFIRM"]},{"url":"https://security.gentoo.org/glsa/201710-23","tags":["vendor-advisory","x_refsource_GENTOO"]},{"url":"https://groups.google.com/d/msg/golang-dev/RinSE3EiJBI/kYL7zb07AgAJ","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/golang/go/issues/22125","tags":["x_refsource_CONFIRM"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/03/msg00014.html","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/03/msg00015.html","tags":["mailing-list","x_refsource_MLIST"]}],"priority":{"score":19.1,"factors":[{"name":"EPSS percentile","points":19.07}]},"affected":[{"ecosystem":"Go","package":"toolchain","vulnerableRanges":["<1.8.4",">=1.9.0-0, <1.9.1"],"patched":["1.8.4","1.9.1"],"from":["GO-2022-0177"],"provenance":"source"}],"summary":{"text":"The Go toolchain before 1.8.4 and 1.9.x before 1.9.1 contains a flaw in the \"go get\" command, which fetches and builds packages. An attacker who controls custom domain paths that point to a Subversion repository can arrange for \"go get\" to reuse a malicious Git checkout embedded in that repository, causing commands placed in its .git/hooks/ directory to run on the system executing \"go get.\"","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:51:34Z"},"euvd":{"id":"EUVD-2017-6516","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2017-15041","published":"2017-10-05","fixed":"1.9.1","kev":false},{"cve":"CVE-2018-6574","published":"2018-02-07","fixed":"1.9.4","kev":false,"link":{"from":"CVE-2017-15041","to":"CVE-2018-6574","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:toolchain","fromFixed":"1.8.4","toFixed":"1.8.7","daysApart":125}]}},{"cve":"CVE-2018-7187","published":"2018-02-16","fixed":"1.10.1","kev":false},{"cve":"CVE-2018-16873","published":"2018-12-14","fixed":"1.11.3","kev":false}],"package":"Go:toolchain"}}