Skip to main content
← All vulnerabilities
CVE-2026-76218PYSEC-2026-3840GHSA-9RJ7-RF2P-W77R

GitPython before 3.1.58 Remote Code Execution via Repo.init

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

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

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

  3. Record last updated

Affected versions

  • gitpython-developers GitPython

    fixed in 3.1.58

  • gitpythonPyPI

    fixed in 3.1.58

References 2

GitHub · gitpython-developers/GitPython

vulncheck.com