CVE-2025-21614
JSON

7.5high

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

Severity
7.5high CVSS:3.1 by GitHub_M
Exploit likelihood
0.71% (higher than 54% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-r9px-m959-cxf4GO-2025-3367

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

Product or packageVersionsReported by
go-git go-git>= 4.0.0, < 5.13.0CVE List
gopkg.in/src-d/go-git.v4 (Go)from 4.0.0 up to 4.13.1, from 4.0.0GitHub Advisory Database, Go Vulnerability Database
github.com/go-git/go-git/v5 (Go)before 5.13.0GitHub Advisory Database, Go Vulnerability Database
github.com/go-git/go-git (Go)from 4.0.0 up to 4.13.1GitHub Advisory Database
github.com/go-git/go-git/v4 (Go)from 4.0.0Go Vulnerability Database
go-git_project go-gitbefore 5.13.0NVD

All scores

GitHub_M7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CISA-ADP7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-20CWE-400CWE-770

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
Impact

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.

This is a go-git implementation issue and does not affect the upstream git cli.

Patches

Users running versions of go-git from v4 and above are recommended to upgrade to v5.13 in order to mitigate this vulnerability.

Workarounds

In cases where a bump to the latest version of go-git is not possible, we recommend limiting its use to only trust-worthy Git servers.

Credit

Thanks to Ionut Lalu for responsibly disclosing this vulnerability to us.

Go Vulnerability Database

Clients vulnerable to DoS via maliciously crafted Git server replies in github.com/go-git/go-git

NVD (es)

Go-git es una librería de implementación de Git altamente extensible escrita en Go puro. Se descubrió una vulnerabilidad de denegación de servicio (DoS) en versiones de Go-git anteriores a la v5.13. Esta vulnerabilidad permite a un atacante realizar ataques de denegación de servicio al proporcionar respuestas especialmente manipuladas desde un servidor Git que desencadenan el agotamiento de recursos en los clientes de Go-git. Se recomienda a los usuarios que ejecutan versiones de Go-git de la v4 y posteriores que actualicen a la v5.13 para mitigar esta vulnerabilidad.

References

Related

Sources

SourceRecordLicence
CVE ListCVE-2025-21614 changed 2025-08-26CVE Terms of Use
GitHub Advisory DatabaseGHSA-r9px-m959-cxf4 changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2025-3367 changed 2026-02-04CC-BY-4.0
NVDCVE-2025-21614 changed 2026-06-17Public domain