View : 120

25/11/2026 10:00am

Six brass padlocks lined up on a dark wooden desk with one of them unlocked, with the text Git fixes 6 flaws, update to 2.56.1, and a card showing the announcement date 10 November 2026

Git Security Release: Six Vulnerabilities Fixed in 2.56.1, and How to Clone Unknown Repos Safely

#Git

#Git 2.56.1

#CVE

#recursive clone

#Git security

Picture a colleague sending you a repository link: "Clone this and take a look, the project is interesting." You type git clone --recurse-submodules, press Enter, and think nothing more of it. All of us have done exactly that.

On 10 November 2026 the Git project shipped a security release fixing six vulnerabilities, one of which involves running code during a recursive clone. Today Superdev Academy walks through what each vulnerability is in plain terms, how to check the version on your machine, and which habits reduce your risk.

What are the six vulnerabilities?

This section is based on the GitHub Blog announcement Git security vulnerabilities announced. We summarised it; we did not try any exploit and did not audit Git's code.

  • CVE-2026-111760 is an integer truncation in index handling. An over-long path passes validation and opens the way to code execution during a recursive clone. It is the most concerning item in this set.

  • CVE-2026-113408 lets an untrusted server advertise a HEAD containing path traversal components, which can write files outside the reference folder.

  • CVE-2026-114467 involves stripping GPG signatures from a message with more than two signatures, which overflows a fixed-size stack array and risks memory corruption and a crash (denial of service).

  • CVE-2026-114469 lets a compressed binary patch expand beyond its limit after the input-size check has passed, causing an out-of-bounds read and a crash.

  • CVE-2026-105437 is a memory-size calculation during a merge that can overflow on very large results and corrupt the heap.

  • CVE-2026-114466 covers three fast-import features, rewrite-submodules-from, rewrite-submodules-to and export-pack-edges, which can reach files outside the repository when reading from an untrusted stream.

The announcement we read does not say that any attack has happened in the wild. For the technical detail of each item, read the original announcement.

Which version should you update to?

According to the announcement, the patches are in Git 2.56.1 and are backported to six older lines: 2.55.1, 2.54.1, 2.53.1, 2.52.1, 2.51.3 and 2.50.2. If you run 2.53.0 today, moving to 2.53.1 is enough; you do not have to jump to a newer line. For GitHub Enterprise Server the fixed versions are 3.19.15, 3.20.11, 3.21.9 and 3.22.4.

Start by checking which version your machine has.

git --version

The update commands below are general ones for each system, not taken from the announcement. Pick the one that matches your machine.

# macOS with Git installed through Homebrew
brew upgrade git

# Debian or Ubuntu
sudo apt update && sudo apt install --only-upgrade git

# Windows (Git for Windows)
git update-git-for-windows

Some operating systems patch the fix into the existing package without changing the version number. If the number still looks lower than the announcement after you update, compare against your distribution's security advisory. Also remember that applications which bundle their own copy of Git, including some graphical Git clients, need updating too.

If you cannot update yet, how do you reduce the risk?

While you wait, the announcement recommends the following.

  • Clone only from servers you trust, and avoid recursive clones of repositories you do not trust.

  • Avoid merging content or tags from untrusted sources.

  • Avoid processing binary patches or fast-import streams from untrusted sources.

The announcement is clear that these measures do not replace installing the patch. They are a temporary stopgap only.

Habits that help even without a vulnerability in the news

The next three are our own team's suggestions, not requirements from the announcement.

First, clone an unfamiliar repo without --recurse-submodules and open its .gitmodules file to see where the submodules point. Knowing which servers a project will pull extra code from is something you can check by eye in a few seconds. Second, if you really must open a project you do not know, do it inside a virtual machine or a container that holds none of your real keys. Third, set a reminder to update Git on a schedule, the same way you update your operating system, because the tools we use every day are an attack surface too.

Is that the end of it once you update?

It ends this set of vulnerabilities, but not the need for good habits. The patch closes the holes that were found; the next ones nobody has found yet can still appear, so being careful when you open a stranger's code stays worthwhile. To build on the secure side of your own code, read Secure Coding for Beginners (a Thai article).


Summary: update Git, then open strangers' repos with care

Git announced fixes for six vulnerabilities on 10 November 2026 in version 2.56.1, with backports to six older lines. The most concerning item is code execution during a recursive clone. Check your version with git --version and update within the line you use. While you wait, avoid cloning and merging from sources you do not know.

If you want to learn Git in a structured way, take a look at the Git & GitHub Essentials course from Superdev Academy: 2 hours, 42 lessons, taught in Thai, with a certificate and 12 months of access. The course does not cover Git vulnerabilities. See all courses at learn.superdevacademy.com/courses.

🎯 Follow dev knowledge from Superdev Academy:

FAQ: Frequently Asked Questions about This Article

A collection of questions and answers to help you better understand the content of this article.