Skip to main content

Git EUVDEUVD-2026-122614

| CVE-2026-105437 HIGH
Heap-based Buffer Overflow (CWE-122)
2026-11-10 cve@gitlab.com GHSA-m7r7-8v36-j77r
7.5
CVSS 3.1 · Vendor: gitlab
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Push crafted repository to forge
  2. Delivery
    Commit .gitattributes with huge conflict-marker-size
  3. Exploit
    Open merge/pull request
  4. Install
    Server runs git-merge-tree mergeability check
  5. C2
    32-bit size total wraps past 4 GiB
  6. Execute
    Attacker data written past heap buffer
  7. Impact
    Crash 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Git 2.52.0-rc0 <2.52.1
Git 2.51.0-rc0 <2.51.3
Git 2.54.0-rc0 <2.54.1
Git 2.53.0-rc0 <2.53.1
Git 2.56.0-rc0 <2.56.1
Git 2.50.0-rc0 <2.50.2
Git 0 <2.49.1
Git 2.55.0-rc0 <2.55.1

Affected Packages

euvd git fix: 2.49.1, 2.50.2, 2.51.3, 2.52.1, 2.53.1, 2.54.1, 2.55.1, 2.56.1

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

Vendor (gitlab) PRIMARY 7.5 HIGH
AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
vuln.today AI 7.5 HIGH

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.

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat 7.5 HIGH

Primary rating from Vendor (gitlab).

CVSS VectorVendor: gitlab

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch available
Nov 10, 2026 - 19:20 EUVD
CVE Published
Nov 10, 2026 - 19:17 cve.org
HIGH 7.5

DescriptionCVE.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

Why It Matters

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.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 65% exploitable
Prevalence
Ubiquitous
Git is the dominant version-control system across development and forge infrastructure
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Medium

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

More in Git

View all
CVE-2017-1000117 HIGH POC
8.8 Oct 05

A malicious third-party can give a crafted "ssh://..." URL to an unsuspecting victim, and an attempt to visit the URL ca

CVE-2017-8386 HIGH POC
8.8 Jun 01

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

CVE-2025-48384 HIGH
8.0 Jul 08

Git contains a CRLF injection vulnerability (CVE-2025-48384, CVSS 8.0) in its config handling that allows attackers to e

CVE-2018-17456 CRITICAL POC
9.8 Oct 06

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

CVE-2015-7545 CRITICAL
9.8 Apr 13

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

CVE-2021-21300 HIGH POC
7.5 Mar 09

Git is an open-source distributed revision control system. Rated high severity (CVSS 7.5), this vulnerability is remotel

CVE-2016-2324 CRITICAL
9.8 Apr 08

Integer overflow in Git before 2.7.4 allows remote attackers to execute arbitrary code via a (1) long filename or (2) ma

CVE-2022-25648 CRITICAL POC
9.8 Apr 19

The package git before 1.11.0 are vulnerable to Command Injection via git argument injection. Rated critical severity (C

CVE-2016-2315 CRITICAL
9.8 Apr 08

revision.c in git before 2.7.4 uses an incorrect integer data type, which allows remote attackers to execute arbitrary c

CVE-2014-9938 HIGH POC
8.8 Mar 20

contrib/completion/git-prompt.sh in Git before 1.9.3 does not sanitize branch names in the PS1 variable, allowing a mali

CVE-2019-19604 HIGH POC
7.8 Dec 11

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

CVE-2018-11235 HIGH POC
7.8 May 30

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

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy