Skip to main content
← All vulnerabilities
CVE-2025-21613GO-2025-3368GHSA-V725-9546-7Q7M

go-git has an Argument Injection via the URL field

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.13.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

go-git is a highly extensible git implementation library written in pure Go. An argument injection vulnerability was discovered in go-git versions prior to v5.13. Successful exploitation of this vulnerability could allow an attacker to set arbitrary values to git-upload-pack flags. This only happens when the file transport protocol is being used, as that is the only protocol that shells out to git binaries. This vulnerability is fixed in 5.13.0.

Timeline

  1. CVE published
  2. CISA SSVC assessment

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

  3. Record last updated

Affected versions

  • go-git go-git

    From 4.0.0 · fixed in 5.13.0

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

    From 4.0.0

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

    fixed in 5.13.0

  • gopkg.in/src-d/go-git.v4Go

    From 4.0.0

  • gopkg.in/src-d/go-git.v4Go

    From 4.0.0 · through 4.13.1

References 1

GitHub · go-git/go-git