{"id":"CVE-2026-76222","published":"2026-08-19T14:02:05Z","modified":"2026-10-08T15:25:02Z","title":"GitPython before 3.1.58 Path Traversal via .gitmodules Submodule Name","vendor":"gitpython-developers","product":"GitPython","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00422,"percentile":0.37395,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-hmq2-w58f-27jc","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/gitpython-before-path-traversal-via-gitmodules-submodule-name","tags":["third-party-advisory"]}],"priority":{"score":13.2,"factors":[{"name":"EPSS percentile","points":7.48},{"name":"CVSS severity","points":5.74}]},"vendorSlug":"gitpython-developers","affectedVersions":[{"vendor":"gitpython-developers","product":"GitPython","versions":["< 3.1.58"]}],"fixedVersions":[{"vendor":"gitpython-developers","product":"GitPython","versions":["3.1.58"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-25T01:56:48.672356Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"GitPython","vulnerableRanges":["<3.1.58"],"patched":["3.1.58"],"from":["GHSA-hmq2-w58f-27jc","PYSEC-2026-3784"],"provenance":"source"}],"summary":{"text":"GitPython before 3.1.58 does not validate submodule names read from .gitmodules files, which is a path traversal flaw in the library's submodule handling. An attacker who supplies a malicious repository containing traversal sequences in submodule names can cause GitPython to create Git repositories at arbitrary filesystem paths outside the intended clone directory, provided the victim is induced to interact with that repository (for example, by cloning it and initializing its submodules) and needs no prior authentication.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:41:51Z"},"euvd":{"id":"EUVD-2026-62463","exploited":false,"provenance":"source"}}