Vulnerability · Published Jan 6, 2025 · Assigned by GitHub_M

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

High 7.5

In plain English

A high-severity uncontrolled resource consumption in go-git from go-git. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 54% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.7%top 46.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8grafana9.2.10-21.el8_10ALSA-2025:0401
AlmaLinux:8grafana-selinux9.2.10-21.el8_10ALSA-2025:0401
Debian:12golang-github-go-git-go-gitno fix listedDEBIAN-CVE-2025-21614
Debian:13golang-github-go-git-go-git5.13.2-1DEBIAN-CVE-2025-21614
Debian:14golang-github-go-git-go-git5.13.2-1DEBIAN-CVE-2025-21614
Gogithub.com/go-git/go-gitno fix listedGHSA-r9px-m959-cxf4
Gogithub.com/go-git/go-git/v4no fix listedGO-2025-3367
Gogithub.com/go-git/go-git/v55.13.0GHSA-r9px-m959-cxf4
Gogithub.com/go-git/go-git/v55.13.0GO-2025-3367
Gogopkg.in/src-d/go-git.v4no fix listedGO-2025-3367
Gogopkg.in/src-d/go-git.v4no fix listedGHSA-r9px-m959-cxf4
Rocky Linux:8grafana0:9.2.10-21.el8_10RLSA-2025:0401

Affected products (as reported)

VendorProductVersions
go-git go-git >= 4.0.0, < 5.13.0

Weakness: CWE-400 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References