Description
GitPython before 3.1.54 contains an incomplete denylist in unsafe_git_clone_options that omits --template, allowing attackers to achieve arbitrary command execution during clone operations. Attackers can supply --template pointing to a directory containing malicious post-checkout hooks that execute when git clones the repository.
Metrics
CVSS 3.1 8.8/10
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| gitpython-developers | GitPython | < 3.1.54 |
References
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-6p8h-3wgx-97gfExploit, Vendor Advisory
- https://www.vulncheck.com/advisories/gitpython-before-remote-code-execution-via-templateThird Party Advisory
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-6p8h-3wgx-97gfExploit, Vendor Advisory
Timeline
- Published
- Aug 13, 2026
- Last modified
- Oct 24, 2026
- NVD status
- Analyzed