Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/go-git/go-git/v5
  4. ›
  5. CVE-2026-25934

CVE-2026-25934: go-git improperly verifies data integrity values for .idx and .pack files

February 10, 2026

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.

Note that the lack of verification of the packfile checksum has no impact on the trust relationship between the client and server, which is enforced based on the protocol being used (e.g. TLS in the case of https:// or known hosts for ssh://). In other words, the packfile checksum verification does not provide any security benefits when connecting to a malicious or compromised Git server.

References

  • github.com/advisories/GHSA-37cx-329c-33x3
  • github.com/go-git/go-git
  • github.com/go-git/go-git/releases/tag/v5.16.5
  • github.com/go-git/go-git/security/advisories/GHSA-37cx-329c-33x3
  • nvd.nist.gov/vuln/detail/CVE-2026-25934

Code Behaviors & Features

Detect and mitigate CVE-2026-25934 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 5.16.5

Fixed versions

  • 5.16.5

Solution

Upgrade to version 5.16.5 or above.

Impact 4.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-354: Improper Validation of Integrity Check Value

Source file

go/github.com/go-git/go-git/v5/CVE-2026-25934.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 15 Mar 2026 12:18:43 +0000.