Skip to main content
Mallory
CriticalVulnerability

CVE-2025-21613: URL Argument Injection in go-git File Transport

Published Jan 6, 2025 · Updated 22 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS9.2Critical · v4
EPSS1.4%72nd percentile
CISA KEVNoNot listed
In the wildNoneNo exploitation reported
Vendor
Go Project
IdentifiersCVE-2025-21613CWE-88 · Improper Neutralization of…

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
Exposure surface

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.

VendorProductType
Go ProjectGo-Gitapplication
FAQ

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.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.