CVE-2026-76218

published 19 Aug 2026 · updated 8 Oct 2026

GitPython before 3.1.58 Remote Code Execution via Repo.init

7.5HighCVSS 7.5EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 3.1.58.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
gitpython-developers<3.1.583.1.58

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-76218 severity on Zeptric[![CVE-2026-76218](https://zeptric.io/badge/cve/CVE-2026-76218.svg)](https://zeptric.io/cve/CVE-2026-76218)