العربية
🚨 BreakingFBI Warns Artex AI Tool Automates Hacks at Machine Speed

Git Flaw CVE-2026-111760 Lets Malicious Repos Run Code

Security World Teamاقرأ بالعربية

Git fixed `CVE-2026-111760`, a flaw that lets a malicious repository run attacker code on a machine that clones it recursively with submodules. The fix is in 2.56.1, with backports for the 2.50 to 2.55 series.

Illustration for Vulnerabilities & CVEs
Illustration by Security World

⚡ Why it matters

Recursive clones with submodules happen daily on developer machines and in CI/CD, so one malicious repo could compromise a developer laptop or build server.

How it works

The root cause is an integer truncation in Git's index handling. An extremely long path passes Git's safety check, but Git writes it to disk under a shorter name that the attacker can make .git. The attacker can then swap the .git file of a submodule for a symlink pointing to a folder with malicious hooks or settings. Hooks are programs Git runs at set points, so the attacker's code executes.

Submodules are key: Git blocks swapping a .git directory for a symlink, yet a newly cloned submodule stores .git as a plain file.

Fixed versions

  • Git 2.56.1, plus 2.50.2, 2.51.3, 2.52.1, 2.53.1, 2.54.1 and 2.55.1.
  • GitHub has patched github.com and GitHub Enterprise Cloud. GitHub Enterprise Server fixes are in 3.19.15, 3.20.11, 3.21.9 and 3.22.4.
  • Fixed GitHub Desktop and GitHub Copilot app builds are in progress.
  • As of Tuesday evening, Git for Windows had not shipped a 2.56.1-based release.

The releases also fix five other flaws, including CVE-2026-113408, a path traversal from a malicious server.

What to do

  1. Update Git from your OS or distributor, and update any app that bundles its own Git.
  2. Until then, avoid git clone --recursive on untrusted repos and clone only from trusted servers.
  3. Do not merge content or tags from untrusted sources.

🔗 Sources

This article is original reporting by the Security World editorial team based on the sources listed above; direct quotes are kept short and marked with quotation marks. Corrections and feedback: info [at] securitywd.net.

Related stories