Home › News › Vulnerabilities
Git Fixes Code Execution Flaw Triggered by Recursive Clones
Git has patched CVE-2026-111760, an integer truncation bug in index handling that could let a malicious repository execute code when cloned recursively with submodules.
VulnerabilitiesKey points
- CVE-2026-111760 is an integer truncation bug in Git's index handling.
- Malicious repositories can trigger code execution when cloned recursively with submodules.
- Fixed in Git 2.56.1, with backported patches for 2.50.2 through 2.55.1.
According to The Hacker News, the Git project has released fixes for a vulnerability that could allow a malicious repository to execute arbitrary code on a victim's machine when that repository is cloned recursively, pulling in its submodules.
The flaw, tracked as CVE-2026-111760, stems from an integer truncation issue in how Git processes its index file. Recursive cloning is a common workflow for developers pulling in projects that rely on nested submodules, making this an attractive vector for attackers who publish or compromise repositories on public hosting platforms.
Affected versions and fixes
The issue has been patched in Git 2.56.1. Because the underlying bug affects multiple release lines, the Git project also backported fixes to earlier supported versions: 2.50.2, 2.51.3, 2.52.1, 2.53.1, 2.54.1, and 2.55.1.
Why it matters
Git is embedded in countless development pipelines, CI/CD systems, and developer workstations. A code execution flaw triggered simply by cloning a repository — without any further action from the victim beyond using the --recursive option — gives attackers a low-friction way to compromise build environments or developer machines, potentially leading to supply-chain compromise.
No details were given in the report about active exploitation, specific victims, or proof-of-concept code.
What to do
- Upgrade Git to 2.56.1, or to the relevant patched backport (2.50.2, 2.51.3, 2.52.1, 2.53.1, 2.54.1, or 2.55.1).
- Avoid recursive clones of untrusted repositories until patched.
- Audit CI/CD pipelines and build servers for outdated Git versions.
- Monitor Git release notes for further details or exploitation reports.
Original report
“Git Patches Flaw That Lets Malicious Repositories Execute Code During Recursive Clones”
A flaw in Git can let a malicious repository run an attacker's code on a computer that clones it recursively, together with its submodules. The Git project fixed it this week in Git 2.56.1, with matching fixes for the 2.50 through 2.55 series in 2.50.2, 2.51.3, 2.52.1, 2.53.1, 2.54.1 and 2.55.1. The flaw, tracked as CVE-2026-111760, is an integer truncation in how Git handles its index. An
Also reported by
- Cybersecurity News: Git Fixes 6 Security Vulnerabilities Allowing Hackers to Execute Malicious Code Through Cloned Repositories
- Help Net Security: Git fixes six vulnerabilities, including code execution during recursive clones