Heap Buffer Overflow in Git Affects Multiple Versions
CVE-2026-105437

7.5HIGH

Key Information:

Vendor

Git

Status
Vendor
CVE Published:
10 November 2026

What is CVE-2026-105437?

The heap buffer overflow vulnerability in Git arises during the three-way merge process, particularly affected by the inappropriate handling of conflict markers in a .gitattributes file. When the size of the output exceeds the buffer limit (4 GiB), it leads to integer overflow, allowing attackers to write past allocated memory spaces. This situation not only crashes the Git application but may also result in severe heap corruption due to the control attackers can exert over the merge output. Specifically, any command that performs a textual three-way merge can trigger this issue. Although a patch has been implemented to rectify the problem by adjusting size calculations to prevent overflow, immediate server-side measures, such as adjusting conflict marker settings or turning off specific merge checks, are advisable for users unable to upgrade promptly.

Affected Version(s)

Git 0 < 2.49.1

Git 2.50.0-rc0 < 2.50.2

Git 2.51.0-rc0 < 2.51.3

References

CVSS V3.1

Score:
7.5
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
High
Privileges Required:
None
User Interaction:
Required
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

Thanks [taise](https://hackerone.com/taise) for reporting this vulnerability through HackerOne
.