go-git has an Argument Injection via the URL field
go-git
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| gopkg.in/src-d/go-git.v4 Go |
| No fix yet |
| github.com/go-git/go-git/v5 Go |
|
|
| github.com/go-git/go-git/v4 Go |
go-git
| Product | Affected | Fixed in |
|---|---|---|
| gopkg.in/src-d/go-git.v4 Go |
| No fix yet |
| github.com/go-git/go-git/v5 Go |
|
|
| github.com/go-git/go-git/v4 Go |
|
| No fix yet |
go-git is a highly extensible git implementation library written in pure Go. An argument injection vulnerability was discovered in go-git versions prior to v5.13. Successful exploitation of this vulnerability could allow an attacker to set arbitrary values to git-upload-pack flags. This only happens when the file transport protocol is being used, as that is the only protocol that shells out to git binaries. This vulnerability is fixed in 5.13.0.
From the CVE record · GitHub_M
go-git versions before 5.13.0 have an argument injection vulnerability. An attacker could set arbitrary git-upload-pack flag values when the file transport protocol is used, because that protocol shells out to git binaries. The input does not specify authentication or user-interaction requirements.
Engineers using github.com/go-git/go-git/v5 before 5.13.0, github.com/go-git/go-git/v4 from 4.0.0 onward, or gopkg.in/src-d/go-git.v4 from 4.0.0 through 4.13.1 should check their dependencies.