Skip to main content
← All vulnerabilities
CVE-2026-71557GHSA-QGQ7-7HM3-Q39JGO-2026-6214

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.19.2, 6.0.0-alpha.5
2 proofs of concept on GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

go-git is an extensible git implementation library written in pure Go. Prior to 5.19.2 and 6.0.0-alpha.5, reference names are not sanitized before being used to construct on-disk paths under the reference storage directory, so a maliciously crafted reference name (for example containing directory-traversal sequences) can cause go-git to write files outside the intended reference storage directory. Versions 5.19.2 and 6.0.0-alpha.5 fix the issue.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • go-git go-git

    fixed in 5.19.2; From 6.0.0-alpha.1 · fixed in 6.0.0-alpha.5

  • github.com/go-git/go-git/v5Go

    fixed in 5.19.2

  • github.com/go-git/go-git/v6Go

    fixed in 6.0.0-alpha.5

References 9

GitHub · go-git/go-git

GitHub · Saku0512/CVE-2026-71557-poc

GitHub · Saku0512/reprokit-go-git-cve-2026-71557-lab