# go-git DoS via malformed Git object data

Source: https://junglewise.ai/threats/go-git-dos-via-malformed-git-object-data-a3075e9b  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-05-29. Updated: 2026-05-29  
License: CC BY 4.0 with a link back

Severity: medium · CVSS 6.5 · Published 2026-05-29

go-git is a library used by applications to interact with Git repositories. A vulnerability was found where processing specially crafted Git data can cause an application to crash or consume excessive system resources. This could lead to a service outage for any tool that clones or opens untrusted repositories. Users should update to the latest version to maintain service availability.

Technologies: [github.com/go-git/go-git/v5 (Go)](https://junglewise.ai/threats/technologies/github-com-go-git-go-git-v5), [github.com/go-git/go-git/v6 (Go)](https://junglewise.ai/threats/technologies/github-com-go-git-go-git-v6), [Go-Git](https://junglewise.ai/threats/technologies/go-git). Vendors: [Go](https://junglewise.ai/threats/vendors/go), [Go-Git](https://junglewise.ai/threats/vendors/go-git).

## Quick answers

**Is This vulnerability exploited in the wild?** No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.

**How severe is This vulnerability?** Medium severity, with a CVSS score of 6.5, published 29 May 2026.

**Which products and versions are affected?** github.com/go-git/go-git/v5 (Go) <= 5.19.0; github.com/go-git/go-git/v6 (Go) <= 6.0.0-alpha.3; Go-Git <= 5.19.0.

**Is there a fix for This vulnerability?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is This vulnerability attacked?** It is attacked over the network, in a software library.

**Am I affected?** Check whether you run github.com/go-git/go-git/v5 (Go), github.com/go-git/go-git/v6 (Go) or Go-Git at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

Multiple denial-of-service (DoS) vulnerabilities exist in go-git due to improper handling of malformed Git object data. The root cause is uncontrolled resource consumption (CWE-400) when parsing malicious .pack, .idx, or loose objects. An attacker can exploit this by providing a crafted repository to an application that uses go-git for operations like cloning, fetching, or opening repositories. This can result in a process panic or resource exhaustion. The issue is fixed in versions 5.19.1 and 6.0.0-alpha.4.

## Affected products

- go-git go-git/v5 <= 5.19.0
- go-git go-git/v6 <= 6.0.0-alpha.3

## Timeline

- 2026-05-18: disclosed: Initial disclosure to maintainers
- 2026-05-29: advisory: GitHub Advisory published

## References

- [https://api.github.com/users/hiddeco](https://api.github.com/users/hiddeco)
- [https://github.com/hiddeco](https://github.com/hiddeco)
- [https://api.github.com/users/hiddeco/gists%7B/gist_id%7D](https://api.github.com/users/hiddeco/gists%7B/gist_id%7D)
- [https://api.github.com/users/hiddeco/repos](https://api.github.com/users/hiddeco/repos)
- [https://avatars.githubusercontent.com/u/10063039?v=4](https://avatars.githubusercontent.com/u/10063039?v=4)
- [https://api.github.com/users/hiddeco/events%7B/privacy%7D](https://api.github.com/users/hiddeco/events%7B/privacy%7D)

## Related threats

- [go-git path traversal via malicious reference names](https://junglewise.ai/threats/cve-2026-71557-go-git-path-traversal-via-malicious-reference-names)
- [go-git symlink traversal in worktree operations](https://junglewise.ai/threats/cve-2026-71556-go-git-symlink-traversal-in-worktree-operations)
- [GO-2026-5693 - Go-git: Malformed Git object data may cause panics or resource exhaustion in github.com/go-git/go-git](https://junglewise.ai/threats/go-2026-5693-go-git-malformed-git-object-data-may-cause-panics-or-9c82fa09)
- [go-git go-billy denial of service via improper input handling](https://junglewise.ai/threats/cve-2026-44740-go-git-go-billy-denial-of-service-via-improper-input-handling)
- [go-git path traversal via crafted repository data](https://junglewise.ai/threats/cve-2026-45571-go-git-path-traversal-via-crafted-repository-data)
