NetSight
high8.2

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 o…

Impact

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 packages

EcosystemPackageAffectedFixed in
pipGitPython<= 3.1.573.1.58

Affected products

VendorProductAffected versions
Gitpython ProjectGitpython
before 3.1.58

Weakness classification

References