CVE-2026-73623
7.7
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
Summary
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.
Affected Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| gitpython-developers | GitPython | 0 < 3.1.54 | affected |
| gitpython-developers | GitPython | 3.1.54 | unaffected |
Weaknesses
- CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
References
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-6p8h-3wgx-97gf
- https://www.vulncheck.com/advisories/gitpython-before-remote-code-execution-via-template
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.