ADVISORIES

Vulnerability

CVE-2026-76218

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.

21 advisories report this vulnerability, across 10 ecosystems.

Advisories in PyPI

  • GHSA-9rj7-rf2p-w77r

    GitPython: Unguarded git option forwarding in Repo.init enables arbitrary command execution via --template clone hooks

    High CVE-2026-76218 PyPI Updated 10 September 2026
  • PYSEC-2026-3840

    GitPython: Unguarded git option forwarding in Repo.init enables arbitrary command execution via --template clone hooks

    CVE-2026-76218 PyPI Updated 10 September 2026

References