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

Published Jan 6, 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.

Other sources

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

Microsoft

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.

NVD

Affected Software

11 affected componentsFixes available
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
IBM Edge Application Manager<=4.5
go-git project Go-git Go<5.13.0
Microsoft azl3 packer 1.9.5-5
Microsoft cbl2 cri-o 1.22.3-14
Microsoft cbl2 packer 1.9.5-7
Microsoft cbl2 cri-o 1.22.3-13
Microsoft cbl2 packer 1.9.5-5
Microsoft azl3 packer 1.9.5-6

Event History

Jan 6, 2025
CVE Published
via MITRE·04:20 PM
Data Sourced
via MITRE·04:20 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·04:20 PM
Data Sourced
via Red Hat·05:02 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·05:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:15 PM
Affected Software
Jan 16, 2025
Data Sourced
via Microsoft·08:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:00 AM
Affected Software
Updated
via Microsoft·08:00 AM
DescriptionSeverity
Aug 20, 2025
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-21614?

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

2

How do I fix CVE-2025-21614?

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

3

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.

4

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.

5

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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203