CVE-2026-45571
Description
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
Windows Affected 1 release
| Version | Status | Fixed in |
|---|---|---|
| โ | Affected | โ |
Debian Mixed 4 releases
| Version | Status | Fixed in |
|---|---|---|
| trixie | Affected | โ |
| sid | Fixed | 5.19.1-1 |
| forky | Fixed | 5.19.1-1 |
| bookworm | Affected | โ |
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| Go | github.com/go-git/go-git/v5 | <5.19.1 | 5.19.1 |
| Go | github.com/go-git/go-git/v6 | <6.0.0-alpha.4 | 6.0.0-alpha.4 |
| Go | github.com/go-git/go-git | <=44.7.0 | |
| GO | github.com/go-git/go-git | <= 44.7.0 | |
| GO | github.com/go-git/go-git/v6 | <= 6.0.0-alpha.3 | 6.0.0-alpha.4 |
| GO | github.com/go-git/go-git/v5 | <= 5.19.0 | 5.19.1 |
References
CWEs
CWE-22
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.