CVE-2026-105437
published high CVSS 3.1 · 7.5Heap-based Buffer Overflow in Git
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Git | — | Git0 to < 2.49.1 · 2.50.0-rc0 to < 2.50.2 · 2.51.0-rc0 to < 2.51.3 · 2.52.0-rc0 to < 2.52.1 · 2.53.0-rc0 to < 2.53.1 · 2.54.0-rc0 to < 2.54.1 · 2.55.0-rc0 to < 2.55.1 · 2.56.0-rc0 to < 2.56.1 · Other versions: unaffected | Affected | Not stated | GitLab |
| Amazon Linux | AL2 | Release evaluationALAS2-2026-4109 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-3445 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 10 | git | Advisory build | 2.52.1-1.el10_3 | ALSA-2026:104819 |
| Alpine Linux | edge | git | Fixed | 2.56.1-r0 | Package fix record |
| Oracle Linux | 10 | gitaarch64 | Advisory build | 0:2.52.1-1.el10_3 | ELSA-2026-104819 |
| AlmaLinux | 10 | git-all | Advisory build | 2.52.1-1.el10_3 | ALSA-2026:104819 |
| AlmaLinux | 10 | git-core | Advisory build | 2.52.1-1.el10_3 | ALSA-2026:104819 |
Show 95 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| AlmaLinux | 10 | git-core-doc | Advisory build | 2.52.1-1.el10_3 | ALSA-2026:104819 |
| AlmaLinux | 10 | git-credential-libsecret | Advisory build | 2.52.1-1.el10_3 | ALSA-2026:104819 |
| AlmaLinux | 10 | git-daemon | Advisory build | 2.52.1-1.el10_3 | ALSA-2026:104819 |
| AlmaLinux | 10 | git-email | Advisory build | 2.52.1-1.el10_3 | ALSA-2026:104819 |
| AlmaLinux | 10 | git-gui | Advisory build | 2.52.1-1.el10_3 | ALSA-2026:104819 |
| AlmaLinux | 10 | git-instaweb | Advisory build | 2.52.1-1.el10_3 | ALSA-2026:104819 |
| AlmaLinux | 10 | git-subtree | Advisory build | 2.52.1-1.el10_3 | ALSA-2026:104819 |
| AlmaLinux | 10 | git-svn | Advisory build | 2.52.1-1.el10_3 | ALSA-2026:104819 |
| AlmaLinux | 10 | gitk | Advisory build | 2.52.1-1.el10_3 | ALSA-2026:104819 |
| AlmaLinux | 10 | gitweb | Advisory build | 2.52.1-1.el10_3 | ALSA-2026:104819 |
| AlmaLinux | 10 | perl-Git | Advisory build | 2.52.1-1.el10_3 | ALSA-2026:104819 |
| AlmaLinux | 10 | perl-Git-SVN | Advisory build | 2.52.1-1.el10_3 | ALSA-2026:104819 |
| AlmaLinux | 8 | git | Advisory build | 2.43.7-2.el8_10 | ALSA-2026:104818 |
| AlmaLinux | 8 | git-all | Advisory build | 2.43.7-2.el8_10 | ALSA-2026:104818 |
| AlmaLinux | 8 | git-core | Advisory build | 2.43.7-2.el8_10 | ALSA-2026:104818 |
| AlmaLinux | 8 | git-core-doc | Advisory build | 2.43.7-2.el8_10 | ALSA-2026:104818 |
| AlmaLinux | 8 | git-credential-libsecret | Advisory build | 2.43.7-2.el8_10 | ALSA-2026:104818 |
| AlmaLinux | 8 | git-daemon | Advisory build | 2.43.7-2.el8_10 | ALSA-2026:104818 |
| AlmaLinux | 8 | git-email | Advisory build | 2.43.7-2.el8_10 | ALSA-2026:104818 |
| AlmaLinux | 8 | git-gui | Advisory build | 2.43.7-2.el8_10 | ALSA-2026:104818 |
| AlmaLinux | 8 | git-instaweb | Advisory build | 2.43.7-2.el8_10 | ALSA-2026:104818 |
| AlmaLinux | 8 | git-subtree | Advisory build | 2.43.7-2.el8_10 | ALSA-2026:104818 |
| AlmaLinux | 8 | git-svn | Advisory build | 2.43.7-2.el8_10 | ALSA-2026:104818 |
| AlmaLinux | 8 | gitk | Advisory build | 2.43.7-2.el8_10 | ALSA-2026:104818 |
| AlmaLinux | 8 | gitweb | Advisory build | 2.43.7-2.el8_10 | ALSA-2026:104818 |
| AlmaLinux | 8 | perl-Git | Advisory build | 2.43.7-2.el8_10 | ALSA-2026:104818 |
| AlmaLinux | 8 | perl-Git-SVN | Advisory build | 2.43.7-2.el8_10 | ALSA-2026:104818 |
| AlmaLinux | 9 | git | Advisory build | 2.52.1-1.el9_9 | ALSA-2026:104820 |
| AlmaLinux | 9 | git-all | Advisory build | 2.52.1-1.el9_9 | ALSA-2026:104820 |
| AlmaLinux | 9 | git-core | Advisory build | 2.52.1-1.el9_9 | ALSA-2026:104820 |
| AlmaLinux | 9 | git-core-doc | Advisory build | 2.52.1-1.el9_9 | ALSA-2026:104820 |
| AlmaLinux | 9 | git-credential-libsecret | Advisory build | 2.52.1-1.el9_9 | ALSA-2026:104820 |
| AlmaLinux | 9 | git-daemon | Advisory build | 2.52.1-1.el9_9 | ALSA-2026:104820 |
| AlmaLinux | 9 | git-email | Advisory build | 2.52.1-1.el9_9 | ALSA-2026:104820 |
| AlmaLinux | 9 | git-gui | Advisory build | 2.52.1-1.el9_9 | ALSA-2026:104820 |
| AlmaLinux | 9 | git-instaweb | Advisory build | 2.52.1-1.el9_9 | ALSA-2026:104820 |
| AlmaLinux | 9 | git-subtree | Advisory build | 2.52.1-1.el9_9 | ALSA-2026:104820 |
| AlmaLinux | 9 | git-svn | Advisory build | 2.52.1-1.el9_9 | ALSA-2026:104820 |
| AlmaLinux | 9 | gitk | Advisory build | 2.52.1-1.el9_9 | ALSA-2026:104820 |
| AlmaLinux | 9 | gitweb | Advisory build | 2.52.1-1.el9_9 | ALSA-2026:104820 |
| AlmaLinux | 9 | perl-Git | Advisory build | 2.52.1-1.el9_9 | ALSA-2026:104820 |
| AlmaLinux | 9 | perl-Git-SVN | Advisory build | 2.52.1-1.el9_9 | ALSA-2026:104820 |
| Alpine Linux | v3.23 | git | Fixed | 2.52.1-r0 | Package fix record |
| Alpine Linux | v3.24 | git | Fixed | 2.54.1-r0 | Package fix record |
| Oracle Linux | 10 | gitx86_64 | Advisory build | 0:2.52.1-1.el10_3 | ELSA-2026-104819 |
| Oracle Linux | 10 | git-allaarch64 | Advisory build | 0:2.52.1-1.el10_3 | ELSA-2026-104819 |
| Oracle Linux | 10 | git-allx86_64 | Advisory build | 0:2.52.1-1.el10_3 | ELSA-2026-104819 |
| Oracle Linux | 10 | git-coreaarch64 | Advisory build | 0:2.52.1-1.el10_3 | ELSA-2026-104819 |
| Oracle Linux | 10 | git-corex86_64 | Advisory build | 0:2.52.1-1.el10_3 | ELSA-2026-104819 |
| Oracle Linux | 10 | git-core-docaarch64 | Advisory build | 0:2.52.1-1.el10_3 | ELSA-2026-104819 |
| Oracle Linux | 10 | git-core-docx86_64 | Advisory build | 0:2.52.1-1.el10_3 | ELSA-2026-104819 |
| Oracle Linux | 10 | git-credential-libsecretaarch64 | Advisory build | 0:2.52.1-1.el10_3 | ELSA-2026-104819 |
| Oracle Linux | 10 | git-credential-libsecretx86_64 | Advisory build | 0:2.52.1-1.el10_3 | ELSA-2026-104819 |
| Oracle Linux | 10 | git-daemonaarch64 | Advisory build | 0:2.52.1-1.el10_3 | ELSA-2026-104819 |
| Oracle Linux | 10 | git-daemonx86_64 | Advisory build | 0:2.52.1-1.el10_3 | ELSA-2026-104819 |
| Oracle Linux | 10 | git-emailaarch64 | Advisory build | 0:2.52.1-1.el10_3 | ELSA-2026-104819 |
| Oracle Linux | 10 | git-emailx86_64 | Advisory build | 0:2.52.1-1.el10_3 | ELSA-2026-104819 |
| Oracle Linux | 10 | git-guiaarch64 | Advisory build | 0:2.52.1-1.el10_3 | ELSA-2026-104819 |
| Oracle Linux | 10 | git-guix86_64 | Advisory build | 0:2.52.1-1.el10_3 | ELSA-2026-104819 |
| Oracle Linux | 10 | git-instawebaarch64 | Advisory build | 0:2.52.1-1.el10_3 | ELSA-2026-104819 |
| Oracle Linux | 10 | git-instawebx86_64 | Advisory build | 0:2.52.1-1.el10_3 | ELSA-2026-104819 |
| Oracle Linux | 10 | git-subtreeaarch64 | Advisory build | 0:2.52.1-1.el10_3 | ELSA-2026-104819 |
| Oracle Linux | 10 | git-subtreex86_64 | Advisory build | 0:2.52.1-1.el10_3 | ELSA-2026-104819 |
| Oracle Linux | 10 | git-svnaarch64 | Advisory build | 0:2.52.1-1.el10_3 | ELSA-2026-104819 |
| Oracle Linux | 10 | git-svnx86_64 | Advisory build | 0:2.52.1-1.el10_3 | ELSA-2026-104819 |
| Oracle Linux | 10 | gitkaarch64 | Advisory build | 0:2.52.1-1.el10_3 | ELSA-2026-104819 |
| Oracle Linux | 10 | gitkx86_64 | Advisory build | 0:2.52.1-1.el10_3 | ELSA-2026-104819 |
| Oracle Linux | 10 | gitwebaarch64 | Advisory build | 0:2.52.1-1.el10_3 | ELSA-2026-104819 |
| Oracle Linux | 10 | gitwebx86_64 | Advisory build | 0:2.52.1-1.el10_3 | ELSA-2026-104819 |
| Oracle Linux | 10 | perl-Gitaarch64 | Advisory build | 0:2.52.1-1.el10_3 | ELSA-2026-104819 |
| Oracle Linux | 10 | perl-Gitx86_64 | Advisory build | 0:2.52.1-1.el10_3 | ELSA-2026-104819 |
| Oracle Linux | 10 | perl-Git-SVNaarch64 | Advisory build | 0:2.52.1-1.el10_3 | ELSA-2026-104819 |
| Oracle Linux | 10 | perl-Git-SVNx86_64 | Advisory build | 0:2.52.1-1.el10_3 | ELSA-2026-104819 |
| Oracle Linux | 8 | gitaarch64 | Advisory build | 0:2.43.7-2.el8_10 | ELSA-2026-104818 |
| Oracle Linux | 8 | gitx86_64 | Advisory build | 0:2.43.7-2.el8_10 | ELSA-2026-104818 |
| Oracle Linux | 8 | git-allaarch64 | Advisory build | 0:2.43.7-2.el8_10 | ELSA-2026-104818 |
| Oracle Linux | 8 | git-allx86_64 | Advisory build | 0:2.43.7-2.el8_10 | ELSA-2026-104818 |
| Oracle Linux | 8 | git-coreaarch64 | Advisory build | 0:2.43.7-2.el8_10 | ELSA-2026-104818 |
| Oracle Linux | 8 | git-corex86_64 | Advisory build | 0:2.43.7-2.el8_10 | ELSA-2026-104818 |
| Oracle Linux | 8 | git-core-docaarch64 | Advisory build | 0:2.43.7-2.el8_10 | ELSA-2026-104818 |
| Oracle Linux | 8 | git-core-docx86_64 | Advisory build | 0:2.43.7-2.el8_10 | ELSA-2026-104818 |
| Oracle Linux | 8 | git-credential-libsecretaarch64 | Advisory build | 0:2.43.7-2.el8_10 | ELSA-2026-104818 |
| Oracle Linux | 8 | git-credential-libsecretx86_64 | Advisory build | 0:2.43.7-2.el8_10 | ELSA-2026-104818 |
| Oracle Linux | 8 | git-daemonaarch64 | Advisory build | 0:2.43.7-2.el8_10 | ELSA-2026-104818 |
| Oracle Linux | 8 | git-daemonx86_64 | Advisory build | 0:2.43.7-2.el8_10 | ELSA-2026-104818 |
| Oracle Linux | 8 | git-emailaarch64 | Advisory build | 0:2.43.7-2.el8_10 | ELSA-2026-104818 |
| Oracle Linux | 8 | git-emailx86_64 | Advisory build | 0:2.43.7-2.el8_10 | ELSA-2026-104818 |
| Oracle Linux | 8 | git-guiaarch64 | Advisory build | 0:2.43.7-2.el8_10 | ELSA-2026-104818 |
| Oracle Linux | 8 | git-guix86_64 | Advisory build | 0:2.43.7-2.el8_10 | ELSA-2026-104818 |
| Oracle Linux | 8 | git-instawebaarch64 | Advisory build | 0:2.43.7-2.el8_10 | ELSA-2026-104818 |
| Oracle Linux | 8 | git-instawebx86_64 | Advisory build | 0:2.43.7-2.el8_10 | ELSA-2026-104818 |
| Oracle Linux | 8 | git-subtreeaarch64 | Advisory build | 0:2.43.7-2.el8_10 | ELSA-2026-104818 |
| Oracle Linux | 8 | git-subtreex86_64 | Advisory build | 0:2.43.7-2.el8_10 | ELSA-2026-104818 |
| Oracle Linux | 8 | git-svnaarch64 | Advisory build | 0:2.43.7-2.el8_10 | ELSA-2026-104818 |
| Oracle Linux | 8 | git-svnx86_64 | Advisory build | 0:2.43.7-2.el8_10 | ELSA-2026-104818 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- GitLab · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Git | Git | 0 to < 2.49.1 (affected · semver)2.50.0-rc0 to < 2.50.2 (affected · semver)2.51.0-rc0 to < 2.51.3 (affected · semver)2.52.0-rc0 to < 2.52.1 (affected · semver)2.53.0-rc0 to < 2.53.1 (affected · semver)2.54.0-rc0 to < 2.54.1 (affected · semver)2.55.0-rc0 to < 2.55.1 (affected · semver)2.56.0-rc0 to < 2.56.1 (affected · semver)Default: unaffected | GitLab · cna |
Weaknesses
1- CWE-122 CWE-122: Heap-based Buffer Overflow
References
3- https://gitlab.com/gitlab-org/git/-/work_items/814
- https://gitlab.com/gitlab-org/gitlab/-/work_items/632121
- HackerOne Bug Bounty Report #4044249 https://hackerone.com/reports/4044249
Provider assertions
2GitLab · cna
Heap-based Buffer Overflow in Git
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- dcef956bcfda188bce6c35b1dd6399c569d6dcaf79dee52b4fe8d83e7014221e
- Ingested
- 16 Nov 2026, 18:28:27 UTC
- Source record
- Official CVE record