GitPython before 3.1.58 contains a remote code execution vulnerability in Repo.init that forwards unsafe git options without validation. Attackers can supply a template parameter pointing to a directory with malicious git hooks that execute arbitrary code when git operations are performed on the initialized repository.
{
"cna_assigner": "VulnCheck",
"cwe_ids": [
"CWE-88"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/76xxx/CVE-2026-76218.json"
}{
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "3.1.58"
}
],
"source": [
"AFFECTED_FIELD",
"DESCRIPTION"
]
}