CVE-2026-25934go-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.
What to do
Fixed builds are available from Debian, Go: see the table below for the fixed version per release.
Debian, Go, Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | golang-github-go-git-go-git | Fix pending | UBUNTU-CVE-2026-25934 | |
| Ubuntu 26.04 | golang-github-go-git-go-git | Fix pending | UBUNTU-CVE-2026-25934 | |
| Ubuntu 25.10 | golang-github-go-git-go-git | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-25934 | |
| Ubuntu 24.04 | golang-github-go-git-go-git | Fix pending | 5.4.2-4ubuntu0.24.04.3+esm2 (Ubuntu Pro) | UBUNTU-CVE-2026-25934 |
| Ubuntu 22.04 | golang-github-go-git-go-git | Fix pending | 5.4.2-3ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-25934 |
| Debian 14 | golang-github-go-git-go-git | Fixed | 5.17.0-1 | DEBIAN-CVE-2026-25934 |
| Debian 13 | golang-github-go-git-go-git | Fix pending | DEBIAN-CVE-2026-25934 | |
| Debian 12 | golang-github-go-git-go-git | Fix pending | DEBIAN-CVE-2026-25934 | |
| Red Hat Enterprise Linux 9 | grafana | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | grafana-selinux | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-azure-monitor | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-cloudwatch | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-elasticsearch | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-graphite | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-influxdb | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-loki | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-mssql | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-mysql | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-opentsdb | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-postgres | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-prometheus | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-selinux | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-stackdriver | Fix pending Fix deferred | ||
| Go library | github.com/go-git/go-git | Fix pending | GO-2026-4473 | |
| Go library | github.com/go-git/go-git/v4 | Fix pending | GO-2026-4473 | |
| Go library | github.com/go-git/go-git/v5 | Fixed | 5.16.5 | GO-2026-4473 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- go-git: affected: < 5.16.5
References
- https://github.com/go-git/go-git/security/advisories/GHSA-37cx-329c-33x3
- https://github.com/go-git/go-git/releases/tag/v5.16.5
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.