Buffer overflowin Git.
Proof of concept public (GitHub).
Affected versions of Git have a heap buffer overflow in the three-way merge code (xdiff), which an attacker can trigger through a repository they control. When Git merges a file, it first adds up the size of the merged output, allocates a buffer of that size, and then writes the output into it. That total was kept in a 32-bit signed integer. The conflict-marker-size attribute, which can be set from a committed .gitattributes file, accepts any positive integer, and the markers are written several times for every conflict. A small file with a huge marker size and many separate conflicts can therefore push the total past 4 GiB, so the integer wraps to a small value and Git writes attacker-controlled merge output past the end of a buffer that is too small.
- Upgrade Git to 2.49.1, 2.50.2, 2.51.3, 2.52.1, 2.53.1 or later, whichever matches your release line.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 5 Oct 2026CVE ID reserved by GitLab.
- 10 Nov 2026Published in the CVE List.
- 11 Nov 2026First public proof of concept on GitHub.
- 16 Nov 2026CVE record last updated.
Attack code anyone can find
Exploit maturity: Proof of concept (GitHub). CISA assessment (SSVC): exploitation poc.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Other Git vulnerabilities
Same weakness: Heap-based buffer overflow
Patchminder. CVE-2026-105437: Buffer overflow in Git. https://patchminder.com/cve/cve-2026-105437/ (accessed 5 December 2026).