← Übersicht Git

Heap-based Buffer Overflow in Git

CVE-2026-105437 · ALPINE-CVE-2026-105437 · AZL-113311 · AZL-113555 · AZL-113630 · AZL-113633 · DEBIAN-CVE-2026-105437 · DHI-j3aq-eg6h-4chc-kjcz · UBUNTU-CVE-2026-105437 · WID-SEC-W-2026-4476

Hoch · CVSS 7.5 Netzwerk · ohne Login · Nutzerinteraktion Kein Fix bekannt

Veröffentlicht
10.11.2026
Zuletzt geändert
18.11.2026
EPSS (30 Tage)
0.4 %
CVSS-Vektor
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

Beschreibung

Originaltext der Quelle, nicht übersetzt.

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.

Status beim Hersteller

SUSE stuft seine Produktlinien ein: 5 betroffen, 1 behoben.

Amazon Linux 2 Betroffen
Gentoo Linux Betroffen
Open Source GitLab <19.3.8 Betroffen
Open Source GitLab <19.4.6 Betroffen
Open Source GitLab <19.5.4 Betroffen
openSUSE Tumbleweed Behoben git-2.56.1-1.1, git-arch-2.56.1-1.1, git-core-2.56.1-1.1, git-credential-libsecret-2.56.1-1.1, git-cvs-2.56.1-1.1, git-daemon-2.56.1-1.1, git-doc-2.56.1-1.1, git-email-2.56.1-1.1, git-gui-2.56.1-1.1, git-p4-2.56.1-1.1, git-svn-2.56.1-1.1, git-web-2.56.1-1.1, gitk-2.56.1-1.1, perl-Git-2.56.1-1.1

Betroffene Pakete im beobachteten Stack

Debian:12gitkein Fix bekanntDEBIAN-CVE-2026-105437
Debian:13gitkein Fix bekanntDEBIAN-CVE-2026-105437
Debian:14gitkein Fix bekanntDEBIAN-CVE-2026-105437
Ubuntu:22.04:LTSgitkein Fix bekanntUBUNTU-CVE-2026-105437
Ubuntu:24.04:LTSgitkein Fix bekanntUBUNTU-CVE-2026-105437
Ubuntu:26.04:LTSgitkein Fix bekanntUBUNTU-CVE-2026-105437
Ubuntu:26.10gitkein Fix bekanntUBUNTU-CVE-2026-105437
Ubuntu:Pro:16.04:LTSgitkein Fix bekanntUBUNTU-CVE-2026-105437
Ubuntu:Pro:18.04:LTSgitkein Fix bekanntUBUNTU-CVE-2026-105437
Ubuntu:Pro:20.04:LTSgitkein Fix bekanntUBUNTU-CVE-2026-105437
Weitere betroffene Pakete (11)
Alpine:v3.23git2.52.1-r0ALPINE-CVE-2026-105437
Alpine:v3.24git2.54.1-r0ALPINE-CVE-2026-105437
Azure Linux:3gitkein Fix bekanntAZL-113311
Azure Linux:3libgit2kein Fix bekanntAZL-113555
Azure Linux:3rustkein Fix bekanntAZL-113630
Azure Linux:3rustkein Fix bekanntAZL-113633
CVEGit/Git2.49.1, 2.50.0-rc0 → 2.50.2, 2.51.0-rc0 → 2.51.3, 2.52.0-rc0 → 2.52.1, 2.53.0-rc0 → 2.53.1, 2.54.0-rc0 → 2.54.1, 2.55.0-rc0 → 2.55.1, 2.56.0-rc0 → 2.56.1CVE-2026-105437
Docker Hardened Images:Alpine:3.23gitkein Fix bekanntDHI-j3aq-eg6h-4chc-kjcz
Docker Hardened Images:Alpine:3.24gitkein Fix bekanntDHI-j3aq-eg6h-4chc-kjcz
Docker Hardened Images:Debian:13gitkein Fix bekanntDHI-j3aq-eg6h-4chc-kjcz
openSUSE:Tumbleweedgit2.56.1-1.1openSUSE-SU-2026:12538-1

Empfohlene Prüfung

  1. Feststellen, ob und in welcher Version die betroffenen Pakete in Ihren Systemen, Images und Abhängigkeiten vorkommen.
  2. Wo eine Fix-Version genannt ist: aktualisieren. Wo nicht: Hersteller-Advisory und Referenzen auf Workarounds prüfen.
  3. Erreichbarkeit beachten: Der Angriffsweg (Netzwerk · ohne Login · Nutzerinteraktion) ist aus dem CVSS-Vektor abgeleitet.

Diese Seite sagt nichts darüber, ob Ihre Systeme betroffen sind. Das klärt erst eine Prüfung Ihrer Versionen.