CVE-2026-25934
ADVISORY - githubSummary
Impact
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.
Patches
Users should upgrade to v5.16.5, or the latest v6 pseudo-version, in order to mitigate this vulnerability.
Workarounds
In case updating to a fixed version of go-git is not possible, users can run git fsck from the git cli to check for data corruption on a given repository.
Credit
Thanks @N0zoM1z0 for finding and reporting this issue privately to the go-git project.
NIST
2.8
CVSS SCORE
4.3mediumGitHub
2.8
CVSS SCORE
4.3mediumDebian
-
Ubuntu
-
CVSS SCORE
N/AmediumChainguard
CGA-v36v-c63w-r62j
-
minimos
MINI-22pg-qg98-fhc2
-
minimos
MINI-2v3h-hfqq-74w6
-
minimos
MINI-3rgq-rwq9-p89c
-
minimos
MINI-587f-h53p-pv58
-
minimos
MINI-5g3q-89m7-vhw3
-
minimos
MINI-5hj8-2j6x-2rxm
-
minimos
MINI-6cjp-j2hw-xhjh
-
minimos
MINI-8r3v-868g-hg85
-
minimos
MINI-9584-94x7-7w46
-
minimos
MINI-rw6x-hq56-cf94
-
minimos
MINI-vr2x-vpr6-4v7q
-
minimos
MINI-wm23-7vgx-x965
-
minimos
MINI-x6jq-jj87-4hr5
-
minimos
MINI-x75c-6xm4-pvcq
-