Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS1yOXB4LW05NTktY3hmNM4ABC-l
go-git clients vulnerable to DoS via maliciously crafted Git server replies
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.
Permalink: https://github.com/advisories/GHSA-r9px-m959-cxf4JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1yOXB4LW05NTktY3hmNM4ABC-l
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: 2 days ago
Updated: 2 days ago
CVSS Score: 7.5
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS Percentage: 0.00043
EPSS Percentile: 0.11049
Identifiers: GHSA-r9px-m959-cxf4, CVE-2025-21614
References:
- https://github.com/go-git/go-git/security/advisories/GHSA-r9px-m959-cxf4
- https://nvd.nist.gov/vuln/detail/CVE-2025-21614
- https://github.com/advisories/GHSA-r9px-m959-cxf4
Blast Radius: 31.0
Affected Packages
go:github.com/go-git/go-git
Dependent packages: 126Dependent repositories: 147
Downloads:
Affected Version Ranges: >= 4.0.0, <= 4.13.1
No known fixed version
All affected versions: 4.0.0, 4.1.0, 4.1.1, 4.2.0, 4.2.1, 4.3.0, 4.3.1, 4.4.0, 4.4.1, 4.5.0, 4.6.0, 4.7.0
go:github.com/go-git/go-git/v5
Dependent packages: 8,164Dependent repositories: 13,417
Downloads:
Affected Version Ranges: < 5.13.0
Fixed in: 5.13.0
All affected versions: 5.0.0, 5.1.0, 5.2.0, 5.3.0, 5.4.0, 5.4.1, 5.4.2, 5.5.0, 5.5.1, 5.5.2, 5.6.0, 5.6.1, 5.7.0, 5.8.0, 5.8.1, 5.9.0, 5.10.0, 5.10.1, 5.11.0, 5.12.0
All unaffected versions: 5.13.0, 5.13.1
go:gopkg.in/src-d/go-git.v4
Dependent packages: 6,399Dependent repositories: 7,932
Downloads:
Affected Version Ranges: >= 4.0.0, <= 4.13.1
No known fixed version
All affected versions: 4.0.0, 4.1.0, 4.1.1, 4.2.0, 4.2.1, 4.3.0, 4.3.1, 4.4.0, 4.4.1, 4.5.0, 4.6.0, 4.7.0, 4.7.1, 4.8.0, 4.8.1, 4.9.0, 4.9.1, 4.10.0, 4.11.0, 4.12.0, 4.13.0, 4.13.1