CVE-2026-76218 PUBLISHED

GitPython before 3.1.58 Remote Code Execution via Repo.init

Assigner: VulnCheck
Reserved: 19.08.2026 Published: 19.08.2026 Updated: 20.08.2026

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.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
CVSS Score: 7.7

Product Status

Vendor gitpython-developers
Product GitPython
Versions Default: unaffected
  • affected from 0 to 3.1.58 (excl.)
  • Version 3.1.58 is unaffected

Credits

  • manus-use reporter
  • BarakSrour reporter

References

Problem Types

  • Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') CWE