CVE-2025-21613Go-git Project Go-git
Critical 9.2 No auth needed
Follow: this CVE · Go-git Project · Go-git Project Go-git We alert you by email or Slack (account required).
- Priority
- 70
- CVSS 4.0
- 9.2
- EPSS
- 1.4% probability of exploitation in 30 days · percentile 72
- Auth required
- No
- Published
- Jan 6, 2025
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-88
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- 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/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
What happens
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.
What to do
- Apply the vendor's security update for Go-git.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/go-git/go-git/v4 |
≥ 4.0.0 |
no fixed version | — |
| Go | github.com/go-git/go-git/v5 |
< 5.13.0 |
5.13.0 |
go get github.com/go-git/go-git/v5@v5.13.0 |
| Go | github.com/go-git/go-git/v5 |
< 5.13.0 |
5.13.0 |
go get github.com/go-git/go-git/v5@v5.13.0 |
| Go | gopkg.in/src-d/go-git.v4 |
≥ 4.0.0 ≤ 4.13.1 |
no fixed version | — |
| Go | gopkg.in/src-d/go-git.v4 |
≥ 4.0.0 |
no fixed version | — |
Per OSV / GitHub Advisories (GO-2025-3368, GHSA-v725-9546-7q7m). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| go-git_project | go-git | < 5.13.0 |
Official advisories
- Red Hat Security Advisory: grafana security update · Red Hat · RHSA-2025:3344 · Nov 23, 2026 High
- cri-o-1.36.7-1.1 on GA media · SUSE · openSUSE-SU-2026:12626-1 · Nov 20, 2026 Critical
- Security update for govulncheck-vulndb · SUSE · openSUSE-SU-2026:21483-1 · Jul 30, 2026 Critical
- Security update for cheat · SUSE · openSUSE-SU-2025:20177-1 · Dec 18, 2025 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Vendor Advisory