6d ago · hacker-news
A critical vulnerability in Git, tracked as CVE-2026-111760, allows malicious repositories to execute arbitrary code during recursive clones by exploiting an integer truncation flaw in how Git handles long paths. Attackers can manipulate a submodule's .git file to point to a malicious folder containing executable hooks, enabling code execution when Git processes the submodule. The vulnerability has been patched in Git versions 2.56.1 and corresponding updates to earlier series, with GitHub and GitLab confirming fixes in their platforms. Additional related CVEs were disclosed, including memory corruption and path traversal flaws exploitable in code hosting environments.