Memory Exhaustion Vulnerability in libgit2 Used by Git Applications
CVE-2026-53585

5.3MEDIUM

Key Information:

Vendor

Libgit2

Status
Vendor
CVE Published:
20 August 2026

What is CVE-2026-53585?

libgit2, a portable C implementation of the core Git methods, has a vulnerability that allows for memory exhaustion through unvalidated allocations. Specifically, the function git_delta_apply in version prior to 1.8.6 and 1.9.5 accepts an attacker-controlled size parameter without proper validation. This flaw can be exploited using malicious pack data via operations such as git_clone, git_fetch, or a local attacker-supplied repository. By employing a small multi-level OFS_DELTA chain, attackers could potentially retain significantly large memory allocations, leading to exhaustion of system resources. The issue has been addressed in libgit2 versions 1.8.6 and 1.9.5.

Affected Version(s)

libgit2 < 1.8.6 < 1.8.6

libgit2 >= 1.9.0, < 1.9.5 < 1.9.0, 1.9.5

References

CVSS V3.1

Score:
5.3
Severity:
MEDIUM
Confidentiality:
None
Integrity:
None
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.