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.
References
| Link | Resource |
|---|---|
| https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-hmq2-w58f-27jc | Exploit Vendor Advisory |
| https://www.vulncheck.com/advisories/gitpython-before-path-traversal-via-gitmodules-submodule-name | Third Party Advisory |
| https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-hmq2-w58f-27jc | Exploit Vendor Advisory |
Configurations
History
No history.
Information
Published : 2026-08-19 14:17
Updated : 2026-09-02 19:37
NVD link : CVE-2026-76222
Mitre link : CVE-2026-76222
CVE.ORG link : CVE-2026-76222
JSON object : View
Products Affected
gitpython_project
- gitpython
CWE
CWE-22
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
