Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconPush crafted repository to forge
-
DeliveryCommit .gitattributes with huge conflict-marker-size
-
ExploitOpen merge/pull request
-
InstallServer runs git-merge-tree mergeability check
-
C232-bit size total wraps past 4 GiB
-
ExecuteAttacker data written past heap buffer
-
ImpactCrash or heap corruption on server
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires a repository under attacker control containing a committed .gitattributes that sets conflict-marker-size to a very large positive integer, combined with a small file crafted to produce many separate merge conflicts so the summed output exceeds 4 GiB. Triggering requires a textual three-way merge to run against that repository via git-merge, git-rebase, git-cherry-pick, or git-merge-tree. The highest-impact, no-interaction path requires a server/forge that both runs server-side git-merge-tree mergeability checks AND reads attributes from repository trees (attr.tree or --attr-source); there the attacker only needs the ability to push a branch and open a merge/pull request. Limiting factors: on clients a user must actively choose to merge the malicious repository (UI:R); on servers that do not read in-tree attributes or do not run mergeability checks the in-tree .gitattributes does not take effect. Workarounds that defeat exploitation: setting 'conflict-marker-size=7' in each repository's info/attributes (overrides in-tree values) or disabling server-side mergeability checks for untrusted repositories; the vendor states upgrading is the complete fix. |
| Impact | Signals point to a genuine but not emergency-grade priority. The input CVSS is 7.5 (AV:N/AC:H/PR:N/UI:R) and the vuln.today decision label is 'this_week', consistent with prompt-but-not-drop-everything handling. No CISA KEV listing is present, so exploitation status is 'no confirmed active exploitation'; a HackerOne report (#4044249) is referenced, giving a public PoC reference that is not verified as working exploit code. EPSS and SSVC values were not supplied, so probabilistic exploitation likelihood cannot be quoted. The CVSS vector and the description are partially in tension: the vector encodes UI:R/PR:N (a local victim who chooses to merge an attacker-controlled repository), but the description's most serious path is server-side - a Git forge running git-merge-tree with attribute reading (attr.tree/--attr-source) where any user who can push a branch and open a merge/pull request triggers the overflow with no victim interaction (effectively UI:N and requiring push privileges). Defenders should treat the forge scenario as the real driver of risk. The confirmed impact is a crash (DoS); the 'C:H/I:H' claim rests on the description's statement that large, attacker-controlled heap corruption makes 'worse' outcomes possible - code execution is plausible but not demonstrated, so the high confidentiality/integrity ratings should be read as potential, not proven. |
| Exploit ScenarioDerived | On a Git forge that uses server-side git-merge-tree mergeability checks with in-tree attribute reading enabled, an attacker pushes a small repository containing a committed .gitattributes that sets a huge conflict-marker-size plus many separate conflicts, then opens a merge/pull request; the merge sums output size in a 32-bit signed int, wraps past 4 GiB, and writes attacker-controlled data past an undersized heap buffer, crashing the service and potentially corrupting the heap. On clients the same trigger fires when a victim runs git-merge, git-rebase, or git-cherry-pick against the malicious repository. A public PoC reference exists (HackerOne #4044249); it is not verified as working exploit code. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 10, 2026
Heap buffer overflow in Git's three-way merge code (xdiff) can crash Git or corrupt heap memory when an attacker-controlled repository uses a committed .gitattributes with a very large conflict-marker-size and enough conflicts to push the merged-output size past 4 GiB, wrapping a signed 32-bit counter. Git versions in the EUVD ranges below are affected; the highest-impact path is a forge or server that runs server-side git-merge-tree mergeability checks and reads attributes from repository trees, while clients require a user to initiate the merge (UI:R) and attack complexity is high (AC:H) with no privileges required (PR:N). Vendor patches are available, and no public exploit identified at time of analysis; no CISA KEV entry is present, and the supplied decision label places remediation in the this-week priority category rather than an emergency-grade response.
RemediationAI
Vendor-released patch: Git 2.49.1, 2.50.2, 2.51.3, 2.52.1, 2.53.1, 2.54.1, 2.55.1, and 2.56.1; the vendor states upgrading is the complete fix. If upgrading immediately is not possible, add conflict-marker-size=7 to each repository's info/attributes, which overrides any in-tree .gitattributes, or disable server-side mergeability checks for untrusted repositories; both are workarounds rather than complete fixes, and disabling mergeability checks removes that feature for untrusted content. Advisory and reference URLs: https://gitlab.com/gitlab-org/git/-/work_items/814, https://gitlab.com/gitlab-org/gitlab/-/work_items/632121, and https://hackerone.com/reports/4044249.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Git's xdiff three-way merge path first totals the size of the merged output, keeps that total in a signed 32-bit integer, allocates a buffer of that size, and then writes merge output into it. The conflict-marker-size attribute is read from a committed .gitattributes and accepts any positive integer, while conflict markers are emitted repeatedly for each conflict, so a small file with a huge marker size and many conflicts can make the total exceed 4 GiB, wrap to a small value, and produce a heap-based out-of-bounds write (CWE-122) of largely attacker-controlled merge output. The trigger applies to textual three-way merges such as git-merge, git-rebase, git-cherry-pick, and git-merge-tree; for forges, the dangerous configuration is server-side git-merge-tree with attribute reads from repository trees via attr.tree or --attr-source. The fix computes the size as size_t and checks every addition for overflow so Git stops with an error instead of overflowing. The supplied data contains no CPE identifiers.
Know when Git gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Network-reachable merge of attacker repo; AC:H as reliable heap-corruption-to-code-execution is non-trivial; client path needs victim merge (UI:R), though the server forge variant shifts to PR:L/UI:N.
Primary rating from Vendor (gitlab).
CVSS VectorVendor: gitlab
Lifecycle Timeline
2DescriptionCVE.org
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. At minimum this crashes Git, and because the overflow is large and its contents are largely attacker-controlled, worse heap corruption is possible.
Any command that does a textual three-way merge can trigger it, such as git-merge(1), git-rebase(1), git-cherry-pick(1), and git-merge-tree(1). The latter is most likely a target for Git forges, which might use git-merge-tree(1) on the server-side to check mergeability. When the server reads attributes from trees in the repository (for example through attr.tree or --attr-source), any user who can push branches and request that they be merged (for example by opening a pull or merge request) can trigger the overflow without anyone else doing anything, and the data they push is small because the oversized output only appears during the merge.
The problem has been patched by computing the size as size_t and checking every addition for overflow, so Git stops with an error instead of overflowing.
Servers that cannot upgrade right away can add
- conflict-marker-size=7
to each repository's info/attributes as a workaround, which overrides any in-tree .gitattributes, or turn off server-side mergeability checks for untrusted repositories.
Executive ViewAI
CVE-2026-105437 is a heap buffer overflow in Git's merge code that can crash or corrupt memory when processing maliciously crafted repositories. The highest risk is to organizations running server-side Git merge operations (e.g., forge platforms), where a single malformed repository could disrupt service. Leadership should prioritize patching within the week as recommended, as exploitation requires user interaction and high complexity but could impact development workflows.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.
A malicious third-party can give a crafted "ssh://..." URL to an unsuspecting victim, and an attempt to visit the URL ca
git-shell in git before 2.4.12, 2.5.x before 2.5.6, 2.6.x before 2.6.7, 2.7.x before 2.7.5, 2.8.x before 2.8.5, 2.9.x be
Git contains a CRLF injection vulnerability (CVE-2025-48384, CVSS 8.0) in its config handling that allows attackers to e
Git before 2.14.5, 2.15.x before 2.15.3, 2.16.x before 2.16.5, 2.17.x before 2.17.2, 2.18.x before 2.18.1, and 2.19.x be
The (1) git-remote-ext and (2) unspecified other remote helper programs in Git before 2.3.10, 2.4.x before 2.4.10, 2.5.x
Git is an open-source distributed revision control system. Rated high severity (CVSS 7.5), this vulnerability is remotel
Integer overflow in Git before 2.7.4 allows remote attackers to execute arbitrary code via a (1) long filename or (2) ma
The package git before 1.11.0 are vulnerable to Command Injection via git argument injection. Rated critical severity (C
revision.c in git before 2.7.4 uses an incorrect integer data type, which allows remote attackers to execute arbitrary c
contrib/completion/git-prompt.sh in Git before 1.9.3 does not sanitize branch names in the PS1 variable, allowing a mali
Arbitrary command execution is possible in Git before 2.20.2, 2.21.x before 2.21.1, 2.22.x before 2.22.2, 2.23.x before
In Git before 2.13.7, 2.14.x before 2.14.4, 2.15.x before 2.15.2, 2.16.x before 2.16.4, and 2.17.x before 2.17.1, remote
EUVD-2026-122614
GHSA-m7r7-8v36-j77r
NVD
CVE.org
EPSS
Exploit-DB