CVE-2026-76222 PUBLISHED

GitPython before 3.1.58 Path Traversal via .gitmodules Submodule Name

Assigner: VulnCheck
Reserved: 19.08.2026 Published: 19.08.2026 Updated: 19.08.2026

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.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:H/SA:L
CVSS Score: 8.4

Product Status

Vendor gitpython-developers
Product GitPython
Versions Default: unaffected
  • affected from 0 to 3.1.58 (excl.)
  • Version 3.1.58 is unaffected

Credits

  • tinyb0y reporter

References

Problem Types

  • Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') CWE