CVE-2025-21613
Argument Injection via the URL field in github.com/go-git/go-git
9.8
CRITICAL
CVSS 3.1
EPSS 3.8%
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.
How to fix CVE-2025-21613
To remediate CVE-2025-21613, upgrade the affected package to a fixed version below.
- —no fix listed
- —no fix listed
- —upgrade to 5.13.0 or later
- —upgrade to 5.13.0 or later
- —no fix listed
- —no fix listed
Is CVE-2025-21613 being exploited?
Low — EPSS is 3.8%, meaning exploitation activity has not been observed at scale.
Affected packages (6)
- from 0
- >= 4.0.0
- from 0, < 5.13.0
- from 0, < 5.13.0
- >= 4.0.0, <= 4.13.1
- >= 4.0.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | 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 |
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |