· rangkumin.tech

Git 2.56.1 fixes six flaws, including code execution when cloning a malicious repository recursively

The Git project released Git 2.56.1 with backports to six older series, fixing six security vulnerabilities. The most serious, CVE-2026-111760, lets an attacker-controlled repository run code on the machine that clones it with submodules; the advisory rates it high at 8.0.

Why it matters

That bug is an integer truncation in Git's index handling. A crafted, extremely long path passes validation under one name and is written under a shorter one, so a submodule's .git file can be replaced by a symlink into a directory holding hooks or configuration. Git says it believes the bug can currently only be triggered when a clone uses the recurse-submodules option.

The other five cover path traversal through a server's advertised HEAD, stack corruption while stripping signatures, out-of-bounds reads on binary patches, heap corruption during large merges, and filesystem access through fast-import streams. GitHub says it has already deployed fixes on github.com and GitHub Enterprise Cloud.

Administrators running GitHub Enterprise Server need 3.19.15, 3.20.11, 3.21.9 or 3.22.4. GitHub also advises updating any software that bundles its own Git copy, and, until then, cloning only from trusted servers.

Sources

Choose English or Indonesian. Up to two editions a day. Unsubscribe anytime.