What changed in Git 2.56.1 and the six backported releases?

The Git project has released version 2.56.1 along with patched versions for six older maintenance series. The updates fix six security vulnerabilities that could let an attacker run code, corrupt memory, or write files outside a repository.

Git is the version‑control tool used by millions of developers and automated systems. A new set of releases closes six distinct flaws that were announced on 10 November 2026.

Six flaws, one release cycle

The fixes land in Git 2.56.1. Backports also exist for Git 2.55.1, 2.54.1, 2.53.1, 2.52.1, 2.51.3, and 2.50.2. Each vulnerability received a CVE identifier and a dedicated advisory.

CVE‑2026‑111760 allows arbitrary code execution during a recursive clone. An integer truncation in the index lets an extremely long path pass validation under one name, then be written under a shorter name. The attacker replaces a submodule’s .git file with a symbolic link pointing to a directory that contains malicious configuration or hooks. When Git later uses that directory, the attacker’s code runs.

CVE‑2026‑113408 affects cloning an empty repository over protocol v2. The server can advertise a HEAD symref that points to an unborn branch. Git did not validate the target before storing it locally. A malicious server can supply a name with path‑traversal components. With the files reference backend, a later branch update writes outside the intended reference directory. The fix validates the advertised target and also validates other reference names and symbolic‑reference targets received through protocol v2.

CVE‑2026‑114467 triggers stack corruption when stripping GPG signatures. Git assumed only two signatures. A crafted message with more than two signatures writes past the end of a fixed‑size stack array. Merging a tag that carries many signatures can cause memory corruption and denial of service. Hosting services that perform such merges on behalf of users are also exposed. The fix removes the fixed‑size array and handles any number of signatures.

CVE‑2026‑114469 bypasses the input‑size check for binary patches. Git rejects patches larger than approximately 1 GiB, but the check only considered the supplied size. Binary patches are compressed and encoded, so a small patch can expand beyond the limit. A crafted patch causes an out‑of‑bounds read and crashes Git. The patch now also checks the declared uncompressed size before processing.

CVE‑2026‑105437 corrupts heap memory during large merges. The merge machinery calculates how much memory it needs before writing the result. That calculation can overflow when the result is very large, especially when many conflicts combine with a large conflict‑marker‑size attribute. The overflow leads to a buffer that is too small, then writes outside it. Applications and hosting services that merge untrusted content are affected, as are local merges. The fix uses size‑appropriate types and checked arithmetic, rejecting merges whose output size cannot be represented safely.

CVE‑2026‑114466 exposes filesystem access through fast‑import streams. Three features lacked the existing protection for untrusted input streams. The rewrite-submodules-from and rewrite-submodules-to features can read arbitrary files, potentially leaking their contents through error messages. The export-pack-edges option can create files or append data to existing files. These features are now rejected when supplied through the input stream unless the caller explicitly enables --allow-unsafe-features. Only enable that option when you trust the program generating the stream.

Hardening beyond the six CVEs

The release adds overflow checks to related index entry allocations during checkout and tree processing. These checks complement the path‑length limits above, preventing allocation sizes from being truncated or overflowing before Git copies a path into memory.

What GitHub has already done

Fixes have been deployed across github.com, GitHub Enterprise Cloud, and GitHub Enterprise Cloud with data residency. Updates for GitHub Enterprise Server are available in versions 3.19.15, 3.20.11, 3.21.9, and 3.22.4. Administrators should upgrade as soon as possible. Coordinated releases of GitHub Desktop and the GitHub Copilot app that include patched versions of Git are underway. GitHub Codespaces and GitHub Actions will also receive patched versions.

What you should do now

Install a patched version from your operating system or Git distributor. Update applications that include their own copy of Git. Administrators should also update Git installations used by automation and services that process repositories on behalf of users. If you cannot update immediately, clone only from trusted servers and avoid recursive clones of untrusted repositories. Avoid merging untrusted content or tags, or processing binary patches or fast‑import streams from untrusted sources. These precautions do not replace installing the fixes.

What the announcement does not cover

The post does not say how many installations are still on the affected versions. It does not describe any exploitation in the wild. It does not list which downstream distributors have already packaged the backports.

The sources this article was written from

  • GitHub Blog
    https://github.blog/open-source/git/git-security-vulnerabilities-announced-7/

Read next