Skip to content
CVE PROGRAM SOURCE RECORD7.7 High

CVE-2026-76218

GitPython before 3.1.58 Remote Code Execution via Repo.init

Description

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

gitpython-developers GitPython

Default version status: unaffected

  • 0 to < 3.1.58affected
  • 3.1.58unaffected
pkg:pypi/gitpython

References