# Git Patches Flaw That Lets Malicious Repositories Execute Code During Recursive Clones

DevFeed: [Git Patches Flaw That Lets Malicious Repositories Execute Code During Recursive Clones](<https://devfeed.tech/articles/git-patches-flaw-that-lets-malicious-repositories-execute-code-during-recursive-clones-127391.md>)

Original publisher: [Read original article](<https://thehackernews.com/2026/11/git-patches-flaw-that-lets-malicious.html>)

Author: The Hacker News

Published: 2026-11-10T19:23:10Z

Content type: news

Language: en

Sources: [Cyber Newsroom](<https://devfeed.tech/sources/cyber-newsroom.md>)

Topics: [Git](<https://devfeed.tech/topics/git.md>), [Submodules](<https://devfeed.tech/topics/submodules.md>), [patches](<https://devfeed.tech/topics/patches.md>)

Tags: [actions](<https://devfeed.tech/tags/actions.md>), [application-security](<https://devfeed.tech/tags/application-security.md>), [codespaces](<https://devfeed.tech/tags/codespaces.md>), [cybersecurity](<https://devfeed.tech/tags/cybersecurity.md>), [git](<https://devfeed.tech/tags/git.md>), [git-merge](<https://devfeed.tech/tags/git-merge.md>), [github](<https://devfeed.tech/tags/github.md>), [github-copilot](<https://devfeed.tech/tags/github-copilot.md>), [github-copilot-app](<https://devfeed.tech/tags/github-copilot-app.md>), [github-desktop](<https://devfeed.tech/tags/github-desktop.md>), [github-enterprise-cloud](<https://devfeed.tech/tags/github-enterprise-cloud.md>), [github-enterprise-server](<https://devfeed.tech/tags/github-enterprise-server.md>), [gitlab](<https://devfeed.tech/tags/gitlab.md>), [malicious](<https://devfeed.tech/tags/malicious.md>), [repositories](<https://devfeed.tech/tags/repositories.md>), [software-security](<https://devfeed.tech/tags/software-security.md>), [submodules](<https://devfeed.tech/tags/submodules.md>), [supply-chain](<https://devfeed.tech/tags/supply-chain.md>), [vulnerabilities](<https://devfeed.tech/tags/vulnerabilities.md>), [vulnerability](<https://devfeed.tech/tags/vulnerability.md>)

## AI overview

Git fixed CVE-2026-111760, an integer-truncation flaw that can let a malicious repository execute code during a recursive clone with submodules. An extremely long path can pass a safety check but be written under the shorter name `.git`, letting an attacker replace a submodule's `.git` file with a symlink to malicious hooks or configuration. Git 2.56.1 and maintenance releases 2.50.2 through 2.55.1 reject such paths. Install a fixed Git version and update applications that bundle Git. Until then, GitHub advises cloning only from trusted servers, avoiding recursive clones of untrusted repositories, and not merging untrusted content or processing their binary patches or fast-import streams. The excerpt also describes five other flaws addressed in the releases.

## Source excerpt

Git Patches Flaw That Lets Malicious Repositories Execute Code During Recursive Clones 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 match ... Read more Published Date: Nov 10, 2026 (1 hour, 40 minutes ago) Vulnerabilities has been mentioned in this article.