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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | grafana | 9.2.10-21.el8_10 | ALSA-2025:0401 |
| AlmaLinux:8 | grafana-selinux | 9.2.10-21.el8_10 | ALSA-2025:0401 |
| Debian:12 | golang-github-go-git-go-git | no fix listed | DEBIAN-CVE-2025-21614 |
| Debian:13 | golang-github-go-git-go-git | 5.13.2-1 | DEBIAN-CVE-2025-21614 |
| Debian:14 | golang-github-go-git-go-git | 5.13.2-1 | DEBIAN-CVE-2025-21614 |
| Go | github.com/go-git/go-git | no fix listed | GHSA-r9px-m959-cxf4 |
| Go | github.com/go-git/go-git/v4 | no fix listed | GO-2025-3367 |
| Go | github.com/go-git/go-git/v5 | 5.13.0 | GHSA-r9px-m959-cxf4 |
| Go | github.com/go-git/go-git/v5 | 5.13.0 | GO-2025-3367 |
| Go | gopkg.in/src-d/go-git.v4 | no fix listed | GO-2025-3367 |
| Go | gopkg.in/src-d/go-git.v4 | no fix listed | GHSA-r9px-m959-cxf4 |
| Rocky Linux:8 | grafana | 0:9.2.10-21.el8_10 | RLSA-2025:0401 |
Affected products (as reported)
Weakness: CWE-400 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/go-git/go-git/security/advisories/GHSA-r9px-m959-cxf4 x_refsource_CONFIRM