Remote Code Execution Vulnerability in GitPython by GitPython Developers
CVE-2026-76218
7.7HIGH
What is CVE-2026-76218?
A vulnerability in GitPython prior to version 3.1.58 allows attackers to execute arbitrary code through the Repo.init method by forwarding unchecked git options. Exploiting this vulnerability, an attacker can point to a directory containing malicious git hooks. When git operations are initiated on the repository, these hooks are executed, leading to potential remote code execution and compromising the security of the affected system.
Affected Version(s)
GitPython 0 < 3.1.58
GitPython 3.1.58
