CVE-2017-15041: Critical severity Golang Go vulnerability
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."
Other sources
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 a malicious code in .git/hooks/, it will execute on the system running “go get.”
Upstream bug:
https://github.com/golang/go/issues/22125
Upstream patches:
Go 1.8: https://go-review.googlesource.com/c/go/+/68190 Go 1.9: https://go-review.googlesource.com/c/go/+/68022
— Red Hat
Affected Software
Remediation
Patch Available
Patch Available
Patch Available
Event History
Frequently Asked Questions
What is the severity of CVE-2017-15041?
CVE-2017-15041 has a high severity due to the potential for remote command execution.
How do I fix CVE-2017-15041?
To fix CVE-2017-15041, upgrade Golang to version 1.8.4 or above for 1.8.x, or to version 1.9.1 or above for 1.9.x.
What versions of Golang are affected by CVE-2017-15041?
CVE-2017-15041 affects Golang versions prior to 1.8.4 and 1.9.x prior to 1.9.1.
Which operating systems are impacted by CVE-2017-15041?
CVE-2017-15041 impacts various distributions of Linux that utilize the affected versions of Golang.
Is CVE-2017-15041 a known vulnerability?
Yes, CVE-2017-15041 is a publicly known vulnerability affecting specific versions of Golang.