Patch Ticker
EnglishEN
Elevated

Git three-way merge heap buffer overflow can corrupt memory

CVE-2026-105437

Servers that merge code with Git can be crashed or hacked by a malicious repository.

CVE
CVE-2026-105437 (opens in a new tab)
Score
CVSS 7.5
First seen
7.5

Mitigation

Update to the fixed version of your Git line. Find your product's fixed version in the list below. If you cannot update right away, add * conflict-marker-size=7 to the repository's info/attributes, or turn off server-side mergeability checks for untrusted repositories.

Fixed version by product

Git 2.49
2.49.1 or later
Git 2.50
2.50.2 or later
Git 2.51
2.51.3 or later
Git 2.52
2.52.1 or later
Git 2.53
2.53.1 or later
Git 2.54
2.54.1 or later
Git 2.55
2.55.1 or later
Git 2.56
2.56.1 or later
3 moreShow less

Can't update yet?

Add this line to info/attributes:

* conflict-marker-size=7

A wrong setting can stop the service or lock you out. Check the source links below first.

Summary

An integer overflow in Git's merge code (xdiff) causes a heap buffer overflow. A small .gitattributes file can make an attacker crash Git or corrupt memory, and servers that merge untrusted pull requests are most at risk.

Affected when

Server reads attributes from trees in the repository (attr.tree or --attr-source)

2 other Incidents of this product in the last 30 days

Incidents by product: git

Other recent Incidents of git

All Incidents of 2026-11-11

Distribution packages (16) (every link below opens in a new tab)

Sources: Debian Security Tracker · Alpine Linux secdb · Red Hat Security Data (CC BY 4.0) · SUSE CSAF VEX (CC BY 4.0)

Read the write-up · hackerone.com (opens in a new tab)