Path Traversal in Gitpython-Developers Gitpython

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.

Vulnerability class: Path Traversal (Directory Traversal)

CVSS v3 metric

CVSS v3 base score 8.2 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:L.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2026-76222?
CVE-2026-76222 is a high-severity vulnerability in Gitpython-Developers Gitpython, classified under Path Traversal. CVSS score: 8.2/10. Published 2026-08-19.
How severe is CVE-2026-76222?
High severity. CVSS v3 base score is 8.2 out of 10.