VulnerabilitiesGitPython flaw lets hostile repos run code on clone
An advisory published on 30 September 2026 says GitPython 3.1.59 can mistake attacker-controlled files for the git directory, then execute a tracked hook.
30 Sept 2026
GitPython 3.1.59 misidentifies the git directory when opening or cloning repositories, allowing attackers to execute arbitrary code via malicious tracked files like hooks/pre-commit. This affects services that process untrusted repositories including CI runners, code scanners, and AI agents.
Disclosed 30 September 2026 · Record updated 1 October 2026
Arbitrary code execution when victim opens or clones attacker's repository and calls index.commit(); also allows reading files outside repository via config manipulation
VulnerabilitiesAn advisory published on 30 September 2026 says GitPython 3.1.59 can mistake attacker-controlled files for the git directory, then execute a tracked hook.
30 Sept 2026