CVE-2026-25934Go-git Project Go-git
Medium 4.3 No auth needed
Follow: this CVE · Go-git Project · Go-git Project Go-git We alert you by email or Slack (account required).
- Priority
- 41
- CVSS 3.1
- 4.3
- EPSS
- —
- Auth required
- No
- Published
- Feb 9, 2026
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-354
- 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:N
What happens
go-git is a highly extensible git implementation library written in pure Go. Prior to 5.16.5, a vulnerability was discovered in go-git whereby data integrity values for .pack and .idx files were not properly verified. This resulted in go-git potentially consuming corrupted files, which would likely result in unexpected errors such as object not found. For context, clients fetch packfiles from upstream Git servers. Those files contain a checksum of their contents, so that clients can perform integrity checks before consuming it. The pack indexes (.idx) are generated locally by go-git, or the git cli, when new .pack files are received and processed. The integrity checks for both files were not being verified correctly. This vulnerability is fixed in 5.16.5.
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 |
all |
no fixed version | — |
| Go | github.com/go-git/go-git/v4 |
all |
no fixed version | — |
| Go | github.com/go-git/go-git/v5 |
< 5.16.5 |
5.16.5 |
go get github.com/go-git/go-git/v5@v5.16.5 |
| Go | github.com/go-git/go-git/v5 |
< 5.16.5 |
5.16.5 |
go get github.com/go-git/go-git/v5@v5.16.5 |
Per OSV / GitHub Advisories (GO-2026-4473, GHSA-37cx-329c-33x3). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| go-git_project | go-git | < 5.16.5 |
Official advisories
- amazon-ssm-agent-3.3.5226.0-1.1 on GA media · SUSE · openSUSE-SU-2026:11694-1 · Sep 7, 2026 High
- Security update for govulncheck-vulndb · SUSE · openSUSE-SU-2026:21483-1 · Jul 30, 2026 Critical
- Security update for terraform-provider-aws, terraform-provider-azurerm, terraform-provider-external, terraform-provider-google, terraform-provider-helm, terraform-provider-kubernetes, terraform-provider-local, terraform-provider-null, terraform-provider-random, terraform-provider-tls · SUSE · SUSE-SU-2026:3056-1 · Jul 15, 2026 Critical
Also: SUSE (+9)
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 Product Release Notes
- github.com Patch Vendor Advisory