Heap Out-of-Bounds Vulnerability in Libgit2 by libgit2
CVE-2026-53587

7.5HIGH

Key Information:

Vendor

Libgit2

Status
Vendor
CVE Published:
20 August 2026

What is CVE-2026-53587?

libgit2, a portable C implementation of Git core methods, contains a vulnerability where it performs a fixed-size strncmp in set_data without verifying the smart-protocol pkt-line capability buffer's size. This flaw can allow a malicious Git server to manipulate the data, leading to a heap out-of-bounds write that may crash clients during their interaction with the Git server via various protocols such as HTTP, HTTPS, SSH, or the Git protocol. To mitigate this issue, users should upgrade to libgit2 versions 1.8.6 or later, or 1.9.5 or later.

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:
7.5
Severity:
HIGH
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

.