CVE-2025-21614go-git clients vulnerable to DoS via maliciously crafted Git server replies
go-git is a highly extensible git implementation library written in pure Go. A denial of service (DoS) vulnerability was discovered in go-git versions prior to v5.13. This vulnerability allows an attacker to perform denial of service attacks by providing specially crafted responses from a Git server which triggers resource exhaustion in go-git clients. Users running versions of go-git from v4 and above are recommended to upgrade to v5.13 in order to mitigate this vulnerability.
What to do
Fixed builds are available from AlmaLinux, Debian, Go, Red Hat, Rocky Linux: see the table below for the fixed version per release.
Debian, Go, Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 25.10 | golang-github-go-git-go-git | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | golang-github-go-git-go-git | Fix pending | 5.4.2-4ubuntu0.24.04.3+esm2 (Ubuntu Pro) | UBUNTU-CVE-2025-21614 |
| Ubuntu 22.04 | golang-github-go-git-go-git | Fix pending | 5.4.2-3ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2025-21614 |
| Debian 14 | golang-github-go-git-go-git | Fixed | 5.13.2-1 | DEBIAN-CVE-2025-21614 |
| Debian 13 | golang-github-go-git-go-git | Fixed | 5.13.2-1 | DEBIAN-CVE-2025-21614 |
| Debian 12 | golang-github-go-git-go-git | Fix pending | DEBIAN-CVE-2025-21614 | |
| Red Hat Enterprise Linux 9 | grafana | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | grafana-selinux | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | grafana | Fixed | 0:9.2.10-21.el8_10 | RHSA-2025:0401 |
| Red Hat Enterprise Linux 8 | grafana-selinux | Fixed | 0:9.2.10-21.el8_10 | RHSA-2025:0401 |
| AlmaLinux 8 | grafana | Fixed | 9.2.10-21.el8_10 | ALSA-2025:0401 |
| AlmaLinux 8 | grafana-selinux | Fixed | 9.2.10-21.el8_10 | ALSA-2025:0401 |
| Rocky Linux 8 | grafana | Fixed | 0:9.2.10-21.el8_10 | RLSA-2025:0401 |
| Go library | github.com/go-git/go-git | Fix pending | GHSA-r9px-m959-cxf4 | |
| Go library | github.com/go-git/go-git/v4 | Fix pending | GO-2025-3367 | |
| Go library | github.com/go-git/go-git/v5 | Fixed | 5.13.0 | GHSA-r9px-m959-cxf4 |
| Go library | gopkg.in/src-d/go-git.v4 | Fix pending | GHSA-r9px-m959-cxf4 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- go-git: affected: >= 4.0.0, < 5.13.0
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.