{"cve":"CVE-2026-76222","nvd":{"published":"2026-08-19T14:17:48.603","modified":"2026-09-02T19:37:05.047","status":"Analyzed","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.","cvss_v4":{"vector":"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","score":8.4},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:L","score":8.2},"cwes":["CWE-22"],"references":["https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-hmq2-w58f-27jc","https://www.vulncheck.com/advisories/gitpython-before-path-traversal-via-gitmodules-submodule-name","https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-hmq2-w58f-27jc"],"products":["gitpython_project:gitpython"],"source":"nvd","synced_at":"2026-10-19T22:49:38.260478770+00:00"},"epss":{"cve":"CVE-2026-76222","score":0.00422,"percentile":0.36551,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-hmq2-w58f-27jc","url":"https://osv.dev/vulnerability/GHSA-hmq2-w58f-27jc","summary":"GitPython: Arbitrary Git Repository Creation Outside the Working Tree via Unvalidated .gitmodules Submodule Name in GitPython","modified":"2026-09-08T21:00:05.149418166Z","packages":[{"ecosystem":"PyPI","name":"gitpython","purl":"pkg:pypi/gitpython","ranges":["<3.1.58"],"fixed":["3.1.58"]}]},{"id":"PYSEC-2026-3784","url":"https://osv.dev/vulnerability/PYSEC-2026-3784","summary":"","modified":"2026-09-03T11:00:04.961358995Z","packages":[{"ecosystem":"PyPI","name":"gitpython","purl":"pkg:pypi/gitpython","ranges":["<3.1.58"],"fixed":["3.1.58"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}