← Back to blog

Git Fixes Critical Code Execution Flaw in Recursive Clones

A high-severity vulnerability in Git could allow remote code execution when cloning repositories with submodules. Organizations should update to patched versions immediately.

TL;DR

  • CVE-2026-111760 affects Git's recursive clone feature via integer truncation
  • Attackers can execute arbitrary code through malicious repositories and submodules
  • Git 2.56.1 and backported fixes for 2.50–2.55 series now available
  • All development teams using Git should patch immediately
  • Impact limited to recursive clones involving untrusted repositories

Git has released urgent updates to address a critical remote code execution vulnerability affecting recursive clone operations. The flaw, tracked as CVE-2026-111760, resides in how Git processes repository indexes and could allow attackers to execute malicious code on developer systems.

The vulnerability specifically impacts developers who perform recursive clones that include submodules from untrusted sources. During such operations, a specially crafted repository could trigger integer truncation leading to arbitrary code execution on the cloning machine.

Vulnerability Details

  • CVE-2026-111760 is an integer truncation issue in Git's index handling mechanism
  • Exploitation requires recursive clone operations with submodules from malicious repositories
  • Successful attacks can lead to arbitrary code execution in the context of the Git process
  • The flaw affects all Git versions prior to 2.56.1 and specific older maintenance releases

Remediation Steps

  • Upgrade to Git 2.56.1 or latest patched version in your maintenance branch
  • For older series: 2.50.2, 2.51.3, 2.52.1, 2.53.1, 2.54.1, or 2.55.1
  • Audit existing repositories for unexpected submodule configurations
  • Avoid recursive clones from untrusted or unknown sources until patched
  • Implement repository validation policies for third-party code dependencies

Sources

Sources

Security email updates

One digest email when we publish new security articles (TL;DR plus links to read more). Unsubscribe anytime from the message footer. See our Privacy Policy.