GoWorst: High7 advisories

github.com/go-git/go-git/v6: known vulnerabilities

github.com/go-git/go-git/v6 has 7 reviewed security advisories in the GitHub Advisory Database — 2 high, 4 moderate, 1 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/v6 versions running across your servers, containers and images, and ranks what to patch first.

How to fix github.com/go-git/go-git/v6

Upgrade github.com/go-git/go-git/v6 to a release at or above the fixed version shown for each advisory below. For Go:

go get github.com/go-git/go-git/v6@6.0.0-alpha.5 && 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 (7)

go-git: Worktree operations may follow symlinks High 7.1 CWE-59 — Affected: before 6.0.0-alpha.5. Fixed in 6.0.0-alpha.5. 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 6.0.0-alpha.5. Fixed in 6.0.0-alpha.5. 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 6.0.0-alpha.4. Fixed in 6.0.0-alpha.4. 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: from 6.0.0-alpha.1 up to 6.0.0-alpha.3. Fixed in 6.0.0-alpha.3. 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 6.0.0-alpha.4. Fixed in 6.0.0-alpha.4. 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 6.0.0-alpha.4. Fixed in 6.0.0-alpha.4. 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 6.0.0-alpha.2. Fixed in 6.0.0-alpha.2. Published 2026-05-08. GHSA-3xc5-wrhm-f963 · CVE-2026-41506

Find github.com/go-git/go-git/v6 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.