GoWorst: Critical14 advisories
github.com/go-git/go-git/v5: known vulnerabilities
github.com/go-git/go-git/v5 has 14 reviewed security advisories in the GitHub Advisory Database — 2 critical, 4 high, 6 moderate, 2 low. The most recent was published 2026-08-07. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the github.com/go-git/go-git/v5 versions running across your servers, containers and images, and ranks what to patch first.
How to fix github.com/go-git/go-git/v5
Upgrade github.com/go-git/go-git/v5 to a release at or above the fixed version shown for each advisory below. For Go:
go get github.com/go-git/go-git/v5@5.19.2 && go mod tidy (check govulncheck)
SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.
Advisories (14)
go-git: Worktree operations may follow symlinks
High 7.1 CWE-59
— Affected: before 5.19.2. Fixed in 5.19.2. Published 2026-08-07. GHSA-hc8v-wwc9-vgxm · CVE-2026-71556
go-git: Malicious reference names may modify files outside the reference storage
Moderate 6.3 CWE-22
— Affected: before 5.19.2. Fixed in 5.19.2. Published 2026-08-07. GHSA-qgq7-7hm3-q39j · CVE-2026-71557
go-git: Malformed Git object data may cause panics or resource exhaustion
Moderate 6.5 CWE-400
— Affected: before 5.19.1. Fixed in 5.19.1. Published 2026-05-29. GHSA-w5pp-99ch-qj29
go-git's improper parsing of specially crafted objects may lead to inconsistent interpretation compared to upstream Git
High CWE-180 CWE-345
— Affected: before 5.19.0. Fixed in 5.19.0. Published 2026-05-27. GHSA-389r-gv7p-r3rp · CVE-2026-45022
go-git: Crafted repositories may modify main and submodule .git directories
Moderate 5.4 CWE-22
— Affected: before 5.19.1. Fixed in 5.19.1. Published 2026-05-27. GHSA-crhj-59gh-8x96 · CVE-2026-45571
go-git: Improper single-quote escaping in go-git SSH transport
Low CWE-116
— Affected: before 5.19.1. Fixed in 5.19.1. Published 2026-05-27. GHSA-m7cr-m3pv-hgrp · CVE-2026-45570
go-git: Credential leak via cross-host redirect in smart HTTP transport
Moderate 4.7 CWE-522
— Affected: before 5.18.0. Fixed in 5.18.0. Published 2026-05-08. GHSA-3xc5-wrhm-f963 · CVE-2026-41506
go-git missing validation decoding Index v4 files leads to panic
Low 2.8 CWE-129
— Affected: before 5.17.1. Fixed in 5.17.1. Published 2026-03-31. GHSA-gm2x-2g9h-ccm8 · CVE-2026-33762
go-git: Maliciously crafted idx file can cause asymmetric memory consumption
Moderate 5.0 CWE-191 CWE-770
— Affected: from 5.0.0 up to 5.17.1. Fixed in 5.17.1. Published 2026-03-31. GHSA-jhf3-xxhw-2wpp · CVE-2026-34165
go-git improperly verifies data integrity values for .idx and .pack files
Moderate 4.3 CWE-354
— Affected: before 5.16.5. Fixed in 5.16.5. Published 2026-02-09. GHSA-37cx-329c-33x3 · CVE-2026-25934
go-git clients vulnerable to DoS via maliciously crafted Git server replies
High 7.5 CWE-20 CWE-400 CWE-770
— Affected: before 5.13.0. Fixed in 5.13.0. Published 2025-01-06. GHSA-r9px-m959-cxf4 · CVE-2025-21614
go-git has an Argument Injection via the URL field
Critical 9.8 CWE-88
— Affected: before 5.13.0. Fixed in 5.13.0. Published 2025-01-06. GHSA-v725-9546-7q7m · CVE-2025-21613
Maliciously crafted Git server replies can lead to path traversal and RCE on go-git clients
Critical 9.8 CWE-22
— Affected: from 5.0.0 up to 5.11.0. Fixed in 5.11.0. Published 2024-01-12. GHSA-449p-3h89-pw88 · CVE-2023-49569
Maliciously crafted Git server replies can cause DoS on go-git clients
High 7.5 CWE-20
— Affected: before 5.11.0. Fixed in 5.11.0. Published 2024-01-12. GHSA-mw99-9chc-xw7r · CVE-2023-49568
Find github.com/go-git/go-git/v5 across your fleet
Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA,
CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month.
Start free.