ALPINE-CVE-2026-111760: High severity alpine/git vulnerability
Git is a fast, scalable, distributed revision control system with an unusually rich command set that provides both high-level operations and full access to internals. Prior to 2.50.2, 2.51.3, 2.52.1, 2.53.1, 2.54.1, 2.55.1, and 2.56.1, an attacker-controlled repository hosted by the attacker rather than on a normal forge site can exploit git clone --recurse-submodules by causing Git to overwrite a submodule gitfile with a symbolic link. The symbolic link can point to a directory containing attacker-controlled Git configuration or hooks, allowing those hooks or configuration to execute code on the cloning user's system. The issue requires the recursive-submodule option, and users should avoid cloning repositories from untrusted sources. This issue is fixed in versions 2.50.2, 2.51.3, 2.52.1, 2.53.1, 2.54.1, 2.55.1, and 2.56.1.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
alpine/gitto a version that resolves this vulnerability.Fixed in 2.52.1-r0 - Upgrade
Upgrade
alpine/gitto a version that resolves this vulnerability.Fixed in 2.54.1-r0 - Upgrade
Upgrade
gitto a version that resolves this vulnerability.Fixed in 2.50.2 - Upgrade
Upgrade
gitto a version that resolves this vulnerability.Fixed in 2.51.3 - Upgrade
Upgrade
gitto a version that resolves this vulnerability.Fixed in 2.52.1 - Upgrade
Upgrade
gitto a version that resolves this vulnerability.Fixed in 2.53.1 - Upgrade
Upgrade
gitto a version that resolves this vulnerability.Fixed in 2.54.1 - Upgrade
Upgrade
gitto a version that resolves this vulnerability.Fixed in 2.55.1 - Upgrade
Upgrade
gitto a version that resolves this vulnerability.Fixed in 2.56.1 - Compensating control
Avoid cloning repositories from untrusted sources, especially with git clone --recurse-submodules.