---
title: "CVE-2025-21613: go-git has an Argument Injection via the URL field"
url: https://erroneo.us/security/cve/CVE-2025-21613/
description: "CVE-2025-21613 (gopkg.in/src-d/go-git.v4 (Go)): go-git is a highly extensible git implementation library written in pure Go. An argument injection…"
type: vulnerability-record
section: "Security Digest"
date_published: 2025-01-06
date_modified: 2025-01-06
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2025-21613"
kev: false
cvss: 9.2
epss: 0.01278
license: All rights reserved. Quote with attribution and a link.
---

# CVE-2025-21613: go-git has an Argument Injection via the URL field

**Signal:** Critical and remotely reachable. No known exploitation yet, but it is network-reachable without credentials. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- No confirmed exploitation. It is not in CISA’s KEV catalog and CISA’s SSVC assessment records no known exploitation. That can change quickly after a public write-up; re-check if you are affected.
- EPSS 1.3% , percentile 70: FIRST’s model estimates a 1.3% chance of exploitation activity in the next 30 days, higher than 70% of all scored CVEs (moderate). EPSS is a probability, not a verdict.
- Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
- Only applies if your dependency tree includes gopkg.in/src-d/go-git.v4 (Go) >= 4.0.0, <= 4.13.1, no fixed version listed ; github.com/go-git/go-git/v5 (Go) < 5.13.0, fixed in 5.13.0 . Check your lockfile, including transitive dependencies.

## What it is

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.

## Affected packages

- Go `gopkg.in/src-d/go-git.v4` >= 4.0.0, <= 4.13.1 → fixed: none listed
- Go `github.com/go-git/go-git/v5` < 5.13.0 → fixed: 5.13.0

## Affected products (CVE record)

- go-git go-git: >= 4.0.0,  < 5.13.0

## Severity

- GitHub_M CVSS 4.0: 9.2 `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`
- CISA-ADP CVSS 3.1: 9.8 `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub CVSS 4.0: 9.2 `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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:Clear`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation none , automatable no , technical impact total .
- FIRST EPSS (model of 2026-10-21): 1.28% probability of exploitation activity in the next 30 days; percentile 70.

## Sources

- [GitHub Advisory GHSA-v725-9546-7q7m](https://github.com/advisories/GHSA-v725-9546-7q7m)
- [CVE.org record CVE-2025-21613](https://www.cve.org/CVERecord?id=CVE-2025-21613)
- [NVD entry CVE-2025-21613](https://nvd.nist.gov/vuln/detail/CVE-2025-21613)
- [github.com](https://github.com/go-git/go-git/security/advisories/GHSA-v725-9546-7q7m)

---
Source page: https://erroneo.us/security/cve/CVE-2025-21613/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
