Git CVE-2026-111760: a recursive clone can run attacker code

Updated 2026-11-15

Short answer: run git --version. You are fixed on Git 2.56.1, or on the fixed release of your series: 2.50.2, 2.51.3, 2.52.1, 2.53.1, 2.54.1 or 2.55.1 (The Hacker News, citing the Git release announcement). Older versions can run an attacker's code when you clone a malicious repository recursively.

Fixed versions

SeriesFixed in
2.562.56.1
2.552.55.1
2.542.54.1
2.532.53.1
2.522.52.1
2.512.51.3
2.502.50.2

As of 10 November 2026, 19:09 UTC, Git for Windows had not released a version based on 2.56.1 (The Hacker News). Apps that ship their own copy of Git need their own update: GitHub said fixed GitHub Desktop and GitHub Copilot app builds were being prepared. GitHub Enterprise Server has the fix in 3.19.15, 3.20.11, 3.21.9 and 3.22.4; github.com is already fixed.

How the attack works

CVE-2026-111760 is an integer truncation in how Git handles its index. A very long path passes Git's safety check but is written to disk under a shorter name that the attacker can set to .git. In a freshly cloned submodule, .git is a file, so the attacker can replace it with a symbolic link to a folder of malicious hooks or configuration. Hooks are programs Git runs at set points, so the attacker's code runs (The Hacker News).

Until you can update

GitHub suggests these steps, which do not replace the fix:

Five other Git flaws fixed in the same releases

FixLane pages: Git flaw runs attacker code when cloning repos with submodules, Git flaw during recursive clones.

Questions

Which Git version fixes CVE-2026-111760?

Git 2.56.1, and for older series 2.50.2, 2.51.3, 2.52.1, 2.53.1, 2.54.1 and 2.55.1.

Am I at risk if I do not use submodules?

The attack needs a recursive clone of a malicious repository with submodules. Not cloning untrusted repositories recursively avoids it until you update.

Is Git for Windows fixed?

As of 10 November 2026, 19:09 UTC, Git for Windows had not released a version based on 2.56.1, according to The Hacker News. Check its releases page for a newer build.

Sources

Check your own machine

Connect an AI agent to the free, read-only FixLane MCP server or ask the Telegram bot: it checks what you have installed against verified fixed versions and serves a reviewed fix procedure. All guides.