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
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
Distribution packages (16) (every link below opens in a new tab)
- Debian 13 (trixie)git · not fixed yet
- Debian 12 (bookworm)git · not fixed yet
- Alpine 3.24git · fixed in 2.54.1-r0
- Alpine 3.23git · fixed in 2.52.1-r0
- RHEL 10git · not fixed yet
- RHEL 9git · not fixed yet
- RHEL 8git · not fixed yet
- SLES 16.1git · not fixed yet
- SLES 16.1libgit2 · not affected
- SLES 16.0git · not fixed yet
- SLES 16.0libgit2 · not affected
- SLES 15 SP7git · not fixed yet
- SLES 15 SP7libgit2 · not affected
- openSUSE Leap 16.0git · not fixed yet
- openSUSE Leap 16.0libgit2 · not affected
- openSUSE Tumbleweedgit · fixed in 2.56.1-1.1
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)
Write-up (3): hackerone.com, github.blog and more
- CVE record: cve.org (opens in a new tab)
- Discussion: Git 2.56.1 fixes six vulnerabilities, including RCE on recursive clone (opens in a new tab)
- Discussion: GitLab patch release 19.5.4 fixes CVE-2026-105437 (vulnerability in Git) (opens in a new tab)
- Newsletter: Risky Bulletin: France blames Iran for the October supermarket fridge hacks (opens in a new tab)
- Newsletter: Srsly Risky Biz: Iranian Hacks With Russian Characteristics (opens in a new tab)
- KISA notice: KISA 보호나라: Git 제품 보안 업데이트 권고 (opens in a new tab)
- Repository: googlesky/CVE-2026-105437 (opens in a new tab)