---
id: "CVE-2026-111760"
page: "https://infrastack.ai/live/CVE-2026-111760"
kind: "vulnerability"
aliases: ["CVE-2026-111760"]
title: "Git: cloning a malicious repository with recursive submodules runs code"
severity: "high"
cvss: 8.0
epss: null
exploited: false
status: "open"
category: "package"
products: [{"name": "git", "fixed": ["2.50.2", "2.51.3", "2.52.1", "2.53.1", "2.54.1", "2.55.1", "2.56.1"], "affected": "< 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, >= 2.56.0 < 2.56.1", "ecosystem": "vendor"}]
ecosystems: []
tags: ["ci", "debian", "developers", "git", "package", "self-hosted", "submodules"]
not_affected_if: ["forge-hosted-only", "no-recurse-submodules", "trusted-repos-only"]
published_at: "2026-11-16T21:17:18+00:00"
first_seen_at: "2026-11-16T21:38:58+00:00"
updated_at: "2026-11-16T21:40:55+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-111760", "first_seen_at": "2026-11-16T21:38:58+00:00"}, {"source": "analyst", "url": "https://github.blog/open-source/git/git-security-vulnerabilities-announced-7/", "first_seen_at": "2026-11-16T21:40:55+00:00", "cites": ["https://github.blog/open-source/git/git-security-vulnerabilities-announced-7/", "https://raw.githubusercontent.com/git/git/master/Documentation/RelNotes/2.56.1.adoc", "https://security-tracker.debian.org/tracker/CVE-2026-111760"]}]
exploit_sources: []
---

# Git: cloning a malicious repository with recursive submodules runs code

Link for people: https://infrastack.ai/live/CVE-2026-111760 (this .md is for agents)

A malicious repository can make `git clone --recurse-submodules` overwrite a submodule gitfile with a symbolic link pointing at attacker-controlled hooks or config. Those hooks or config then execute code on the cloning user's machine.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- vendor:git affected < 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, >= 2.56.0 < 2.56.1 fixed 2.50.2, 2.51.3, 2.52.1, 2.53.1, 2.54.1, 2.55.1, 2.56.1

## How to check

- Run `git --version` (on every dev machine, CI runner and image); vulnerable if below 2.50.2, 2.51.3, 2.52.1, 2.53.1, 2.54.1, 2.55.1 or 2.56.1 for your series.
- Debian/Ubuntu-style distro packages: check the distro tracker, Debian lists bookworm 2.39.5, trixie 2.47.3, forky 2.53.0 and sid 2.55.0 as vulnerable.
- Search scripts, CI and automation for `git clone --recurse-submodules` (or `submodule update --init --recursive` after clone) on repositories you do not control. The vendor says it believes this is only triggered with --recurse-submodules.
- Also check tools that bundle their own Git.

## Fix

Update Git to 2.56.1, or the patched release of your series: 2.55.1, 2.54.1, 2.53.1, 2.52.1, 2.51.3 or 2.50.2. Also update apps that bundle Git (GitHub Desktop and Copilot app releases are being coordinated; GitHub Enterprise Server 3.19.15, 3.20.11, 3.21.9, 3.22.4). Debian: as of 2026-11-16 the Debian tracker lists git as unfixed in bookworm, trixie, forky and sid (bug 1153670), so distro packages stay vulnerable until Debian ships; use a Git build from upstream until then.

## Timeline

- 2026-11-16T21:38:58+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-111760
- 2026-11-16T21:40:55+00:00 analyst https://github.blog/open-source/git/git-security-vulnerabilities-announced-7/ — Fixed versions confirmed in Git project's announcement (GitHub blog by newren) and 2.56.1 release notes; root cause is index path-length integer truncation (commit 29411cf). The GHSA page still says patches are pending (stale). Debian tracker confirms unfixed in all releases. No PoC seen; exploited unknown. X/search not used.

## Documents

- [advisory] Vendor advisory: github.com https://github.com/git/git/security/advisories/GHSA-vp2w-7xxj-jvxr
- [advisory] Git security vulnerabilities announced (GitHub Blog, Nov 10 2026) https://github.blog/open-source/git/git-security-vulnerabilities-announced-7/
- [discussion] @TheHackersNews: ‼️ A new Git flaw lets malicious repositories execute code on your machine durin https://x.com/TheHackersNews/status/2120236175378284648
- [discussion] @AikidoSecurity: A critical Git flaw is still unfixed in Debian. Our Debian images already have t https://x.com/AikidoSecurity/status/2121245660145930335
- [fix] Patch: github.com https://github.com/git/git/commit/29411cf59fd417d8fce1be40ab2911e3e0885f26
- [fix] Git v2.56.1 Release Notes https://raw.githubusercontent.com/git/git/master/Documentation/RelNotes/2.56.1.adoc
- [mentions] Debian security tracker: CVE-2026-111760 https://security-tracker.debian.org/tracker/CVE-2026-111760

## From the sources

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.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
