go-git: Crafted repositories may modify main and submodule .git directories
CVE-2026-45571 is fixed in 3 products on 1 platform, first by DEBIAN-CVE-2026-45571, released June 24, 2026. It is not reported as exploited. Patch Radar priority: Routine.
go-git is an extensible git implementation library written in pure Go. Prior to 5.19.1 and 6.0.0-alpha.4, a path validation issue in go-git could allow crafted repository data to affect files outside the intended checkout target, including the repository's .git directory. These validations were introduced in upstream Git years ago, so the vulnerability arose from go-git drifting from those checks. This vulnerability is fixed in 5.19.1 and 6.0.0-alpha.4.
Where it's fixed
| Product | Fixed in | Fix | Released |
|---|---|---|---|
| Linux | |||
| golang-github-go-git-go-git · Debian 14 | 5.19.1-1 | DEBIAN-CVE-2026-45571 | Jun 24, 2026 |
| golang-github-go-git-go-git-v6 · Debian 14 | 6.0.0~alpha4-1 | DEBIAN-CVE-2026-45571 | Jun 24, 2026 |
| govulncheck-vulndb · opensuse-leap 16.0 | 0.0.20260727T201416-160000.1.1 | OPENSUSE-SU-2026:21551-1 | Aug 10, 2026 |
| govulncheck-vulndb · sles 16.0 | 0.0.20260727T201416-160000.1.1 | SUSE-SU-2026:23227-1 | Aug 10, 2026 |
Patch Radar data is free to use with attribution. Terms and how to credit it.
Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.