Junglewise Threat Intelligence

CVE-2026-76222: PYSEC-2026-3784 - GitPython before 3.1.58 fails to validate submodule names from .gitmodules files, allowing attackers to create Git repositories at arbitrary

CVE-2026-76222 · Severity: medium · CVSS 4 · Published 2026-08-19

Technologies: gitpython (PyPI). Vendors: PyPI.

Executive brief

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.

Affected products

  • PyPI gitpython

Related threats