{"id":"CVE-2026-25934","aliases":["CVE-2026-25934","GHSA-37cx-329c-33x3","GO-2026-4473"],"related":["CGA-v36v-c63w-r62j"],"kind":"vulnerability","state":"published","title":"go-git improperly verifies data integrity values for .idx and .pack files","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact \n\nA 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`.\n\nFor context, clients fetch [`packfiles`](https://git-scm.com/docs/pack-protocol#_packfile_data) 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](https://git-scm.com/docs/pack-format) 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.\n\nNote 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.\n\n### Patches\n\nUsers should upgrade to `v5.16.5`, or the latest `v6` [pseudo-version](https://go.dev/ref/mod#pseudo-versions), in order to mitigate this vulnerability.\n\n### Workarounds\n\nIn case updating to a fixed version of `go-git` is not possible, users can run [git fsck](https://git-scm.com/docs/git-fsck) from the `git` cli to check for data corruption on a given repository. \n\n### Credit\n\nThanks @N0zoM1z0 for finding and reporting this issue privately to the `go-git` project.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Improper verification of data integrity values for .idx and .pack files in github.com/go-git/go-git","format":"markdown","source":"go"},{"lang":"es","text":"go-git es una biblioteca de implementación de git altamente extensible escrita en Go puro. Antes de la versión 5.16.5, se descubrió una vulnerabilidad en go-git por la cual los valores de integridad de datos para los archivos .pack y .idx no se verificaban correctamente. Esto resultaba en que go-git podía consumir archivos corruptos, lo que probablemente provocaría errores inesperados como 'objeto no encontrado'. Para contextualizar, los clientes obtienen los packfiles de los servidores Git ascendentes. Esos archivos contienen una suma de verificación (checksum) de sus contenidos, para que los clientes puedan realizar comprobaciones de integridad antes de consumirlos. Los índices pack (.idx) son generados localmente por go-git, o por la CLI de git, cuando se reciben y procesan nuevos archivos .pack. Las comprobaciones de integridad para ambos archivos no se estaban verificando correctamente. Esta vulnerabilidad está corregida en la versión 5.16.5.","source":"nvd"}],"published":"2026-02-09T22:13:41.974Z","modified":"2026-09-10T03:50:59.405Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","score":4.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-354"],"affected":[{"ranges":[{"version":"< 5.16.5","status":"affected"}],"vendor":"go-git","product":"go-git","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"5.16.5"}],"ecosystem":"Go","package":"github.com/go-git/go-git/v5","purl":"pkg:golang/github.com/go-git/go-git/v5","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/go-git/go-git","purl":"pkg:golang/github.com/go-git/go-git","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/go-git/go-git/v4","purl":"pkg:golang/github.com/go-git/go-git/v4","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"5.16.5"}],"ecosystem":"Go","package":"github.com/go-git/go-git/v5","purl":"pkg:golang/github.com/go-git/go-git/v5","source":"go"},{"ranges":[{"status":"affected","fixed":"5.16.5"}],"vendor":"go-git_project","product":"go-git","cpe":"cpe:2.3:a:go-git_project:go-git:*:*:*:*:*:go:*:*","source":"nvd"}],"references":[{"url":"https://github.com/go-git/go-git/security/advisories/GHSA-37cx-329c-33x3","tags":["advisory","patch","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/go-git/go-git/releases/tag/v5.16.5","tags":["product","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25934","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/go-git/go-git","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-02-11T21:23:04.617Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-25934","url":"https://www.cve.org/CVERecord?id=CVE-2026-25934","licence":"CVE Terms of Use","modified":"2026-02-11T21:23:14.781Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-37cx-329c-33x3","url":"https://github.com/advisories/GHSA-37cx-329c-33x3","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:59.405Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-4473","url":"https://pkg.go.dev/vuln/GO-2026-4473","licence":"CC-BY-4.0","modified":"2026-02-20T20:43:58.744Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-25934","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25934","licence":"Public domain","modified":"2026-06-17T10:25:27.243Z"}],"updatedAt":"2026-11-25T22:59:13.686Z","epss":{"score":0.00156,"percentile":0.04969,"date":"2026-12-01T12:00:22.000Z"}}