CVE-2025-21613

go-git has an Argument Injection via the URL field

Published Jan 6, 2025 CVSS 4.0 · 9.2 Critical EPSS 1.3% KEV · Not listed
Description
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-0045 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.
Github GHSA Github GHSA GHSA-v725-9546-7q7m go-git has an Argument Injection via the URL field
Ubuntu USN Ubuntu USN USN-8088-1 go-git vulnerabilities
History
Type Values Removed Values Added
Metrics epss

{'score': 0.00112}

epss

{'score': 0.001}

Type Values Removed Values Added
First Time appeared Go-git Project
Go-git Project go-git
CPEs cpe:2.3:a:go-git_project:go-git:*:*:*:*:*:go:*:*
Vendors & Products Go-git Project
Go-git Project go-git
Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift_gitops:1.15::el8
Type Values Removed Values Added
First Time appeared Redhat openshift Gitops
CPEs cpe:/a:redhat:openshift_gitops:1.14::el8
Vendors & Products Redhat openshift Gitops
Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift:4.16::el9
Type Values Removed Values Added
First Time appeared Redhat openstack
CPEs cpe:/a:redhat:openstack:16.2::el8
cpe:/a:redhat:openstack:17.1::el9
Vendors & Products Redhat openstack
Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift:4.18::el9
Type Values Removed Values Added
CPEs cpe:/a:redhat:advanced_cluster_security:4.4::el8
Type Values Removed Values Added
First Time appeared Redhat
Redhat advanced Cluster Security
Redhat enterprise Linux
Redhat openshift
Redhat openshift Builds
Redhat rhel Eus
Redhat trusted Profile Analyzer
CPEs cpe:/a:redhat:advanced_cluster_security:4.5::el8
cpe:/a:redhat:advanced_cluster_security:4.6::el8
cpe:/a:redhat:enterprise_linux:8
cpe:/a:redhat:openshift:4.17::el9
cpe:/a:redhat:openshift_builds:1.1::el9
cpe:/a:redhat:openshift_builds:1.2::el9
cpe:/a:redhat:rhel_eus:9.4
cpe:/a:redhat:trusted_profile_analyzer:1.2::el9
Vendors & Products Redhat
Redhat advanced Cluster Security
Redhat enterprise Linux
Redhat openshift
Redhat openshift Builds
Redhat rhel Eus
Redhat trusted Profile Analyzer
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title go-git has an Argument Injection via the URL field
Weaknesses CWE-88
References
Metrics cvssV4_0

{'score': 9.2, 'vector': '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'}