CVE-2026-105437: Integer Overflow Leading to Heap Buffer Overflow in Git Three-Way Merge
- Vendor
- Git-Scm
Git's xdiff textual three-way merge implementation calculates merge-output size using a 32-bit signed integer. An attacker-controlled repository can supply an excessively large conflict-marker-size attribute and numerous separate merge conflicts, causing the size calculation to wrap and an undersized heap buffer to be allocated. Git subsequently writes largely attacker-controlled merge output beyond the allocation, causing a crash or more severe heap corruption. Affected operations include git merge, git rebase, git cherry-pick, and git merge-tree. Git hosting services can expose the flaw through automated server-side mergeability checks that use repository-controlled attributes.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Exploitation can crash Git and disrupt merge operations or hosting-service workflows. The large, largely attacker-controlled heap overwrite may permit more severe memory corruption and potentially arbitrary code execution in the Git process context, although code execution is not established by the technical vulnerability details. Malicious repository input can remain small because the oversized output is generated during merging.
Mitigation
If you can’t patch tonight, do this now.
If upgrading is not immediately possible, add '* conflict-marker-size=7' to each repository's info/attributes file to override repository-controlled conflict-marker sizes. Alternatively, disable server-side mergeability checks for untrusted repositories.
Remediation
Patch, then assume compromise.
Upgrade Git to a fixed release for the applicable maintenance line: 2.50.2, 2.51.3, 2.52.1, 2.53.1, 2.54.1, 2.55.1, or 2.56.1, or a later patched release. Distribution-provided security backports are also applicable. The fix uses size_t for merge-output sizing and checks every addition for overflow, terminating with an error when necessary. For GitLab CE/EE, the fix is included in 19.3.8, 19.4.6, and 19.5.4, with backports in 18.11.15, 19.0.12, 19.1.11, and 19.2.11; upgrade to an appropriate patched release.
Exploits
1 exploit validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2026-105437 exploited in the wild?
- As of Nov 28, 2026, Mallory has no reports of CVE-2026-105437 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-105437?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2026-105437, the earliest disclosed Nov 11, 2026.
- Is there a patch for CVE-2026-105437?
- Upgrade Git to a fixed release for the applicable maintenance line: 2.50.2, 2.51.3, 2.52.1, 2.53.1, 2.54.1, 2.55.1, or 2.56.1, or a later patched release. Distribution-provided security backports are also applicable.
- What products are affected by CVE-2026-105437?
- Git-Scm Git.
- How severe is CVE-2026-105437?
- CVE-2026-105437 has a CVSS v3.1 score of 7.5 (High) and an EPSS score of 0.53% (38th percentile) as of Nov 28, 2026.
Recent activity
57 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.