Live threats

All CVEs / Go-git Project

CVE-2025-21613Go-git Project Go-git

Critical 9.2 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Go-git.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
go-git_projectgo-git< 5.13.0

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.