Skip to content

Practical guide / Development and agents

Git fixes six vulnerabilities affecting clones and merges

Git may be installed in more places than a development team realises. The latest security fixes make it necessary to check build pipelines, containers and automated tools alongside developers' computers.

Contrast 3DPublished 5 min read

3D still life of a tree of white ceramic nodes joined by rods, with one violet glass piece held in a clamp.
Conceptual illustration generated with AI. Not a screenshot or a photograph.

Yes, you should update Git across development machines, CI environments and agents that clone external repositories. On 10 November 2026, the Git project released patches for six vulnerabilities, including one that can allow code execution when recursively cloning a malicious repository containing submodules. If immediate patching is not possible, certain operations involving untrusted repositories should be avoided.

The GitHub Blog and Johannes Schindelin's advisory on oss-security confirm that fixes were issued across seven Git release branches.

For a small development team, the first job is to establish where Git is installed and which version each environment actually uses.

Which Git versions contain the fixes

The Git project released these patched versions on 10 November 2026:

BranchPatched version
2.562.56.1
2.552.55.1
2.542.54.1
2.532.53.1
2.522.52.1
2.512.51.3
2.502.50.2

The vulnerabilities affect Git versions starting from 2.27.0, according to oss-security and The Hacker News.

To check your installed version, run:

git --version

This tells you which Git executable is being used by that terminal session.

It does not establish that every application, container or automated process on the same machine uses that installation.

Development environments can contain multiple Git installations, so checking a developer's laptop alone is not enough.

Why recursive cloning can execute malicious code

The vulnerability identified as CVE-2026-111760 can lead to code execution when a vulnerable Git installation recursively clones a malicious repository.

The relevant command is:

git clone --recurse-submodules

As explained by the GitHub Blog and The Hacker News, the issue involves replacing a submodule's .git file with a symbolic link.

An attacker can prepare a repository designed to exploit that behaviour.

This does not mean repositories containing submodules are inherently unsafe.

It does mean that recursively cloning repositories from untrusted sources creates an avoidable risk when using an affected Git version.

Teams that regularly download external projects for inspection or testing should pay particular attention.

The same applies to automated systems that fetch repositories without someone reviewing each operation.

Merge operations are affected too

A separate issue, CVE-2026-105437, involves an overflow affecting merge operations.

According to oss-security and the GitHub Blog, the affected operations include merge, rebase, cherry-pick and merge-tree.

Consequently, a review focused exclusively on cloning would be incomplete.

Teams should also consider where they incorporate changes supplied by external contributors or third-party sources.

Until patching is complete, the published guidance recommends avoiding merges involving questionable tags or patches.

This is particularly relevant to automated workflows that process contributions or external code without individual review.

Where to check Git across your development environment

Start with an inventory of systems that clone, import or manipulate repositories.

CriterionWhat to check
Developer machinesRun git --version on computers used for development.
Continuous integrationCheck the Git version used by build and test jobs.
ContainersInspect container images that include Git and update affected versions.
Development toolsIdentify applications that bundle their own Git installation.
AI agentsCheck the Git executable used when agents clone external repositories.
Third-party repositoriesFind workflows using git clone --recurse-submodules.
Automated mergesReview processes that merge external tags or patches.
GitHub Enterprise ServerVerify that the deployed release includes the relevant fixes.

AI agents are not uniquely affected by these vulnerabilities.

However, an agent that clones external repositories is another environment where the installed Git version matters.

The broader issue of external content entering automated systems is also discussed in our article on lessons from attacks involving automated systems and external repositories.

What to do if you cannot update immediately

Not every team can patch every environment on the day a security update arrives.

If an affected installation must remain in service temporarily, reduce its exposure to untrusted input.

The GitHub Blog and The Hacker News recommend avoiding recursive clones of untrusted repositories and merges involving questionable tags or patches.

These precautions address the identified scenarios, but they are not replacements for installing the fixes.

Record which systems remain unpatched and assign responsibility for updating them.

Where a workflow depends on downloading unfamiliar repositories, consider temporarily suspending that operation until the relevant Git installation has been checked.

This approach is consistent with the principles discussed in our article on agent capability and reliability: automated systems need clearly understood dependencies and operational boundaries.

Check existing imports after applying the patches

Updating Git may also affect workflows using fast-import.

According to the oss-security advisory, three features have been disabled unless the --allow-unsafe-features option is supplied.

Existing processes relying on those features may therefore require attention.

After updating, run your usual import tests and verify that affected workflows still complete correctly.

For organisations using GitHub Enterprise Server, the GitHub Blog identifies 3.19.15, 3.20.11, 3.21.9 and 3.22.4 as patched versions.

Teams maintaining records of vulnerabilities and corrective actions may also find our article on vulnerability reporting under the Cyber Resilience Act relevant.

What to prioritise this week

This week, check Git versions across developer machines, CI pipelines, containers and automated agents. Update affected installations and test any workflows that depend on Git imports. Where immediate patching is not possible, avoid risky operations with untrusted repositories and record the outstanding work.

If you need to review how your development automations retrieve or process external code, tell us which systems you want to assess and Contrast 3D can help examine the implementation.

Sources

Checked on November 15, 2026

All articles