Skip to main content
← All vulnerabilities
CVE-2026-73623PYSEC-2026-3952GHSA-6P8H-3WGX-97GF

GitPython before 3.1.54 Remote Code Execution via --template

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.1.54
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • gitpython-developers GitPython

    fixed in 3.1.54

  • gitpythonPyPI

    fixed in 3.1.54

References 2

GitHub · gitpython-developers/GitPython

vulncheck.com