# GO-2026-5693 - Go-git: Malformed Git object data may cause panics or resource exhaustion in github.com/go-git/go-git

Source: https://junglewise.ai/threats/go-2026-5693-go-git-malformed-git-object-data-may-cause-panics-or-9c82fa09  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-24  
License: CC BY 4.0 with a link back

Severity: info · Published 2026-07-24

Go-git: Malformed Git object data may cause panics or resource exhaustion in github.com/go-git/go-git

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). Vendors: [Go](https://junglewise.ai/threats/vendors/go).

## 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?** Informational severity, published 24 July 2026.

**Which products and versions are affected?** github.com/go-git/go-git/v5 (Go) SEMVER:introduced=0,fixed=5.19.1; github.com/go-git/go-git/v6 (Go) SEMVER:introduced=0,fixed=6.0.0-alpha.4.

**Is there a fix for This vulnerability?** Yes. github.com/go-git/go-git/v5 (Go): upgrade to 5.19.1 or later; github.com/go-git/go-git/v6 (Go): upgrade to 6.0.0-alpha.4 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected?** Check whether you run github.com/go-git/go-git/v5 (Go) or github.com/go-git/go-git/v6 (Go) 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.

## How to fix

- github.com/go-git/go-git/v5 (Go): upgrade to 5.19.1 or later

  ```sh
  go get github.com/go-git/go-git/v5@v5.19.1
  ```

- github.com/go-git/go-git/v6 (Go): upgrade to 6.0.0-alpha.4 or later

  ```sh
  go get github.com/go-git/go-git/v6@v6.0.0-alpha.4
  ```


## Affected products

- github.com/go-git/go-git/v5 (Go) SEMVER:introduced=0,fixed=5.19.1
- github.com/go-git/go-git/v6 (Go) SEMVER:introduced=0,fixed=6.0.0-alpha.4

## 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-git DoS via malformed Git object data](https://junglewise.ai/threats/go-git-dos-via-malformed-git-object-data-a3075e9b)
- [go-git path traversal via crafted repository data](https://junglewise.ai/threats/cve-2026-45571-go-git-path-traversal-via-crafted-repository-data)
- [go-git command injection in SSH transport via improper path escaping](https://junglewise.ai/threats/cve-2026-45570-go-git-command-injection-in-ssh-transport-via-improper-path)
