CVE-2026-111760
8.0HighPublished 16 Nov 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite
High
0CVSS v3.110
- Attack vector
- Network
- Complexity
- High
- Privileges
- Low
- User action
- Required
- Impact
- Full C/I/A compromise
- Weakness
- CWE-59
What an attacker gets
Attackers can execute arbitrary code on your system when you clone a malicious repository. This requires a user to run 'git clone --recurse-submodules' on an untrusted repository.
Root cause
Git fails to properly validate submodule gitfiles, allowing them to be overwritten by symbolic links that point to attacker-controlled configurations or hooks.
Affected versions
Git versions prior to 2.50.2, 2.51.3, 2.52.1, 2.53.1, 2.54.1, 2.55.1, and 2.56.1.
CVSS v3.1 · CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H
Fix & remediation
Upgrade Git to the latest patched version (2.50.2, 2.51.3, 2.52.1, 2.53.1, 2.54.1, 2.55.1, or 2.56.1 depending on your branch). Until patched, do not use '--recurse-submodules' when cloning repositories from untrusted sources.
$ git --version && sudo apt-get update && sudo apt-get install --only-upgrade gitAI-suggested. Run it in staging first and check it against the vendor advisory. Why?
NVD description
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.
References
- https://github.com/git/git/commit/29411cf59fd417d8fce1be40ab2911e3e0885f26
- https://github.com/git/git/security/advisories/GHSA-vp2w-7xxj-jvxr
- https://gitlab.com/git-scm/git/-/blob/v2.50.2/Documentation/RelNotes/2.50.2.adoc
- https://gitlab.com/git-scm/git/-/blob/v2.51.3/Documentation/RelNotes/2.51.3.adoc
- https://gitlab.com/git-scm/git/-/blob/v2.52.1/Documentation/RelNotes/2.52.1.adoc
- https://gitlab.com/git-scm/git/-/blob/v2.53.1/Documentation/RelNotes/2.53.1.adoc
- https://gitlab.com/git-scm/git/-/blob/v2.54.1/Documentation/RelNotes/2.54.1.adoc
- https://gitlab.com/git-scm/git/-/blob/v2.55.1/Documentation/RelNotes/2.55.1.adoc
- https://gitlab.com/git-scm/git/-/blob/v2.56.1/Documentation/RelNotes/2.56.1.adoc