Live threats

All CVEs / Go-git Project

CVE-2026-25934Go-git Project Go-git

Medium 4.3 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Go-git.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
go-git_projectgo-git< 5.16.5

Official advisories

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.