cve.bz

CVE-2025-21613 go-git project go-git: Argument Injection

9.2 criticalEPSS 1.3%Fix available

Critical (9.2) in go-git project go-git. EPSS 1.3% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/go-git/go-git/v5 5.13.0.

On this page
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.

Severity

CVSS 4.0

9.2 critical
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

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
1.3% (unchanged from 1.3% a week ago; 1.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 71st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-01-06. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-88 Improper Neutralization of Argument Delimiters in a Command (Argument Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-21613 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-21613?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-21613?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-21613 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
go-git_project:go-gitbefore 5.13.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-v725-9546-7q7mGogopkg.in/src-d/go-git.v4>=4.0.0 <=4.13.1no fix published
GHSA-v725-9546-7q7mGogithub.com/go-git/go-git/v5<5.13.05.13.0
GO-2025-3368Gogithub.com/go-git/go-git/v4>=4.0.0no fix published
GO-2025-3368Gogithub.com/go-git/go-git/v5<5.13.05.13.0
GO-2025-3368Gogopkg.in/src-d/go-git.v4>=4.0.0no fix published

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12golang-github-go-git-go-gitno fix listedDEBIAN-CVE-2025-21613
Debian13, 14golang-github-go-git-go-git5.13.2-1DEBIAN-CVE-2025-21613
UbuntuPro:22.04:LTSgolang-github-go-git-go-git5.4.2-3ubuntu0.1~esm1UBUNTU-CVE-2025-21613 USN-8088-1
UbuntuPro:24.04:LTSgolang-github-go-git-go-git5.4.2-4ubuntu0.24.04.3+esm2UBUNTU-CVE-2025-21613 USN-8088-1
Red Hatenterprise_linux:8::appstreamgrafana, grafana-selinux, grafana-debuginfo and 1 more0:9.2.10-21.el8_10RHSA-2025:0401
Red Hatrhel_eus:9.4::appstreamgrafana, grafana-selinux, grafana-debuginfo and 1 more0:9.2.10-21.el9_4RHSA-2025:0662
SUSELinux Enterprise Module for Desktop Applications 15 SP6brise20230603+git.5fdd2d6-150600.3.8.1SUSE-SU-2025:0601-1
SUSELinux Enterprise Module for Package Hub 15 SP6govulncheck-vulndb0.0.20250108T191942-150000.1.26.1SUSE-SU-2025:0060-1
SUSELinux Enterprise Module for Package Hub 15 SP6grafana10.4.15-150200.3.64.1SUSE-SU-2025:0623-1
SUSELinux Enterprise Module for Public Cloud 12amazon-ssm-agent3.3.1611.0-4.36.1SUSE-SU-2025:0191-1
SUSELinux Enterprise Module for Public Cloud 15 SP3, Linux Enterprise Module for Public Cloud 15 SP4, Linux Enterprise Module for Public Cloud 15 SP5 and 1 moreamazon-ssm-agent3.3.1611.0-150000.5.20.1SUSE-SU-2025:0277-1
SUSEManager Client Tools 12grafana10.4.15-1.71.1SUSE-SU-2025:0622-1
SUSEManager Client Tools 15grafana10.4.15-150000.1.71.1SUSE-SU-2025:0624-1
SUSEPackage Hub 15 SP6trivy0.58.2-bp156.2.6.1openSUSE-SU-2025:0056-1
openSUSELeap 15.6amazon-ssm-agent3.3.1611.0-150000.5.20.1SUSE-SU-2025:0277-1
openSUSELeap 15.6brise20230603+git.5fdd2d6-150600.3.8.1SUSE-SU-2025:0601-1
openSUSELeap 15.6govulncheck-vulndb0.0.20250108T191942-150000.1.26.1SUSE-SU-2025:0060-1
openSUSELeap 15.6grafana10.4.15-150200.3.64.1SUSE-SU-2025:0623-1
openSUSELeap 15.6trivy0.58.2-bp156.2.6.1openSUSE-SU-2025:0056-1
openSUSELeap 16.0cheat4.4.2-bp160.2.1openSUSE-SU-2025:20177-1
openSUSELeap 16.0govulncheck-vulndb0.0.20260723T184607-160000.1.1openSUSE-SU-2026:21483-1
openSUSETumbleweedamazon-ssm-agent3.3.1611.0-1.1openSUSE-SU-2025:14658-1
openSUSETumbleweedbrise20230603+git.5fdd2d6-5.1openSUSE-SU-2025:14752-1
openSUSETumbleweedcheat4.4.2-2.1openSUSE-SU-2025:15487-1
openSUSETumbleweedcri-o1.36.7-1.1openSUSE-SU-2026:12626-1
openSUSETumbleweedgovulncheck-vulndb0.0.20250108T191942-1.1openSUSE-SU-2025:14624-1
4 more for openSUSE in the JSON and on openSUSE's page.
AlmaLinux8grafana, grafana-selinux9.2.10-21.el8_10ALSA-2025:0401
Rocky Linux8grafana0:9.2.10-21.el8_10RLSA-2025:0401
Azure Linux2cri-o1.22.3-12AZL-55088
Azure Linux2packer1.9.5-7AZL-55094
Azure Linux3cri-ono fix listedAZL-55067
Azure Linux3packer1.9.5-5AZL-55060

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability is rated as an Important severity because an argument injection has been discovered in go-git, where an attackers can manipulate git-upload-pack flags, potentially enabling command or code execution leads to an exposure of sensitive data or other unintended actions, this vulnerability occurs exclusively in configurations using the file transport protocol.

Red Hat's mitigation

In cases where it is not possible to update to the latest version of go-git, it is recommended to enforce validation rules for values passed in the URL field.

ProductPackageStateAdvisory
OADP-1.4-RHEL-9oadp/oadp-mustgather-rhel9:1.4.5-34Fixed 2025-07-18RHSA-2025:11396
Red Hat Advanced Cluster Security 4.4advanced-cluster-security/rhacs-main-rhel8:4.4.8-2Fixed 2025-02-13RHSA-2025:1468
Red Hat Advanced Cluster Security 4.4advanced-cluster-security/rhacs-rhel8-operator:4.4.8-2Fixed 2025-02-13RHSA-2025:1468
Red Hat Advanced Cluster Security 4.4advanced-cluster-security/rhacs-roxctl-rhel8:4.4.8-2Fixed 2025-02-13RHSA-2025:1468
Red Hat Advanced Cluster Security 4.5advanced-cluster-security/rhacs-main-rhel8:4.5.6-2Fixed 2025-02-11RHSA-2025:1334
Red Hat Advanced Cluster Security 4.5advanced-cluster-security/rhacs-rhel8-operator:4.5.6-2Fixed 2025-02-11RHSA-2025:1334
Red Hat Advanced Cluster Security 4.5advanced-cluster-security/rhacs-roxctl-rhel8:4.5.6-2Fixed 2025-02-11RHSA-2025:1334
Red Hat Advanced Cluster Security 4.5advanced-cluster-security/rhacs-scanner-rhel8:4.5.6-2Fixed 2025-02-11RHSA-2025:1334
Red Hat Advanced Cluster Security 4.5advanced-cluster-security/rhacs-scanner-slim-rhel8:4.5.6-2Fixed 2025-02-11RHSA-2025:1334
Red Hat Advanced Cluster Security 4.5advanced-cluster-security/rhacs-scanner-v4-db-rhel8:4.5.6-1Fixed 2025-02-11RHSA-2025:1334
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-image-bundler-rhel9Affected
OpenShift Developer Tools and ServicesodoWill not fix
OpenShift Serverlessopenshift-serverless-1/client-kn-rhel8Affected
OpenShift Serverlessopenshift-serverless-1-func-utils-rhel8-containerAffected
OpenShift Serverlessopenshift-serverless-1/kn-cli-artifacts-rhel8Affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/multicluster-operators-subscription-rhel8Affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/submariner-rhel9-operatorAffected
Red Hat Ceph Storage 7rhceph/grafana-rhel10Affected
Red Hat Ceph Storage 7rhceph/grafana-rhel9Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-data-science-pipelines-argo-argoexec-rhel8Affected
205 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-21613.

Attack patterns (CAPEC)

  • CAPEC-41 Using Meta-characters in E-mail Headers to Inject Malicious Payloads Likelihood: High · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-137 Parameter Injection Likelihood: Medium · Severity: Medium
  • CAPEC-174 Flash Parameter Injection Likelihood: High · Severity: Medium
  • CAPEC-460 HTTP Parameter Pollution (HPP) Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON