CVE-2026-25934 Details
Description
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.
A vulnerability exists in go-git versions through 5.16.4, where the library fails to properly verify data integrity values for .pack and .idx files. This flaw can lead go-git to process corrupted files, potentially causing unexpected errors such as 'object not found'. The issue arises because clients do not correctly check the integrity of packfiles fetched from upstream Git servers, despite these files containing checksums for verification. The .idx files, which index the contents of the .pack files, are generated locally by go-git or the Git command-line interface when new .pack files are received. The lack of proper integrity verification can result in the consumption of corrupted data, disrupting normal operations.
Users should upgrade to go-git version 5.16.5 or the latest v6 pseudo-version. If an immediate upgrade is not possible, running 'git fsck' from the Git command-line interface can help check for data corruption in the repository.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Feb 11, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/go-git/go-git/releases/tag/v5.16.5 | [email protected] | ProductRelease Notes |
| https://github.com/go-git/go-git/security/advisories/GHSA-37cx-329c-33x3 | [email protected] | PatchVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-354 | Improper Validation of Integrity Check Value | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| go-git project go-git | < 5.16.5 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 20, 2026 | Initial Analysis | [email protected] |
| Feb 9, 2026 | New CVE Received | [email protected] |