Skip to content
← FrontpageCISA hallmark logoCISAAnalysis

Git patches recursive submodule integer truncation code execution flaw

Topographic elevation contour card for Git patches recursive submodule integer truncation code execution flaw
VISUAL ARTWORK:Original editorial artwork. Third-party brand marks used under nominative fair use.

What happened.The Git project published security maintenance updates fixing an integer truncation flaw that lets attackers overwrite submodule configuration with symlinks to execute arbitrary code during recursive clones.

Why it matters.Automated continuous integration workers and developer workstations regularly run recursive repository clones. When path validation flaws permit symlink execution hooks, untrusted repositories seize local build environments immediately. Engineering teams must update Git packages to version 2.56.1 across developer fleets.

The technical specifications:

  • Integer truncation flaw: Tracked as CVE-2026-111760 with an 8.0 CVSS score, the defect stems from length validation truncation when handling index paths.
  • Symlink hook hijacking: Malicious repositories pass path validation checks to replace a submodule's git directory with a symbolic link pointing to malicious hooks.
  • Recursive clone trigger: When developers clone repositories with recursive submodule options, client environments execute attacker-controlled scripts without interactive confirmation.
  • Maintenance releases: Fixes are available in Git 2.56.1 and backported across maintenance branches including versions 2.50.2 through 2.55.1.