Advisory record · GHSA-qgq7-7hm3-q39j

go-git: Malicious reference names may modify files outside the reference storage

CVSS 6.3 MediumEPSS 0.0041 · 36th percentile

Published by the GitHub Advisory Database at 7 Aug 2026, 16:41 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
github.com/go-git/go-git/v5Go<5.19.25.19.2
github.com/go-git/go-git/v6Go<6.0.0-alpha.56.0.0-alpha.5
Identifiers
GHSA-qgq7-7hm3-q39j · CVE-2026-71557 · GO-2026-6214
Weakness (CWE)
CWE-22
Published
7 Aug 2026
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Go-git versions before 5.19.2 (v5) and before 6.0.0-alpha.5 (v6) are vulnerable to a path traversal issue in filesystem-backed reference storage. An attacker who can get a malicious Git server to advertise a crafted reference name, or otherwise supply such names, can make the library access files outside the intended reference storage, such as repository config or HEAD. Upgrade to go-git v5.19.2 or v6.0.0-alpha.5. Applications using only in-memory storage are not affected.

Written 1 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
6.3 Medium 3.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:L CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0041, the 36th percentile, on 14 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:14 UTC First seen by agentprime
  2. 31 Oct 2026, 14:14 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.