---
id: GO-2026-5693
aliases:
  - GHSA-w5pp-99ch-qj29
title: >-
  Go-git: Malformed Git object data may cause panics or resource exhaustion in
  github.com/go-git/go-git
summary: >-
  Go-git: Malformed Git object data may cause panics or resource exhaustion in
  github.com/go-git/go-git
severity: none
vendor: go-git
product: github.com/go-git/go-git/v5
ecosystem: go
affected:
  - github.com/go-git/go-git/v5 < 5.19.1
  - github.com/go-git/go-git/v6 < 6.0.0-alpha.4
patched:
  - github.com/go-git/go-git/v5 5.19.1
  - github.com/go-git/go-git/v6 6.0.0-alpha.4
published: '2026-07-24'
updated: '2026-07-24'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GO-2026-5693'
references:
  - url: 'https://github.com/go-git/go-git/security/advisories/GHSA-w5pp-99ch-qj29'
tags:
  - osv
  - go
ingestedAt: '2026-07-25T19:08:12.774Z'
---

## Overview

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

## Affected packages

- `github.com/go-git/go-git/v5 < 5.19.1`
- `github.com/go-git/go-git/v6 < 6.0.0-alpha.4`

## Remediation

Upgrade to a patched release:

- `github.com/go-git/go-git/v5 5.19.1`
- `github.com/go-git/go-git/v6 6.0.0-alpha.4`
