High severity7.5NVD Advisory· Published Aug 19, 2026· Updated Sep 3, 2026
CVE-2026-76218
CVE-2026-76218
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
GitPythonPyPI | < 3.1.58 | 3.1.58 |
Affected products
2- Range: <3.1.58
Patches
Vulnerability mechanics
References
7- github.com/gitpython-developers/GitPython/security/advisories/GHSA-9rj7-rf2p-w77rnvdExploitVendor AdvisoryWEB
- github.com/advisories/GHSA-9rj7-rf2p-w77rghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-76218ghsaADVISORY
- www.vulncheck.com/advisories/gitpython-before-remote-code-execution-via-repo-initnvdThird Party AdvisoryWEB
- github.com/gitpython-developers/GitPython/commit/d9ddb55bdc66ghsaWEB
- github.com/gitpython-developers/GitPython/pull/2204ghsaWEB
- github.com/gitpython-developers/GitPython/releases/tag/3.1.58ghsaWEB
News mentions
1- Gitpython: Six High-Severity Vulnerabilities Patched in Version 3.1.58Vypr Intelligence · Aug 19, 2026