CVE-2026-105437
Heap-based Buffer Overflow in Git
Check your servers for CVE-2026-105437
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-105437 affects git, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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.
Severity (CVSS)
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Privileges required
- none: the attacker does not need an account
- User interaction
- required: a user has to do something, such as open a link or a file
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.53%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 38.2% of all scored CVEs. Scores of 29 Nov 2026.
The assessment of CISA (SSVC, 16 Nov 2026):
- Exploitation
- poc: a proof of concept is public
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-122 Heap-based Buffer Overflow
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Git |
affected before 2.49.1 affected from 2.50.0-rc0, before 2.50.2 affected from 2.51.0-rc0, before 2.51.3 affected from 2.52.0-rc0, before 2.52.1 affected from 2.53.0-rc0, before 2.53.1 affected from 2.54.0-rc0, before 2.54.1 affected from 2.55.0-rc0, before 2.55.1 affected from 2.56.0-rc0, before 2.56.1
Other versions: unaffected
|
Is my server affected?
Find the installed version of git and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i git
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-105437 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-105437RHEL, Rocky, Alma, Fedora
rpm -q git
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-105437Alpine
apk list --installed | grep -i gitWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-105437
trivy image --scanners vuln IMAGE | grep CVE-2026-105437
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Exploits and proof of concept
- HackerOne Bug Bounty Report #4044249 hackerone.com · technical description, exploit, permissions required
Other references
- https://gitlab.com/gitlab-org/git/-/work_items/814 gitlab.com
- https://gitlab.com/gitlab-org/gitlab/-/work_items/632121 gitlab.com
Source: the record CVE-2026-105437 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse