{"id":"CVE-2026-111760","kind":"vulnerability","aliases":["CVE-2026-111760"],"related":[],"title":"Git: cloning a malicious repository with recursive submodules runs code","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.","summary":"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.","severity":"high","cvss":8.0,"epss":null,"exploited":false,"exploited_at":null,"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"],"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.\n- 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.\n- 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.\n- 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.","status":"open","published_at":"2026-11-16T21:17:18+00:00","first_seen_at":"2026-11-16T21:38:58+00:00","triaged_at":"2026-11-16T21:39:59+00:00","updated_at":"2026-11-16T21:40:55+00:00","category":"package","confidence":0.85,"triage":{"at":"2026-11-16T21:39:59Z","model":"claude-haiku-5-5","output":{"fix":"- Git `2.50.2`, `2.51.3`, `2.52.1`, `2.53.1`, `2.54.1`, `2.55.1`, `2.56.1` (fixed in each branch)\n- Until updated, avoid cloning repositories from untrusted sources.","reach":"internet","title":"Git: cloning a malicious repository with recursive submodules runs code","impact":"high","summary":"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.","audience":"developers","category":"package","nicknames":[],"who_cares":["git","developers","ci","self-hosted"],"confidence":0.8,"fix_status":"available","needs_auth":"no","worst_case":"code runs on the cloning user's machine","analyst_note":"Confirm the exact fixed versions per branch against the Git release notes and check whether Debian has shipped a patch, since a linked post says it is still unfixed there.","how_to_check":"- Run `git --version` and compare against the fixed versions listed below.\n- Check whether scripts or CI jobs run `git clone --recurse-submodules` on repositories from untrusted sources.","plain_action":"","product_name":"","needs_analyst":true,"not_affected_if":["trusted-repos-only","no-recurse-submodules","forge-hosted-only"],"who_is_affected":"Anyone running a Git version before the fixed releases who clones repositories they do not trust, especially with the recursive-submodule option. Repositories hosted on a normal forge are described as the lower-risk case; the attacker must host the repository themselves. Teams that only clone their own repositories can skip it.","user_interaction":"yes","product_ecosystem":"","needs_special_setup":"yes","severity_if_unknown":"high"},"cost_usd":0.000806,"input_tokens":4881,"output_tokens":635,"severity_before":"high"},"analyst_status":"done","analyst_note":"Confirm the exact fixed versions per branch against the Git release notes and check whether Debian has shipped a patch, since a linked post says it is still unfixed there.","search":"'-111760':13A,16A '-2026':12A,15A '2.50.2':95C,191C '2.51.3':96C,192C '2.52.1':97C,193C '2.53.1':98C,194C '2.54.1':99C,195C '2.55.1':100C,196C '2.56.1':102C,198C 'access':90C 'allow':154C 'attack':48B,105C,111C,148C 'attacker-control':47B,104C,147C 'avoid':179C 'caus':127C 'ci':18B 'clone':2A,33B,62B,122C,164C,180C 'code':10A,59B,161C 'command':79C 'config':52B,56B 'configur':151C,158C 'contain':146C 'control':49B,73C,106C,149C 'cve':11A,14A 'debian':19B 'develop':20B 'directori':145C 'distribut':71C 'execut':58B,160C 'exploit':120C 'fast':69C 'fix':188C 'forg':117C 'full':89C 'git':1A,17A,21B,32B,66C,121C,128C,150C 'gitfil':40B,133C 'high':85C 'high-level':84C 'hook':50B,54B,153C,156C 'host':25B,108C 'intern':92C 'issu':169C,186C 'level':86C 'link':44B,137C,140C 'machin':65B 'make':31B 'malici':4A,28B 'normal':116C 'oper':87C 'option':175C 'overwrit':37B,130C 'packag':22B 'point':45B,142C 'prior':93C 'provid':82C 'rather':112C 'recurs':7A,35B,124C,173C 'recurse-submodul':34B,123C 'recursive-submodul':172C 'repositori':5A,29B,107C,181C 'requir':170C 'revis':72C 'rich':78C 'run':9A 'scalabl':70C 'self':24B 'self-host':23B 'set':80C 'site':118C 'sourc':184C 'submodul':8A,26B,36B,39B,125C,132C,174C 'symbol':43B,136C,139C 'system':74C,167C 'untrust':183C 'unusu':77C 'user':63B,165C,177C 'version':190C","nicknames":[],"mitigations":[],"who_affected":"Anyone running a Git version before the fixed releases who clones a repository they do not control with --recurse-submodules, including CI jobs and services that clone on users' behalf. The attacker must host the repository themselves rather than on a normal forge site. Teams that only clone their own or trusted repositories, or that do not use recursive clones, can skip it.","tier":"B","verified":{"fix":{"at":"2026-11-16T21:40:55Z","by":"analyst","doc":"https://github.com/git/git/commit/29411cf59fd417d8fce1be40ab2911e3e0885f26","run_id":4163},"products":{"at":"2026-11-16T21:40:55Z","by":"analyst","doc":"https://github.com/git/git/commit/29411cf59fd417d8fce1be40ab2911e3e0885f26","run_id":4163},"how_to_check":{"at":"2026-11-16T21:40:55Z","by":"analyst","doc":"https://github.com/git/git/commit/29411cf59fd417d8fce1be40ab2911e3e0885f26","run_id":4163},"who_affected":{"at":"2026-11-16T21:40:55Z","by":"analyst","doc":"https://github.com/git/git/commit/29411cf59fd417d8fce1be40ab2911e3e0885f26","run_id":4163}},"analyst_revisit_at":null,"fix_status":"available","audience":"developers","plain_action":null,"pkeys":["git"],"ptokens":["git"],"labels":["ci","debian","developers","git","high","package","selfhosted","submodules"],"campaign_type":null,"search_a":"'-111760':13A,16A '-2026':12A,15A 'clone':2A 'code':10A 'cve':11A,14A 'git':1A,17A 'malici':4A 'recurs':7A 'repositori':5A 'run':9A 'submodul':8A","search_b":"'attack':48B 'attacker-control':47B 'ci':18B 'clone':33B,62B 'code':59B 'config':52B,56B 'control':49B 'debian':19B 'develop':20B 'execut':58B 'git':21B,32B 'gitfil':40B 'hook':50B,54B 'host':25B 'link':44B 'machin':65B 'make':31B 'malici':28B 'overwrit':37B 'packag':22B 'point':45B 'recurs':35B 'recurse-submodul':34B 'repositori':29B 'self':24B 'self-host':23B 'submodul':26B,36B,39B 'symbol':43B 'user':63B","search_c":"'2.50.2':95C,191C '2.51.3':96C,192C '2.52.1':97C,193C '2.53.1':98C,194C '2.54.1':99C,195C '2.55.1':100C,196C '2.56.1':102C,198C 'access':90C 'allow':154C 'attack':105C,111C,148C 'attacker-control':104C,147C 'avoid':179C 'caus':127C 'clone':122C,164C,180C 'code':161C 'command':79C 'configur':151C,158C 'contain':146C 'control':73C,106C,149C 'directori':145C 'distribut':71C 'execut':160C 'exploit':120C 'fast':69C 'fix':188C 'forg':117C 'full':89C 'git':66C,121C,128C,150C 'gitfil':133C 'high':85C 'high-level':84C 'hook':153C,156C 'host':108C 'intern':92C 'issu':169C,186C 'level':86C 'link':137C,140C 'normal':116C 'oper':87C 'option':175C 'overwrit':130C 'point':142C 'prior':93C 'provid':82C 'rather':112C 'recurs':124C,173C 'recurse-submodul':123C 'recursive-submodul':172C 'repositori':107C,181C 'requir':170C 'revis':72C 'rich':78C 'scalabl':70C 'set':80C 'site':118C 'sourc':184C 'submodul':125C,132C,174C 'symbol':136C,139C 'system':74C,167C 'untrust':183C 'unusu':77C 'user':165C,177C 'version':190C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-11-10T19:09:09+00:00","kev":null,"cvss_vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","cvss_by":"security-advisories@github.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-111760","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-111760","severity":null,"published_at":"2026-11-16T21:17:18+00:00","modified_at":"2026-11-16T21:17:18+00:00","first_seen_at":"2026-11-16T21:38:58+00:00","fetched_at":"2026-11-16T21:38:58+00:00","note":null},{"source":"analyst","external_id":"CVE-2026-111760:4163","url":"https://github.blog/open-source/git/git-security-vulnerabilities-announced-7/","severity":null,"published_at":"2026-11-16T21:40:55+00:00","modified_at":"2026-11-16T21:40:55+00:00","first_seen_at":"2026-11-16T21:40:55+00:00","fetched_at":"2026-11-16T21:40:55+00:00","note":"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.","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"]}],"documents":[{"id":146747,"url":"https://x.com/AikidoSecurity/status/2121245660145930335","title":"@AikidoSecurity: A critical Git flaw is still unfixed in Debian. Our Debian images already have t","kind":"post","source":"x","publisher":null,"text":"A critical Git flaw is still unfixed in Debian. Our Debian images already have the patch.\n\nCVE-2026-111760 allows code execution during recursive clones. Debian’s tracker: https://t.co/hLvQeJiixC\n\nPull a patched image for free and stay on your current version: https://t.co/qpiRUrSCzQ\n\nlikes 10 reposts 1","published_at":"2026-11-13T14:15:50+00:00","relation":"discussion","confidence":null,"note":"@AikidoSecurity"},{"id":117463,"url":"https://x.com/TheHackersNews/status/2120236175378284648","title":"@TheHackersNews: ‼️ A new Git flaw lets malicious repositories execute code on your machine durin","kind":"post","source":"x","publisher":null,"text":"‼️ A new Git flaw lets malicious repositories execute code on your machine during recursive clones.\n\nTracked as CVE-2026-111760, the flaw abuses submodule hooks to run attacker-controlled code.\n\nGit has released fixes for this and five other vulnerabilities.\n\nDetails - https://t.co/EqCOk9cQqk\n\nlikes 190 reposts 37","published_at":"2026-11-10T19:24:30+00:00","relation":"discussion","confidence":null,"note":"@TheHackersNews"},{"id":172510,"url":"https://github.com/git/git/commit/29411cf59fd417d8fce1be40ab2911e3e0885f26","title":"Patch: github.com","kind":"other","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":172511,"url":"https://github.com/git/git/security/advisories/GHSA-vp2w-7xxj-jvxr","title":"Vendor advisory: github.com","kind":"vendor","source":"nvd","publisher":"vendor","text":null,"published_at":"2026-11-10T19:09:09+00:00","relation":"advisory","confidence":null,"note":"Vendor advisory: github.com"},{"id":121221,"url":"https://github.blog/open-source/git/git-security-vulnerabilities-announced-7/","title":"Git security vulnerabilities announced (GitHub Blog, Nov 10 2026)","kind":"vendor","source":"analyst","publisher":null,"text":null,"published_at":null,"relation":"advisory","confidence":null,"note":null},{"id":121220,"url":"https://raw.githubusercontent.com/git/git/master/Documentation/RelNotes/2.56.1.adoc","title":"Git v2.56.1 Release Notes","kind":"release","source":"analyst","publisher":null,"text":null,"published_at":null,"relation":"fix","confidence":null,"note":null},{"id":172584,"url":"https://security-tracker.debian.org/tracker/CVE-2026-111760","title":"Debian security tracker: CVE-2026-111760","kind":"other","source":"analyst","publisher":null,"text":null,"published_at":null,"relation":"mentions","confidence":null,"note":null}],"disclosures":[],"exploit_sources":[],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}