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
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| gitpython-developers | <3.1.58 | 3.1.58 |
Timeline
Every event on this vulnerability
Embed
A live severity badge for an advisory, README or ticket