Allocation of Resources Without Limits or Throttling Affecting github.com/go-git/go-git/v5/plumbing/format/packfile package, versions <5.19.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Allocation of Resources Without Limits or Throttling vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMGOGITGOGITV5PLUMBINGFORMATPACKFILE-17111065
  • published31 May 2026
  • disclosed29 May 2026
  • creditN0zoM1z0, AyushParkara, kodareef5

Introduced: 29 May 2026

CVE NOT AVAILABLE CWE-770  (opens in a new tab)

How to fix?

Upgrade github.com/go-git/go-git/v5/plumbing/format/packfile to version 5.19.1 or higher.

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling through the parsing of maliciously crafted Git repository data, such as .pack, .idx, or loose objects. An attacker can cause the application to panic by providing a payload that exceeds the declared size of a slice for isCopyFromDelta(), or consume excessive resources by sending an unlimited stream of calls to isCopyFromDelta() or a stream of calls with excessively large targetSz values (i.e. amplification).

Note: This is only exploitable if the attacker can alter read-only files in the local repository's .git/objects/pack/ directory or if the user interacts with a malicious remote server.

CVSS Base Scores

version 4.0
version 3.1