CVE-2026-45571Go-git Project Go-git
Medium 5.4 No auth needed
Follow: this CVE · Go-git Project · Go-git Project Go-git We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 5.4
- EPSS
- —
- Auth required
- No
- Published
- May 27, 2026
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-22
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L
What happens
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.
What to do
- Apply the vendor's security update for Go-git.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/go-git/go-git |
≤ 44.7.0 |
no fixed version | — |
| Go | github.com/go-git/go-git/v5 |
< 5.19.1 |
5.19.1 |
go get github.com/go-git/go-git/v5@v5.19.1 |
| Go | github.com/go-git/go-git/v5 |
< 5.19.1 |
5.19.1 |
go get github.com/go-git/go-git/v5@v5.19.1 |
| Go | github.com/go-git/go-git/v6 |
< 6.0.0-alpha.4 |
6.0.0-alpha.4 |
go get github.com/go-git/go-git/v6@v6.0.0-alpha.4 |
Per OSV / GitHub Advisories (GHSA-crhj-59gh-8x96, GO-2026-5336). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| go-git_project | go-git | < 5.19.1 |
| go-git_project | go-git | 6.0.0 |
| go-git_project | go-git | 6.0.0 |
| go-git_project | go-git | 6.0.0 |
Official advisories
- Security update for govulncheck-vulndb · SUSE · openSUSE-SU-2026:21551-1 · Aug 10, 2026 Critical
- Security update for govulncheck-vulndb · SUSE · SUSE-SU-2026:23216-1 · Aug 10, 2026 Critical
- Security update for govulncheck-vulndb · SUSE · SUSE-SU-2026:23227-1 · Aug 10, 2026 Critical
Also: SUSE (+1)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Vendor Advisory