CVE-2026-105437
CVE-2026-105437 · Heap-based Buffer Overflow in Git
CVSS 7.5 · Alta · EPSS 0,5% · Código de explotación público · Corrección disponible
Compara con tu versión instalada
Los productos afectados y las versiones corregidas conocidas son datos públicos. Compáralos con tu versión instalada.
- gitActualiza a 2.49.1 / 2.50.2 / 2.51.3 …
- git Alpine 3.23Actualiza a 2.52.1-r0
- git Alpine 3.24Actualiza a 2.54.1-r0
- git Debian 12Sin corrección publicada
- y 9 más
Comprueba la versión instalada:
apk list -I -o gitdpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="git"'Evalúa los riesgos de tu servidor
La comprobación gratuita te da una puntuación y un resumen de riesgos por pila tecnológica, sin registro. No indica si esta vulnerabilidad concreta te afecta.
La monitorización compara los datos públicos con el software de tus servidores. Ofrece hallazgos detallados y el orden de las actualizaciones.
curl -fsSL https://patchfirst.dev/check.sh | shLos canales publican noticias generales sobre tecnologías; la monitorización te avisa de nuevos hallazgos en tus servidores en el panel, mediante notificaciones del navegador, en Telegram o por webhook.
Esta página presenta datos de fuentes públicas de vulnerabilidades. Consulta el aviso original antes de actualizar.
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.
- Publicación
- Actualización
Correcciones en distribuciones
- RHSA-2026:104099 · Red Hat hummingbird 1 ·
- openSUSE-SU-2026:12538-1 · openSUSE Tumbleweed ·
Pila tecnológica: system
Productos y versiones afectados
git
- Versiones
- ≥ 0, < 2.49.1: Afectada (semver)
- ≥ 2.50.0-rc0, < 2.50.2: Afectada (semver)
- ≥ 2.51.0-rc0, < 2.51.3: Afectada (semver)
- ≥ 2.52.0-rc0, < 2.52.1: Afectada (semver)
- ≥ 2.53.0-rc0, < 2.53.1: Afectada (semver)
- ≥ 2.54.0-rc0, < 2.54.1: Afectada (semver)
Todas las versiones (8)
- ≥ 2.55.0-rc0, < 2.55.1: Afectada (semver)
- ≥ 2.56.0-rc0, < 2.56.1: Afectada (semver)
Actualiza a 2.49.1; Actualiza a 2.50.2; Actualiza a 2.51.3; Actualiza a 2.52.1; Actualiza a 2.53.1; Actualiza a 2.54.1; Actualiza a 2.55.1; Actualiza a 2.56.1
git Alpine 3.23
- Intervalos de versiones afectados
- ECOSYSTEM: < 2.52.1-r0
Actualiza a 2.52.1-r0
git Alpine 3.24
- Intervalos de versiones afectados
- ECOSYSTEM: < 2.54.1-r0
Actualiza a 2.54.1-r0
git Debian 12
- Versiones
- 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
Todas las versiones (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
- Intervalos de versiones afectados
- ECOSYSTEM: (−∞, +∞)
Sin corrección publicada
git Debian 13
- Versiones
- 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
Todas las versiones (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
- Intervalos de versiones afectados
- ECOSYSTEM: (−∞, +∞)
Sin corrección publicada
git Debian 14
- Versiones
- 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
Todas las versiones (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
- Intervalos de versiones afectados
- ECOSYSTEM: (−∞, +∞)
Sin corrección publicada
git Ubuntu Pro 16.04 LTS
- Versiones
- 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
Todas las versiones (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
- Intervalos de versiones afectados
- ECOSYSTEM: (−∞, +∞)
Sin corrección publicada
git Ubuntu Pro 18.04 LTS
- Versiones
- 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
Todas las versiones (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
- Intervalos de versiones afectados
- ECOSYSTEM: (−∞, +∞)
Sin corrección publicada
git Ubuntu Pro 20.04 LTS
- Versiones
- 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
Todas las versiones (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
- Intervalos de versiones afectados
- ECOSYSTEM: (−∞, +∞)
Sin corrección publicada
git Ubuntu 22.04 LTS
- Versiones
- 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
Todas las versiones (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
- Intervalos de versiones afectados
- ECOSYSTEM: (−∞, +∞)
Sin corrección publicada
git Ubuntu 24.04 LTS
- Versiones
- 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
Todas las versiones (9)
- 1:2.43.0-1ubuntu7.2
- 1:2.43.0-1ubuntu7.3
- 1:2.43.0-1ubuntu7.4
- Intervalos de versiones afectados
- ECOSYSTEM: (−∞, +∞)
Sin corrección publicada
git Ubuntu 26.10
- Versiones
- 1:2.53.0-1ubuntu1
- 1:2.55.0-1ubuntu1
- 1:2.55.0-1ubuntu1.1
- Intervalos de versiones afectados
- ECOSYSTEM: (−∞, +∞)
Sin corrección publicada
git Ubuntu 26.04 LTS
- Versiones
- 1:2.51.0-1ubuntu1
- 1:2.53.0-1ubuntu1
- 1:2.53.0-1ubuntu1.1
- Intervalos de versiones afectados
- ECOSYSTEM: (−∞, +∞)
Sin corrección publicada