Skip to main content
← All vulnerabilities
CVE-2017-15041GO-2022-0177

Go before 1.8.4 and 1.9.x before 1.9.1 allows "go get" remote command execution.

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.8.4, 1.9.1
None on Exploit-DB, Metasploit or GitHub

Summary

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."

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • n/a n/a

    Version range not reported

  • toolchainGo

    fixed in 1.8.4; From 1.9.0-0 · fixed in 1.9.1

References 10

access.redhat.com

golang.org

securityfocus.com

security.gentoo.org

groups.google.com

GitHub · golang/go

lists.debian.org