p PatchFirst

CVE-2026-105437

CVE-2026-105437 · Heap-based Buffer Overflow in Git

CVSS 7.5 · Élevée · EPSS 0,5% · Code d’exploitation public · Correctif disponible

Comparez avec votre version installée

Les produits concernés et les versions corrigées connues sont des informations publiques. Comparez-les avec votre version installée.

  • gitMettez à jour vers 2.49.1 / 2.50.2 / 2.51.3 …
  • git Alpine 3.23Mettez à jour vers 2.52.1-r0
  • git Alpine 3.24Mettez à jour vers 2.54.1-r0
  • git Debian 12Aucun correctif publié
  • et 9 de plus

Vérifiez la version installée :

apk list -I -o git
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="git"'

Évaluez les risques de votre serveur

La vérification gratuite donne une note et un résumé des risques par pile technologique, sans inscription. Elle ne précise pas si cette vulnérabilité particulière vous concerne.

La surveillance compare les informations publiques aux logiciels de vos serveurs. Elle fournit les résultats détaillés et l’ordre des mises à jour.

curl -fsSL https://patchfirst.dev/check.sh | sh
Vérifier mon serveur gratuitement →

Les canaux diffusent des actualités générales sur les technologies ; la surveillance signale les nouveaux résultats sur vos serveurs dans votre tableau de bord, par notification du navigateur, dans Telegram ou par webhook.

Cette page présente des faits issus de sources publiques. Consultez l’avis original avant toute mise à jour.

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.

Publication
Mise à jour

Correctifs dans les distributions

Pile logicielle: system

Produits et versions concernés

  • git

    Versions du logiciel
    • ≥ 0, < 2.49.1: Concernée (semver)
    • ≥ 2.50.0-rc0, < 2.50.2: Concernée (semver)
    • ≥ 2.51.0-rc0, < 2.51.3: Concernée (semver)
    • ≥ 2.52.0-rc0, < 2.52.1: Concernée (semver)
    • ≥ 2.53.0-rc0, < 2.53.1: Concernée (semver)
    • ≥ 2.54.0-rc0, < 2.54.1: Concernée (semver)
    Toutes les versions (8)
    • ≥ 2.55.0-rc0, < 2.55.1: Concernée (semver)
    • ≥ 2.56.0-rc0, < 2.56.1: Concernée (semver)

    Mettez à jour vers 2.49.1; Mettez à jour vers 2.50.2; Mettez à jour vers 2.51.3; Mettez à jour vers 2.52.1; Mettez à jour vers 2.53.1; Mettez à jour vers 2.54.1; Mettez à jour vers 2.55.1; Mettez à jour vers 2.56.1

  • git Alpine 3.23

    Plages de versions concernées
    • ECOSYSTEM: < 2.52.1-r0

    Mettez à jour vers 2.52.1-r0

  • git Alpine 3.24

    Plages de versions concernées
    • ECOSYSTEM: < 2.54.1-r0

    Mettez à jour vers 2.54.1-r0

  • git Debian 12

    Versions du logiciel
    • 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
    Toutes les 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
    Plages de versions concernées
    • ECOSYSTEM: (−∞, +∞)

    Aucun correctif publié

  • git Debian 13

    Versions du logiciel
    • 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
    Toutes les 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
    Plages de versions concernées
    • ECOSYSTEM: (−∞, +∞)

    Aucun correctif publié

  • git Debian 14

    Versions du logiciel
    • 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
    Toutes les 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
    Plages de versions concernées
    • ECOSYSTEM: (−∞, +∞)

    Aucun correctif publié

  • git Ubuntu Pro 16.04 LTS

    Versions du logiciel
    • 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
    Toutes les 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
    Plages de versions concernées
    • ECOSYSTEM: (−∞, +∞)

    Aucun correctif publié

  • git Ubuntu Pro 18.04 LTS

    Versions du logiciel
    • 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
    Toutes les 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
    Plages de versions concernées
    • ECOSYSTEM: (−∞, +∞)

    Aucun correctif publié

  • git Ubuntu Pro 20.04 LTS

    Versions du logiciel
    • 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
    Toutes les 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
    Plages de versions concernées
    • ECOSYSTEM: (−∞, +∞)

    Aucun correctif publié

  • git Ubuntu 22.04 LTS

    Versions du logiciel
    • 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
    Toutes les 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
    Plages de versions concernées
    • ECOSYSTEM: (−∞, +∞)

    Aucun correctif publié

  • git Ubuntu 24.04 LTS

    Versions du logiciel
    • 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
    Toutes les versions (9)
    • 1:2.43.0-1ubuntu7.2
    • 1:2.43.0-1ubuntu7.3
    • 1:2.43.0-1ubuntu7.4
    Plages de versions concernées
    • ECOSYSTEM: (−∞, +∞)

    Aucun correctif publié

  • git Ubuntu 26.10

    Versions du logiciel
    • 1:2.53.0-1ubuntu1
    • 1:2.55.0-1ubuntu1
    • 1:2.55.0-1ubuntu1.1
    Plages de versions concernées
    • ECOSYSTEM: (−∞, +∞)

    Aucun correctif publié

  • git Ubuntu 26.04 LTS

    Versions du logiciel
    • 1:2.51.0-1ubuntu1
    • 1:2.53.0-1ubuntu1
    • 1:2.53.0-1ubuntu1.1
    Plages de versions concernées
    • ECOSYSTEM: (−∞, +∞)

    Aucun correctif publié

Sources originales

Vérifiez votre serveur →