CVEfocus › CVE database › CVE-2025-21614

CVE-2025-21614go-git clients vulnerable to DoS via maliciously crafted Git server replies

CVSS 7.5 HighEPSS 1.0% (higher than 62% of CVEs)Published 2025-01-06Updated 2025-08-26Assigner: GitHub_M

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.

CWE-400

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

8Fixed
8Fix pending
1Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 25.10golang-github-go-git-go-gitNot affected
vulnerable_code_not_present
Ubuntu 24.04golang-github-go-git-go-gitFix pending5.4.2-4ubuntu0.24.04.3+esm2 (Ubuntu Pro)UBUNTU-CVE-2025-21614
Ubuntu 22.04golang-github-go-git-go-gitFix pending5.4.2-3ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2025-21614
Debian 14golang-github-go-git-go-gitFixed5.13.2-1DEBIAN-CVE-2025-21614
Debian 13golang-github-go-git-go-gitFixed5.13.2-1DEBIAN-CVE-2025-21614
Debian 12golang-github-go-git-go-gitFix pendingDEBIAN-CVE-2025-21614
Red Hat Enterprise Linux 9grafanaFix pending
Affected
Red Hat Enterprise Linux 9grafana-selinuxFix pending
Affected
Red Hat Enterprise Linux 8grafanaFixed0:9.2.10-21.el8_10RHSA-2025:0401
Red Hat Enterprise Linux 8grafana-selinuxFixed0:9.2.10-21.el8_10RHSA-2025:0401
AlmaLinux 8grafanaFixed9.2.10-21.el8_10ALSA-2025:0401
AlmaLinux 8grafana-selinuxFixed9.2.10-21.el8_10ALSA-2025:0401
Rocky Linux 8grafanaFixed0:9.2.10-21.el8_10RLSA-2025:0401
Go librarygithub.com/go-git/go-gitFix pendingGHSA-r9px-m959-cxf4
Go librarygithub.com/go-git/go-git/v4Fix pendingGO-2025-3367
Go librarygithub.com/go-git/go-git/v5Fixed5.13.0GHSA-r9px-m959-cxf4
Go librarygopkg.in/src-d/go-git.v4Fix pendingGHSA-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.

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.