CVE-2026-76222
GitPython before 3.1.58 Path Traversal via .gitmodules Submodule Name
- State
- Published
- Severity
- 8.4 High
- Published
- Aug 19, 2026
- Updated
- Oct 8, 2026
- Reserved
- Aug 19, 2026
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 8.4 High | 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 | VulnCheck |
| 3.1 | 8.2 High | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:L | VulnCheck |
Weaknesses
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Products
| Product | Versions |
|---|---|
GitPythongitpython-developers |
|
References
- GitHub Security Advisory (GHSA-hmq2-w58f-27jc)vendor-advisory
- VulnCheck Advisory: GitPython before 3.1.58 Path Traversal via .gitmodules Submodule Namethird-party-advisory
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.