Description
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.
Severity (CVSS)
| Base score | 7.7 |
|---|---|
| Severity | High |
| Version | CVSS 4.0 |
| Vector | CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| Provided by | CNA |
Weaknesses
- CWE-88 — Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
Affected products
| Vendor | Product | Versions |
|---|---|---|
| gitpython-developers | GitPython | 0 to <3.1.58; 3.1.58 |
References
Generated from the official CVE List on 20 Aug 2026 07:06 UTC.