CVE-2025-21613: URL Argument Injection in go-git File Transport
- Vendor
- Go Project
CVE-2025-21613 is an argument-injection vulnerability in go-git versions before 5.13.0. Attacker-controlled input in the repository URL field can influence arguments passed to git-upload-pack, allowing arbitrary values to be assigned to its flags. The vulnerability occurs only when the file transport protocol is used, because this transport invokes external Git binaries. Version 5.13.0 fixes the vulnerability.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
An attacker can alter the behavior of git-upload-pack by injecting flag values through a repository URL. The resulting impact depends on the injected options and the execution environment; specific code-execution or data-access consequences are not established.
Mitigation
If you can’t patch tonight, do this now.
Until an update can be applied, prevent untrusted repository URLs from selecting the file transport protocol where it is unnecessary. Where file transport is required, strictly validate URL-field values to prevent injection of additional arguments or flags.
Remediation
Patch, then assume compromise.
Upgrade go-git to version 5.13.0 or later and rebuild and redeploy applications that embed the library. Users of the affected v4 release line should migrate to a fixed v5 release. For vendor-packaged applications and container images, install the applicable vendor security update containing the fix.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2025-21613 exploited in the wild?
- As of Nov 7, 2026, Mallory has no reports of CVE-2025-21613 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2025-21613?
- As of Nov 7, 2026, Mallory has found no public exploit for CVE-2025-21613.
- Is there a patch for CVE-2025-21613?
- Upgrade go-git to version 5.13.0 or later and rebuild and redeploy applications that embed the library. Users of the affected v4 release line should migrate to a fixed v5 release.
- What products are affected by CVE-2025-21613?
- Go Project Go-Git.
- How severe is CVE-2025-21613?
- CVE-2025-21613 has a CVSS v4 score of 9.2 (Critical) and an EPSS score of 1.4% (72nd percentile) as of Nov 7, 2026.
Recent activity
17 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.