ADVISORIES

Vulnerability

CVE-2026-76222

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.

22 advisories report this vulnerability, across 10 ecosystems.

Advisories in PyPI

  • GHSA-hmq2-w58f-27jc

    GitPython: Arbitrary Git Repository Creation Outside the Working Tree via Unvalidated .gitmodules Submodule Name in GitPython

    High CVE-2026-76222 PyPI Updated 8 September 2026
  • PYSEC-2026-3784

    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…

    CVE-2026-76222 PyPI Updated 3 September 2026

References