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.
References
| Link | Resource |
|---|---|
| https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-9rj7-rf2p-w77r | Exploit Vendor Advisory |
| https://www.vulncheck.com/advisories/gitpython-before-remote-code-execution-via-repo-init | Third Party Advisory |
Configurations
History
No history.
Information
Published : 2026-08-19 14:17
Updated : 2026-09-03 15:03
NVD link : CVE-2026-76218
Mitre link : CVE-2026-76218
CVE.ORG link : CVE-2026-76218
JSON object : View
Products Affected
gitpython_project
- gitpython
CWE
CWE-88
Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
