CISA list

● Go module family

github.com/go-git/go-git/v5

Github.com/go-git/go-git/v5 has 14 security advisories.

As of , github.com/go-git/go-git/v5 has 14 security advisories.

Your version, and the version to upgrade to

Find the row your installed version falls in. The second column is the first release after it that none of the advisories lists as affected; a release outside every row is one no advisory lists. That is what the advisories say, not a promise that a release is free of flaws.
PackageIf you runUpgrade toAdvisories
github.com/go-git/go-gitAll versionsNo fixed version listed6 advisories
github.com/go-git/go-git/v4All versionsNo fixed version listed5 advisories
github.com/go-git/go-git/v5Before 5.19.25.19.214 advisories
github.com/go-git/go-git/v6Before 6.0.0-alpha.56.0.0-alpha.57 advisories

Security advisories, newest first

Security advisories, newest first
AdvisoryWhat it isAffectsFixed inPublished
CVE-2026-71557GHSA-qgq7-7hm3-q39j, GO-2026-6214go-git: Malicious reference names may modify files outside the reference storageModerate severity. github.com/go-git/go-git/v5, github.com/go-git/go-git/v6github.com/go-git/go-git/v5: Before 5.19.2 / github.com/go-git/go-git/v6: Before 6.0.0-alpha.55.19.2, 6.0.0-alpha.5
CVE-2026-71556GHSA-hc8v-wwc9-vgxm, GO-2026-6213go-git: Worktree operations may follow symlinksHigh severity. github.com/go-git/go-git/v5, github.com/go-git/go-git/v6github.com/go-git/go-git/v5: Before 5.19.2 / github.com/go-git/go-git/v6: Before 6.0.0-alpha.55.19.2, 6.0.0-alpha.5
GHSA-w5pp-99ch-qj29GO-2026-5693go-git: Malformed Git object data may cause panics or resource exhaustionModerate severity. github.com/go-git/go-git/v5, github.com/go-git/go-git/v6github.com/go-git/go-git/v5: Before 5.19.1 / github.com/go-git/go-git/v6: Before 6.0.0-alpha.45.19.1, 6.0.0-alpha.4
CVE-2026-45571GHSA-crhj-59gh-8x96, GO-2026-5336go-git: Crafted repositories may modify main and submodule .git directoriesModerate severity. github.com/go-git/go-git, github.com/go-git/go-git/v5, github.com/go-git/go-git/v6github.com/go-git/go-git: Up to and including 44.7.0 / github.com/go-git/go-git/v5: Before 5.19.1 / github.com/go-git/go-git/v6: Before 6.0.0-alpha.45.19.1, 6.0.0-alpha.4
CVE-2026-45570GHSA-m7cr-m3pv-hgrp, GO-2026-5496go-git: Improper single-quote escaping in go-git SSH transportLow severity. github.com/go-git/go-git, github.com/go-git/go-git/v5, github.com/go-git/go-git/v6github.com/go-git/go-git: All versions / github.com/go-git/go-git/v5: Before 5.19.1 / github.com/go-git/go-git/v6: Before 6.0.0-alpha.45.19.1, 6.0.0-alpha.4
CVE-2026-45022GHSA-389r-gv7p-r3rp, GO-2026-5074go-git's improper parsing of specially crafted objects may lead to inconsistent interpretation compared to upstream GitHigh severity. github.com/go-git/go-git/v5, github.com/go-git/go-git/v6github.com/go-git/go-git/v5: Before 5.19.0 / github.com/go-git/go-git/v6: From 6.0.0-alpha.1 before 6.0.0-alpha.35.19.0, 6.0.0-alpha.3
CVE-2026-41506GHSA-3xc5-wrhm-f963, GO-2026-5105go-git: Credential leak via cross-host redirect in smart HTTP transportModerate severity. github.com/go-git/go-git/v5, github.com/go-git/go-git/v6github.com/go-git/go-git/v5: Before 5.18.0 / github.com/go-git/go-git/v6: Before 6.0.0-alpha.25.18.0, 6.0.0-alpha.2
CVE-2026-34165GHSA-jhf3-xxhw-2wpp, GO-2026-4910go-git: Maliciously crafted idx file can cause asymmetric memory consumptionModerate severity. github.com/go-git/go-git, github.com/go-git/go-git/v4, github.com/go-git/go-git/v5github.com/go-git/go-git: All versions / github.com/go-git/go-git/v4: All versions / github.com/go-git/go-git/v5: From 5.0.0 before 5.17.15.17.1
CVE-2026-33762GHSA-gm2x-2g9h-ccm8, GO-2026-4909go-git missing validation decoding Index v4 files leads to panicLow severity. github.com/go-git/go-git, github.com/go-git/go-git/v4, github.com/go-git/go-git/v5github.com/go-git/go-git: All versions / github.com/go-git/go-git/v4: All versions / github.com/go-git/go-git/v5: Before 5.17.15.17.1
CVE-2026-25934GHSA-37cx-329c-33x3, GO-2026-4473go-git improperly verifies data integrity values for .idx and .pack filesModerate severity. github.com/go-git/go-git, github.com/go-git/go-git/v4, github.com/go-git/go-git/v5github.com/go-git/go-git: All versions / github.com/go-git/go-git/v4: All versions / github.com/go-git/go-git/v5: Before 5.16.55.16.5
CVE-2025-21614GHSA-r9px-m959-cxf4, GO-2025-3367go-git clients vulnerable to DoS via maliciously crafted Git server repliesHigh severity. github.com/go-git/go-git, github.com/go-git/go-git/v4, github.com/go-git/go-git/v5github.com/go-git/go-git: From 4.0.0 up to and including 4.13.1 / github.com/go-git/go-git/v4: From 4.0.0 (no end named) / github.com/go-git/go-git/v5: Before 5.13.05.13.0
CVE-2025-21613GHSA-v725-9546-7q7m, GO-2025-3368go-git has an Argument Injection via the URL fieldCritical severity. github.com/go-git/go-git/v4, github.com/go-git/go-git/v5github.com/go-git/go-git/v4: From 4.0.0 (no end named) / github.com/go-git/go-git/v5: Before 5.13.05.13.0
CVE-2023-49569GHSA-449p-3h89-pw88, GO-2024-2456Maliciously crafted Git server replies can lead to path traversal and RCE on go-git clientsCritical severity. github.com/go-git/go-git/v5github.com/go-git/go-git/v5: From 5.0.0 before 5.11.05.11.0
CVE-2023-49568GHSA-mw99-9chc-xw7r, GO-2024-2466Maliciously crafted Git server replies can cause DoS on go-git clientsHigh severity. github.com/go-git/go-git/v5github.com/go-git/go-git/v5: Before 5.11.05.11.0

Packages on this page

In these 4 packages, half or more of the advisories of each smaller package are also advisories of a larger one, so one page covers them. The table has rows for each package apart, because a release of one is not a release of another.

  • github.com/go-git/go-git
  • github.com/go-git/go-git/v4
  • github.com/go-git/go-git/v5
  • github.com/go-git/go-git/v6
Sources
  • Package advisories from the GitHub Advisory Database (CC BY 4.0). Version ranges are reworded as sentences (source). Licence: CC BY 4.0
  • Package advisories from the Go vulnerability database (CC BY 4.0). Version ranges are reworded as sentences (source). Licence: CC BY 4.0