patchminder
No public exploit found CVE-2025-21613

Vulnerabilityin go-git.

Published 6 Jan 2025 · Updated 6 Jan 2025 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

No public exploit found; not on exploited lists.

Severity
Critical 9.8
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks. assessment · no login needed
Attack likelihood
Moderate
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 1.3% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 5.13.0 or later
In plain words

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.

What to do now
  • Upgrade go-git to 5.13.0 or later.
  • Upgrade github.com/go-git/go-git/v5 (Go) to 5.13.0 or later.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
go-git
4.0.0 to before 5.13.0
5.13.0
CVE record
gopkg.in/src-d/go-git.v4 (Go)
4.0.0 to 4.13.1
Not confirmed
GitHub advisory
github.com/go-git/go-git/v5 (Go)
before 5.13.0
5.13.0
GitHub advisory
github.com/go-git/go-git/v4 (Go)
4.0.0 and later
Not confirmed
GitHub advisory
gopkg.in/src-d/go-git.v4 (Go)
4.0.0 and later
Not confirmed
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 29 Dec 2024
    CVE ID reserved by GitHub_M.
  2. 6 Jan 2025
    Published in the CVE List.
  3. 6 Jan 2025
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: No public exploit found. CISA assessment (SSVC): exploitation none.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
None known

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other go-git vulnerabilities

Same weakness: Argument injection

All CWE-88 vulnerabilities

References
Cite this page

Patchminder. CVE-2025-21613: Vulnerability in go-git. https://patchminder.com/cve/cve-2025-21613/ (accessed 5 December 2026).