Skip to content
CVE PROGRAM SOURCE RECORD8.4 High

CVE-2026-76222

GitPython before 3.1.58 Path Traversal via .gitmodules Submodule Name

Description

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

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

gitpython-developers GitPython

Default version status: unaffected

  • 0 to < 3.1.58affected
  • 3.1.58unaffected
pkg:pypi/gitpython

References