go-git: Maliciously crafted idx file can cause asymmetric memory consumption
go-git
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/go-git/go-git/v5 Go |
|
|
| github.com/go-git/go-git Go |
| No fix yet |
| github.com/go-git/go-git/v4 Go |
|
go-git
| Product | Affected | Fixed in |
|---|---|---|
| github.com/go-git/go-git/v5 Go |
|
|
| github.com/go-git/go-git Go |
| No fix yet |
| github.com/go-git/go-git/v4 Go |
|
| No fix yet |
go-git is an extensible git implementation library written in pure Go. From version 5.0.0 to before version 5.17.1, a vulnerability has been identified in which a maliciously crafted .idx file can cause asymmetric memory consumption, potentially exhausting available memory and resulting in a denial-of-service (DoS) condition. Exploitation requires write access to the local repository's .git directory, it order to create or alter existing .idx files. This issue has been patched in version 5.17.1.
From the CVE record · GitHub_M
A maliciously crafted .idx file can cause go-git to consume excessive memory, potentially resulting in a denial of service. Exploitation requires write access to the local repository’s .git directory to create or alter an .idx file.
Engineers using github.com/go-git/go-git/v5 versions 5.0.0 through 5.17.0, or any version of github.com/go-git/go-git or github.com/go-git/go-git/v4, should check their dependencies.