security —

Git security vulnerabilities announced

Today, the Git project is releasing new versions to address six security vulnerabilities.

Git security vulnerabilities announced

These include arbitrary code execution when recursively cloning a malicious repository, writes to unintended files, and memory corruption when processing merges or binary patches. The fixes are included in Git 2.56.1, with backports to Git 2.55.1, 2.54.1, 2.53.1, 2.52.1, 2.51.3, and 2.50.2.

We recommend updating to Git 2.56.1 or the patched release for your maintenance series, and updating any applications that bundle Git. Vulnerabilities in Git CVE-2026-111760: Code execution during recursive clones Git checks paths before writing files into a working tree, including rejecting paths that would overwrite its own repository metadata.

However, an integer truncation in Git's index handling can cause an extremely long path to pass validation under one name and then be written using a shorter name. An attacker can use this discrepancy to replace a submodule's .git file with a symbolic link pointing to a directory containing malicious configuration or hooks. When Git later uses that directory, it can execute attacker-controlled code during a recursive clone.

Reported by GitHub Blog.

security

Related coverage

Elsewhere in this edition