{"id":"CVE-2026-76218","published":"2026-08-19T14:02:02Z","modified":"2026-10-08T15:25:00Z","title":"GitPython before 3.1.58 Remote Code Execution via Repo.init","vendor":"gitpython-developers","product":"GitPython","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0072,"percentile":0.54831,"provenance":"source"},"cwes":[{"id":"CWE-88","name":"Improper Neutralization of Argument Delimiters in a Command"}],"references":[{"url":"https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-9rj7-rf2p-w77r","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/gitpython-before-remote-code-execution-via-repo-init","tags":["third-party-advisory"]}],"priority":{"score":16.2,"factors":[{"name":"EPSS percentile","points":10.97},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"gitpython-developers","affectedVersions":[{"vendor":"gitpython-developers","product":"GitPython","versions":["< 3.1.58"]}],"fixedVersions":[{"vendor":"gitpython-developers","product":"GitPython","versions":["3.1.58"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-08-20T03:56:19.629049Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"GitPython","vulnerableRanges":["<3.1.58"],"patched":["3.1.58"],"from":["GHSA-9rj7-rf2p-w77r","PYSEC-2026-3840"],"provenance":"source"}],"summary":{"text":"The flaw is an argument injection vulnerability in the Repo.init function of GitPython, affecting versions before 3.1.58, where unsafe git options are forwarded without validation. An attacker who can supply a template parameter pointing to a directory containing malicious git hooks can achieve arbitrary code execution when git operations run on the initialized repository, and exploitation requires low-privilege authentication along with a high-complexity attack condition.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:57:38Z"},"euvd":{"id":"EUVD-2026-62459","exploited":false,"provenance":"source"}}