# CVE-2026-73623: GitPython before 3.1.54 Remote Code Execution via --template

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 3.1.54 (CNA); fix release not confirmed
- Status: published
- Published: 2026-08-13 · Modified: 2026-10-08
- Aliases: GHSA-6p8h-3wgx-97gf, PYSEC-2026-3952, UBUNTU-CVE-2026-73623, DEBIAN-CVE-2026-73623
- Record: https://cvemate.com/vulnerability/CVE-2026-73623 · JSON: https://cvemate.com/vulnerability/CVE-2026-73623/json

## Description

```text
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.
```

## Signals

- CVSS: 8.8 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.801%, percentile 57.939%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- debian python-git (Debian): All versions (No fix recorded) \| \< 3.1.30-1+deb12u3 \| \< 3.1.44-1+deb13u1 \| \< 3.1.61-1
- ubuntu python-git (Ubuntu): All versions (No fix recorded)
- gitpython\_project gitpython: \< 3.1.54
- gitpython-developers gitpython: \< 3.1.54
- PyPI gitpython (PyPI): \< 3.1.54

## 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>
- <https://github.com/gitpython-developers/GitPython/pull/2180>
- <https://github.com/gitpython-developers/GitPython/commit/ffcb5359e87619f4fe4a70a4aff5f08c5580ba97>
- <https://github.com/gitpython-developers/GitPython>
- <https://github.com/gitpython-developers/GitPython/releases/tag/3.1.54>
- <https://ubuntu.com/security/CVE-2026-73623>
- <https://www.cve.org/CVERecord?id=CVE-2026-73623>
- <https://security-tracker.debian.org/tracker/CVE-2026-73623>

---

Data as of 2026-12-05T04:46:54.601Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
