Skip to main content
← All vulnerabilities
CVE-2026-76222PYSEC-2026-3784GHSA-HMQ2-W58F-27JC

GitPython before 3.1.58 Path Traversal via .gitmodules Submodule Name

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

Summary

GitPython before 3.1.58 fails to validate submodule names from .gitmodules files, allowing attackers to create Git repositories at arbitrary filesystem paths outside the intended clone directory. Attackers can craft malicious repositories with traversal sequences in submodule names that GitPython processes during submodule initialization, creating attacker-controlled Git repositories at escaped filesystem locations.

Timeline

  1. CVE published
  2. CISA SSVC assessment

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

  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