CVE-2026-105437
CVE-2026-105437 · Heap-based Buffer Overflow in Git
CVSS 7.5 · High · EPSS 0.5% · Public exploit · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- gitUpdate to 2.49.1 / 2.50.2 / 2.51.3 …
- git Alpine 3.23Update to 2.52.1-r0
- git Alpine 3.24Update to 2.54.1-r0
- git Debian 12No fix published
- and 9 more
Check the installed version:
apk list -I -o gitdpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="git"'Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
- Published
- Updated
Fixes in distributions
- RHSA-2026:104099 · Red Hat hummingbird 1 ·
- openSUSE-SU-2026:12538-1 · openSUSE Tumbleweed ·
Stack: system
Affected products and versions
git
- Versions
- ≥ 0, < 2.49.1: Affected (semver)
- ≥ 2.50.0-rc0, < 2.50.2: Affected (semver)
- ≥ 2.51.0-rc0, < 2.51.3: Affected (semver)
- ≥ 2.52.0-rc0, < 2.52.1: Affected (semver)
- ≥ 2.53.0-rc0, < 2.53.1: Affected (semver)
- ≥ 2.54.0-rc0, < 2.54.1: Affected (semver)
All versions (8)
- ≥ 2.55.0-rc0, < 2.55.1: Affected (semver)
- ≥ 2.56.0-rc0, < 2.56.1: Affected (semver)
Update to 2.49.1; Update to 2.50.2; Update to 2.51.3; Update to 2.52.1; Update to 2.53.1; Update to 2.54.1; Update to 2.55.1; Update to 2.56.1
git Alpine 3.23
- Affected ranges
- ECOSYSTEM: < 2.52.1-r0
Update to 2.52.1-r0
git Alpine 3.24
- Affected ranges
- ECOSYSTEM: < 2.54.1-r0
Update to 2.54.1-r0
git Debian 12
- Versions
- 1:2.39.2+next.20230215-1
- 1:2.39.2-1.1
- 1:2.39.5-0+deb12u1
- 1:2.39.5-0+deb12u2
- 1:2.39.5-0+deb12u3
- 1:2.40.0+next.20230313-1
All versions (46)
- 1:2.40.0+next.20230319-1
- 1:2.40.0-1
- 1:2.40.0-1+alpha.1
- 1:2.40.1+next.20230424-1
- 1:2.40.1+next.20230427-1
- 1:2.40.1-1
- 1:2.40.1-1+alpha.1
- 1:2.42.0-1
- 1:2.43.0+next.20231120-1
- 1:2.43.0+next.20240104-1
- 1:2.43.0-1
- 1:2.43.0-1+alpha.2
- 1:2.45.1+next.20240516-1
- 1:2.45.1-1
- 1:2.45.2+next.20240614-1
- 1:2.45.2-1
- 1:2.45.2-1+alpha.1
- 1:2.45.2-1.1
- 1:2.45.2-1.1+alpha.1
- 1:2.45.2-1.2
- 1:2.45.2-1.3
- 1:2.47.1-1
- 1:2.47.2-0.1
- 1:2.47.2-0.2
- 1:2.48.0~rc1+next.20250101-1
- 1:2.49.0+next.20250314-1
- 1:2.49.0-1
- 1:2.49.0-2
- 1:2.49.0-3
- 1:2.50.0+next.20250615-1
- 1:2.50.0-1
- 1:2.50.0~rc0+next.20250528-1
- 1:2.50.1-0.1
- 1:2.51.0+next.20250825-1
- 1:2.51.0-1
- 1:2.53.0+next.20260227-1
- 1:2.53.0-1
- 1:2.53.0-1+hurd.1
- 1:2.55.0+next.20260731-1
- 1:2.55.0-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
git Debian 13
- Versions
- 1:2.47.2-0.2
- 1:2.47.3-0+deb13u1
- 1:2.48.0~rc1+next.20250101-1
- 1:2.49.0+next.20250314-1
- 1:2.49.0-1
- 1:2.49.0-2
All versions (18)
- 1:2.49.0-3
- 1:2.50.0+next.20250615-1
- 1:2.50.0-1
- 1:2.50.0~rc0+next.20250528-1
- 1:2.50.1-0.1
- 1:2.51.0+next.20250825-1
- 1:2.51.0-1
- 1:2.53.0+next.20260227-1
- 1:2.53.0-1
- 1:2.53.0-1+hurd.1
- 1:2.55.0+next.20260731-1
- 1:2.55.0-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
git Debian 14
- Versions
- 1:2.47.2-0.2
- 1:2.48.0~rc1+next.20250101-1
- 1:2.49.0+next.20250314-1
- 1:2.49.0-1
- 1:2.49.0-2
- 1:2.49.0-3
All versions (17)
- 1:2.50.0+next.20250615-1
- 1:2.50.0-1
- 1:2.50.0~rc0+next.20250528-1
- 1:2.50.1-0.1
- 1:2.51.0+next.20250825-1
- 1:2.51.0-1
- 1:2.53.0+next.20260227-1
- 1:2.53.0-1
- 1:2.53.0-1+hurd.1
- 1:2.55.0+next.20260731-1
- 1:2.55.0-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
git Ubuntu Pro 16.04 LTS
- Versions
- 1:2.5.0-1
- 1:2.6.2-1
- 1:2.6.3-1
- 1:2.6.4-1
- 1:2.7.0~rc3-1
- 1:2.7.0-1
All versions (29)
- 1:2.7.3-0ubuntu1
- 1:2.7.4-0ubuntu1
- 1:2.7.4-0ubuntu1.1
- 1:2.7.4-0ubuntu1.2
- 1:2.7.4-0ubuntu1.3
- 1:2.7.4-0ubuntu1.4
- 1:2.7.4-0ubuntu1.5
- 1:2.7.4-0ubuntu1.6
- 1:2.7.4-0ubuntu1.7
- 1:2.7.4-0ubuntu1.8
- 1:2.7.4-0ubuntu1.9
- 1:2.7.4-0ubuntu1.10
- 1:2.7.4-0ubuntu1.10+esm1
- 1:2.7.4-0ubuntu1.10+esm3
- 1:2.7.4-0ubuntu1.10+esm4
- 1:2.7.4-0ubuntu1.10+esm5
- 1:2.7.4-0ubuntu1.10+esm6
- 1:2.7.4-0ubuntu1.10+esm7
- 1:2.7.4-0ubuntu1.10+esm8
- 1:2.7.4-0ubuntu1.10+esm9
- 1:2.7.4-0ubuntu1.10+esm10
- 1:2.7.4-0ubuntu1.10+esm11
- 1:2.7.4-0ubuntu1.10+esm13
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
git Ubuntu Pro 18.04 LTS
- Versions
- 1:2.14.1-1ubuntu4
- 1:2.15.1-1ubuntu2
- 1:2.17.0-1ubuntu1
- 1:2.17.1-1ubuntu0.1
- 1:2.17.1-1ubuntu0.3
- 1:2.17.1-1ubuntu0.4
All versions (26)
- 1:2.17.1-1ubuntu0.5
- 1:2.17.1-1ubuntu0.6
- 1:2.17.1-1ubuntu0.7
- 1:2.17.1-1ubuntu0.8
- 1:2.17.1-1ubuntu0.9
- 1:2.17.1-1ubuntu0.10
- 1:2.17.1-1ubuntu0.11
- 1:2.17.1-1ubuntu0.12
- 1:2.17.1-1ubuntu0.13
- 1:2.17.1-1ubuntu0.14
- 1:2.17.1-1ubuntu0.15
- 1:2.17.1-1ubuntu0.16
- 1:2.17.1-1ubuntu0.17
- 1:2.17.1-1ubuntu0.18
- 1:2.17.1-1ubuntu0.18+esm1
- 1:2.17.1-1ubuntu0.18+esm2
- 1:2.17.1-1ubuntu0.18+esm3
- 1:2.17.1-1ubuntu0.18+esm4
- 1:2.17.1-1ubuntu0.18+esm6
- 1:2.17.1-1ubuntu0.18+esm8
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
git Ubuntu Pro 20.04 LTS
- Versions
- 1:2.20.1-2ubuntu1
- 1:2.24.0-1ubuntu1
- 1:2.24.0-1ubuntu2
- 1:2.25.0-1ubuntu1
- 1:2.25.1-1ubuntu1
- 1:2.25.1-1ubuntu2
All versions (26)
- 1:2.25.1-1ubuntu3
- 1:2.25.1-1ubuntu3.1
- 1:2.25.1-1ubuntu3.2
- 1:2.25.1-1ubuntu3.3
- 1:2.25.1-1ubuntu3.4
- 1:2.25.1-1ubuntu3.5
- 1:2.25.1-1ubuntu3.6
- 1:2.25.1-1ubuntu3.7
- 1:2.25.1-1ubuntu3.8
- 1:2.25.1-1ubuntu3.10
- 1:2.25.1-1ubuntu3.11
- 1:2.25.1-1ubuntu3.12
- 1:2.25.1-1ubuntu3.13
- 1:2.25.1-1ubuntu3.14
- 1:2.25.1-1ubuntu3.14+esm1
- 1:2.25.1-1ubuntu3.14+esm2
- 1:2.25.1-1ubuntu3.14+esm3
- 1:2.25.1-1ubuntu3.14+esm4
- 1:2.25.1-1ubuntu3.14+esm5
- 1:2.25.1-1ubuntu3.14+esm6
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
git Ubuntu 22.04 LTS
- Versions
- 1:2.32.0-1ubuntu1
- 1:2.33.1-1ubuntu1
- 1:2.34.1-1ubuntu1
- 1:2.34.1-1ubuntu1.1
- 1:2.34.1-1ubuntu1.2
- 1:2.34.1-1ubuntu1.4
All versions (19)
- 1:2.34.1-1ubuntu1.5
- 1:2.34.1-1ubuntu1.6
- 1:2.34.1-1ubuntu1.8
- 1:2.34.1-1ubuntu1.9
- 1:2.34.1-1ubuntu1.10
- 1:2.34.1-1ubuntu1.11
- 1:2.34.1-1ubuntu1.12
- 1:2.34.1-1ubuntu1.13
- 1:2.34.1-1ubuntu1.14
- 1:2.34.1-1ubuntu1.15
- 1:2.34.1-1ubuntu1.16
- 1:2.34.1-1ubuntu1.17
- 1:2.34.1-1ubuntu1.18
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
git Ubuntu 24.04 LTS
- Versions
- 1:2.40.1-1ubuntu1
- 1:2.43.0-1ubuntu1
- 1:2.43.0-1ubuntu5
- 1:2.43.0-1ubuntu6
- 1:2.43.0-1ubuntu7
- 1:2.43.0-1ubuntu7.1
All versions (9)
- 1:2.43.0-1ubuntu7.2
- 1:2.43.0-1ubuntu7.3
- 1:2.43.0-1ubuntu7.4
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
git Ubuntu 26.10
- Versions
- 1:2.53.0-1ubuntu1
- 1:2.55.0-1ubuntu1
- 1:2.55.0-1ubuntu1.1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
git Ubuntu 26.04 LTS
- Versions
- 1:2.51.0-1ubuntu1
- 1:2.53.0-1ubuntu1
- 1:2.53.0-1ubuntu1.1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published