7.5
CWE
400 20 770
EPSS
0.043%
Advisory Published
Advisory Published
Updated

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

First published: Mon Jan 06 2025(Updated: )

### 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.

Credit: security-advisories@github.com security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
go/github.com/go-git/go-git>=4.0.0<=4.13.1
go/github.com/go-git/go-git/v5<5.13.0
5.13.0
go/gopkg.in/src-d/go-git.v4>=4.0.0<=4.13.1
go-git<5.13.0

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2025-21614?

    CVE-2025-21614 is classified as a denial of service (DoS) vulnerability.

  • How do I fix CVE-2025-21614?

    To fix CVE-2025-21614, upgrade to version 5.13.0 or later of go-git.

  • Which versions of go-git are affected by CVE-2025-21614?

    CVE-2025-21614 affects go-git versions prior to v5.13 and specific versions between 4.0.0 and up to 4.13.1.

  • What type of attack does CVE-2025-21614 enable?

    CVE-2025-21614 allows an attacker to perform denial of service attacks through crafted Git server responses.

  • What should I do if I cannot upgrade to a fixed version for CVE-2025-21614?

    If you cannot upgrade, consider implementing network security measures to filter malicious Git responses.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203