Executive Summary
Git patched a vulnerability that can enable code execution when a malicious repository is recursively cloned with submodules. Teams whose AI agents or development pipelines clone repositories should verify Git versions and assess repository-ingestion controls.
What Happened
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
Affected Products
- Git 2.56.1
- Git 2.50 through 2.55 series
Vulnerability / Attack Technique
Malicious repository code execution during recursive cloning
Technical Mechanism
The reported flaw is an integer truncation in how Git handles its index. A malicious repository can exploit this behavior during recursive cloning together with submodules to run attacker-controlled code on the cloning computer.
AI Security Category
Not AI-specific
Relevant Frameworks
RealGround Analysis
Although the vulnerability is not described as AI-specific, AI agents and LLM application pipelines may interact with Git repositories as part of coding, deployment, or dependency workflows. If those workflows permit recursive cloning, a compromised repository could create execution risk within the agent or build environment.
Recommended Controls
- Update Git to 2.56.1 or the applicable fixed release for the 2.50 through 2.55 series.
- Inventory AI agents, build systems, and developer environments that perform recursive Git clones.
- Restrict repository-cloning environments with least-privilege permissions and sandboxing.
- Review and validate repository and submodule sources before allowing automated cloning.
- Monitor cloning and post-clone activity for unexpected code execution.
Related RealGround Service
AI Agent SBOM and LLM Mapping · or start with the free AI Agent Security Scanner.
Sources
thehackernews.com: https://thehackernews.com/2026/11/git-patches-flaw-that-lets-malicious.html
Summary and analysis written by RealGround from the source above; last updated 2026-11-11.
