NetSight
high8.0

CVE-2026-111760

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 int…

Impact

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.

An attacker can exploit this over the network, with a regular user account, but a user has to do something, such as open a file or a link. Specific conditions have to be met, which makes an attack harder. If it succeeds: high risk of data being read, high risk of data or systems being changed, high risk of outages. The attack can reach beyond the vulnerable component itself.

Affected products

VendorProductAffected versions
GitGit
Versions < 2.50.2, >= 2.51.0, < 2.51.3, >= 2.52.0, < 2.52.1, >= 2.53.0, < 2.53.1, >= 2.54.0, < 2.54.1, >= 2.55.0, < 2.55.1
Git-for-windowsGit
from 2.53.0, before 2.53.1
from 2.54.0, before 2.54.1
before 2.50.2
from 2.51.0, before 2.51.3
from 2.55.0, before 2.55.1
from 2.52.0, before 2.52.1

Weakness classification

References