CVE-2026-76222

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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:python:*:*

History

02 Sep 2026, 19:37

Type Values Removed Values Added
First Time Gitpython Project gitpython
Gitpython Project
CPE cpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:python:*:*
References () https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-hmq2-w58f-27jc - () https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-hmq2-w58f-27jc - Exploit, Vendor Advisory
References () https://www.vulncheck.com/advisories/gitpython-before-path-traversal-via-gitmodules-submodule-name - () https://www.vulncheck.com/advisories/gitpython-before-path-traversal-via-gitmodules-submodule-name - Third Party Advisory

25 Aug 2026, 03:16

Type Values Removed Values Added
References () https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-hmq2-w58f-27jc - () https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-hmq2-w58f-27jc -

19 Aug 2026, 14:17

Type Values Removed Values Added
New CVE

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')