Git patched six security vulnerabilities on November 10, 2026. The most severe — CVE-2026-111760, rated CVSS 8.0 — lets a malicious repository execute attacker-controlled code on your machine during a git clone --recurse-submodules. If you haven’t updated yet, that is the only thing on your list right now.
How the Recursive Clone Attack Works
The flaw lives in Git’s index path handling. An attacker crafts a repository with an extremely long file path — long enough that an integer truncation bug causes Git to write it to disk under a shorter, attacker-controlled name. That name can be set to .git.
In a freshly cloned submodule, .git is a file, not a directory. Git protects against replacing .git directories with symlinks, but that protection doesn’t apply to the file. So the attacker replaces the submodule’s .git file with a symlink pointing to a directory full of malicious hooks and config. Git then uses that directory during submodule initialization and executes whatever code the attacker placed there. The clone ran the hook. That’s it. No further interaction required.
The attack only triggers with --recurse-submodules, but that flag is not unusual. It is the default in many project setups, CI templates, and IDE integrations.
CI/CD Pipelines Are the Highest-Risk Target
Individual developers who only clone trusted repositories are at limited risk. The real exposure is CI/CD. GitHub Actions, GitLab CI, and Bitbucket Pipelines routinely run recursive clones on ephemeral runners with broad credentials and network access. An attacker who gets a malicious repository into a supply chain — as a submodule dependency, a package source, or a forked repo used in a template — can get code execution on your build infrastructure.
AI coding agents raise the stakes further. Tools like Claude Code and GitHub Copilot clone recursively in automated workflows, often without pausing to verify repo trust. The attack surface for this class of vulnerability is growing, not shrinking. This is also not the first time this exact vector has been exploited: CVE-2025-48384, 18 months ago, used a carriage return in .gitmodules to achieve the same result. The pattern is established.
The Other Five CVEs
The remaining flaws in this release are worth knowing even if CVE-2026-111760 is the headliner:
- CVE-2026-113408 (Medium) — Path traversal via server-advertised HEAD symref. A server cloned over protocol v2 can send a HEAD symref with path traversal components, potentially writing to unintended files.
- CVE-2026-105437 (CVSS 7.5) — Heap buffer overflow during merge. Buffer size calculation overflows with many conflicts combined with a large
conflict-marker-size, writing past buffer bounds and corrupting the heap. - CVE-2026-114469 (Medium) — Binary patch out-of-bounds read. Git’s 1 GiB patch size check validates encoded input, not inflated result. A small binary patch that inflates past the limit causes a crash.
- CVE-2026-114467 (Medium) — GPG tag with more than two signatures corrupts stack memory, causing a denial of service during merge.
- CVE-2026-114466 (Low) —
git fast-importaccepted unsafe features from the input stream without requiring--allow-unsafe-features.
Update Now
Check your version first:
git --version
If you are below 2.56.1 (or the backport for your branch: 2.55.1, 2.54.1, 2.53.1, 2.52.1, 2.51.3, 2.50.2), update:
# Linux (apt)
sudo apt-get update && sudo apt-get upgrade git
# macOS (Homebrew)
brew update && brew upgrade git
# Windows
git update-git-for-windows
After updating, verify:
git --version # should show 2.56.1 or the patched backport
Audit Your CI Pipelines
Updating your local Git is the easy part. Check every CI/CD pipeline that runs --recurse-submodules and verify it is running a patched version. For any pipeline that has cloned an untrusted or third-party repository recursively in the past 30 days, consider rotating the credentials that runner had access to. The official GitHub security disclosure includes the full CVE list and backport details. The Hacker News writeup covers the technical mechanics in more depth. Git for Windows 2.56.1 is available on GitHub now.

