CVE-2026-25934
MEDIUM 4.3CVSS 3.1go-git improperly verifies data integrity values for .idx and .pack files
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.
- Published
- 9 Feb 2026
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-354
- Also known as
- GHSA-37cx-329c-33x3GO-2026-4473
- Sources
- NVDJSONOSV GHSA-37cx-329c-33x3JSONOSV GO-2026-4473JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | go-git_project | go-gitcpe:2.3:a:go-git_project:go-git:*:*:*:*:*:go:*:* |
< 5.16.5 | 5.16.5 |
| OSV | Go | github.com/go-git/go-git/v5 | < 5.16.5 | 5.16.5 |
| OSV | Go | github.com/go-git/go-git | all versions | |
| OSV | Go | github.com/go-git/go-git/v4 | all versions |
References
- https://github.com/go-git/go-git/releases/tag/v5.16.5 · Product, Release Notes, WEB
- https://github.com/go-git/go-git/security/advisories/GHSA-37cx-329c-33x3 · Patch, Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-25934 · ADVISORY
- https://github.com/go-git/go-git · PACKAGE
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 9 Feb 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 19 Feb 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 10 Feb 2026)