Arbitrary Code Execution Vulnerability in GitPython by GitHub
CVE-2026-67326
7.3HIGH
What is CVE-2026-67326?
A security vulnerability in GitPython versions prior to 3.1.50 enables attackers to exploit newline character handling within the section parameter of the config_writer() function. This flaw allows unauthorized individuals to inject arbitrary section headers into the .git/config file, leading to the creation of a fake [core] section. If this forged section includes a hooksPath pointing to directories controlled by the attackers, it can result in remote code execution when git hooks are subsequently triggered.
Affected Version(s)
GitPython 0 < 3.1.50
GitPython 3.1.50
