Git Patches Flaw That Lets Malicious Repositories Execute Code During Recursive Clones
Executive Summary
A Git integer truncation flaw (CVE‑2026‑111760) allows malicious repositories to execute arbitrary code when cloned recursively, including submodules. The Git project released fixes in Git 2.56.1 and backported patches to versions 2.50‑2.55. The vulnerability arises from improper index handling during recursive clone operations.
Original Description
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