High severity8.2NVD Advisory· Published Aug 19, 2026· Updated Sep 2, 2026
CVE-2026-76222
CVE-2026-76222
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
GitPythonPyPI | < 3.1.58 | 3.1.58 |
Affected products
3- osv-coords2 versionspkg:rpm/opensuse/python-GitPython&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/python-GitPython&distro=openSUSE%20Leap%2016.0
< 3.1.59-2.1+ 1 more
- (no CPE)range: < 3.1.59-2.1
- (no CPE)range: < 3.1.44-160000.4.1
- Range: <3.1.58
Patches
Vulnerability mechanics
References
9- github.com/gitpython-developers/GitPython/security/advisories/GHSA-hmq2-w58f-27jcnvdExploitVendor AdvisoryWEB
- github.com/advisories/GHSA-hmq2-w58f-27jcghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-76222ghsaADVISORY
- www.vulncheck.com/advisories/gitpython-before-path-traversal-via-gitmodules-submodule-namenvdThird Party AdvisoryWEB
- github.com/gitpython-developers/GitPython/commit/4299c990e1ca21896f9485277caf7bb0ae5b404cghsaWEB
- github.com/gitpython-developers/GitPython/commit/e4b8e7d026ca6abb4cf604f8e77093432ce23c06ghsaWEB
- github.com/gitpython-developers/GitPython/pull/2202ghsaWEB
- github.com/gitpython-developers/GitPython/releases/tag/3.1.58ghsaWEB
- github.com/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2026-3784.yamlghsaWEB
News mentions
1- Gitpython: Six High-Severity Vulnerabilities Patched in Version 3.1.58Vypr Intelligence · Aug 19, 2026