Incorrect behavior order in GitPython - CVE-2026-114145
Published: November 9, 2026
Vulnerability details
The vulnerability allows an unauthenticated remote attacker to execute arbitrary code with the victim application's privileges.
The vulnerability exists due to GitPython validating submodule paths only after cloning into the repository's .git directory. An unauthenticated remote attacker can supply a malicious submodule with path .git/hooks to an application accepting untrusted submodule specifications, planting an executable hook when that directory is empty and triggering execution when a victim subsequently performs a checkout.
Affected software
Debian Linux
python-git (Debian package)
How to mitigate CVE-2026-114145
python-git (Debian package) - update to 3.1.44-1+deb13u1