CVEfocus › CVE database › CVE-2025-21613

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

CVSS 9.2 CriticalEPSS 1.4% (higher than 72% of CVEs)Published 2025-01-06Updated 2025-01-06Assigner: GitHub_M

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.

CWE-88

What to do

Fixed builds are available from AlmaLinux, Debian, Go, Red Hat, Rocky Linux: see the table below for the fixed version per release.

Debian, Go, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

10Fixed
5Fix pending
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 25.10golang-github-go-git-go-gitNot affected
vulnerable_code_not_present
Ubuntu 24.04golang-github-go-git-go-gitFix pending5.4.2-4ubuntu0.24.04.3+esm2 (Ubuntu Pro)UBUNTU-CVE-2025-21613
Ubuntu 22.04golang-github-go-git-go-gitFix pending5.4.2-3ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2025-21613
Debian 14golang-github-go-git-go-gitFixed5.13.2-1DEBIAN-CVE-2025-21613
Debian 13golang-github-go-git-go-gitFixed5.13.2-1DEBIAN-CVE-2025-21613
Debian 12golang-github-go-git-go-gitFix pendingDEBIAN-CVE-2025-21613
Red Hat Enterprise Linux 9grafanaFixed0:10.2.6-9.el9_5RHSA-2025:3344
Red Hat Enterprise Linux 9grafana-selinuxFixed0:10.2.6-9.el9_5RHSA-2025:3344
Red Hat Enterprise Linux 8grafanaFixed0:9.2.10-21.el8_10RHSA-2025:0401
Red Hat Enterprise Linux 8grafana-selinuxFixed0:9.2.10-21.el8_10RHSA-2025:0401
AlmaLinux 8grafanaFixed9.2.10-21.el8_10ALSA-2025:0401
AlmaLinux 8grafana-selinuxFixed9.2.10-21.el8_10ALSA-2025:0401
Rocky Linux 8grafanaFixed0:9.2.10-21.el8_10RLSA-2025:0401
Go librarygithub.com/go-git/go-git/v4Fix pendingGO-2025-3368
Go librarygithub.com/go-git/go-git/v5Fixed5.13.0GO-2025-3368
Go librarygopkg.in/src-d/go-git.v4Fix pendingGHSA-v725-9546-7q7m

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.