CVE-2025-21614 – gopkg.in/src-d/go-git.v4
Package
Manager: go
Name: gopkg.in/src-d/go-git.v4
Vulnerable Version: >=4.0.0 <=4.13.1
Severity
Level: High
CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
EPSS: 0.00128 pctl0.33059
Details
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.
Metadata
Created: 2025-01-06T16:20:28Z
Modified: 2025-08-27T14:24:37Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/01/GHSA-r9px-m959-cxf4/GHSA-r9px-m959-cxf4.json
CWE IDs: ["CWE-20", "CWE-400", "CWE-770"]
Alternative ID: GHSA-r9px-m959-cxf4
Finding: F002
Auto approve: 1