Advisory record · GHSA-v725-9546-7q7m

Argument Injection via the URL field in github.com/go-git/go-git

CVSS 9.2 CriticalCriticalEPSS 0.013 · 70th percentile

Critical, because:

  • CVSS score 9.2: 9.0 or more.

How we decide what’s critical

Published by the GitHub Advisory Database at 7 Jan 2025, 16:04 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
github.com/go-git/go-git/v4Go>=4.0.0No fixed version yet
github.com/go-git/go-git/v5Go<5.13.05.13.0
gopkg.in/src-d/go-git.v4Go>=4.0.0No fixed version yet
Identifiers
GHSA-v725-9546-7q7m · CVE-2025-21613 · GO-2025-3368
Weakness (CWE)
CWE-88
Published
7 Jan 2025
Updated
14 Nov 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Two packages are affected, so the names need to be distinct. The go-git v5 module is fixed in 5.13.0, while the gopkg.in/src-d/go-git.v4 module (versions 4.0.0 through 4.13.1) has no fixed version listed. An attacker who can supply a repository URL that uses the file transport can inject arbitrary values into git-upload-pack flags. To mitigate, upgrade github.com/go-git/go-git/v5 to 5.13.0 or later; for v4 users, no fix is listed, so the source recommends upgrading to v5.13 and, where that is not possible, enforcing strict validation on URL values.

Written 1 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
9.2 Critical 4.0 CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/U:Clear CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.013, the 70th percentile, on 18 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:15 UTC First seen by agentprime
  2. 31 Oct 2026, 14:15 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.