Git Patches Flaw That Lets Malicious Repositories Execute Code During Recursive Clones
Git fixes flaw allowing malicious repos to execute code during recursive clones.
Git has patched a vulnerability (CVE-2026-111760) that allowed malicious repositories to execute attacker code during recursive clones by exploiting an integer truncation flaw in how Git handles its index. The flaw enables an attacker to replace a submodule's .git file with a symbolic link to malicious hooks or configurations. Git versions 2.56.1 and specific patches for older series have been released to address this, along with five other disclosed flaws.
AI summary of the linked source. Not reviewed by an editor. How this works
Run GitHub?
Get an email when a new story names GitHub, usually within the hour.
Free. Your list stays private and never appears in a subject line. One click stops it. How Vendor Watch worksPrivacy
The lesson from this incident
Full lessonA vulnerability in Git's index-handling logic allowed an integer truncation flaw to be exploited during recursive clones, enabling attackers to replace a submodule's .git file with a symbolic link pointing to malicious hooks or configurations. This means simply cloning a repository from an untrusted source could result in arbitrary code execution on the developer's machine — without any additional user interaction beyond the clone command itself. Developer workstations are high-value targets because they often hold credentials, signing keys, and access to production pipelines. The risk is amplified in CI/CD environments where recursive clones are automated and run with elevated permissions. Patching to Git 2.56.1 or the relevant backported fix is essential to close this attack vector.
What helps against this
How we list vendors- Automated patch management
Known holes get closed in days, not months.
- Endpoint detection and response (EDR and XDR)
Malware and hands-on-keyboard attackers on laptops and servers get spotted and stopped.
- Software supply chain security
Malicious and vulnerable open-source packages are caught before they ship.
Indicators of Compromise
Extracted by AI from the linked source. Not reviewed by an editor. How this works
- cve — CVE-2026-111760
- cve — CVE-2026-113408
- cve — CVE-2026-114467
- cve — CVE-2026-114469
- cve — CVE-2026-105437
- cve — CVE-2026-114466