Vulnerability · Published Aug 19, 2026 · Assigned by VulnCheck

CVE-2026-76222GitPython before 3.1.58 Path Traversal via .gitmodules Submodule Name

High 8.2

In plain English

A high-severity path traversal in GitPython from gitpython-developers. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 37% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.2High
Exploit odds (30 days)0.4%top 63.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.24py3-gitpython3.1.61-r0ALPINE-CVE-2026-76222
Debian:12python-git3.1.30-1+deb12u3DEBIAN-CVE-2026-76222
Debian:13python-git3.1.44-1+deb13u1DEBIAN-CVE-2026-76222
Debian:14python-git3.1.61-1DEBIAN-CVE-2026-76222
PyPIgitpython3.1.58PYSEC-2026-3784
PyPIgitpython3.1.58GHSA-hmq2-w58f-27jc
Ubuntu:26.10python-gitno fix listedUBUNTU-CVE-2026-76222

Affected products (as reported)

VendorProductVersions
gitpython-developers GitPython 0 – before 3.1.58

Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:L

References