---
id: CVE-2025-21613
aliases:
  - GO-2025-3368
  - GHSA-v725-9546-7q7m
title: Argument Injection via the URL field in github.com/go-git/go-git
summary: Argument Injection via the URL field in github.com/go-git/go-git
severity: none
vendor: go-git
product: github.com/go-git/go-git/v4
ecosystem: go
affected:
  - github.com/go-git/go-git/v4 >= 4.0.0
  - github.com/go-git/go-git/v5 < 5.13.0
  - gopkg.in/src-d/go-git.v4 >= 4.0.0
patched:
  - github.com/go-git/go-git/v5 5.13.0
published: '2025-01-07'
updated: '2026-07-08'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GO-2025-3368'
references:
  - url: 'https://github.com/go-git/go-git/security/advisories/GHSA-v725-9546-7q7m'
tags:
  - osv
  - go
epss: 0.01287
epssPercentile: 0.6888
ingestedAt: '2026-07-09T18:56:37.011Z'
---

## Overview

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

## Affected packages

- `github.com/go-git/go-git/v4 >= 4.0.0`
- `github.com/go-git/go-git/v5 < 5.13.0`
- `gopkg.in/src-d/go-git.v4 >= 4.0.0`

## Remediation

Upgrade to a patched release:

- `github.com/go-git/go-git/v5 5.13.0`
