8.7

CVE-2026-100689: gitpython-developers gitpython Path Traversal

CVSS: 8.7v4.0HighAwaiting analysis
AliasesGHSA-59cr-6r3x-644wUBUNTU-CVE-2026-100689DEBIAN-CVE-2026-100689
Published 26-09-2026Last modified 08-10-2026

Vulnerability summary

CVE-2026-100689 is a high (CVSS 8.7) Path Traversal vulnerability in gitpython-developers gitpython. EPSS estimates a 0.40% chance of exploitation in the next 30 days, higher than 32.9% of scored vulnerabilities.

Overall risk
35/100
0100
Medium · default modelHow is this calculated?
CVSS score
8.7/10
010
High · v4.0 (CVE.org)
EPSS score
0.40%
0%100%
Low · Change unavailable
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Timeline

  1. 26-09-2026
    PublishedVulnerability first disclosed.
  2. 08-10-2026
    Last modifiedVulnerability information updated.

Description

GitPython before 3.1.62 does not validate the `path` field read from an untrusted .gitmodules file when updating submodules. While a prior fix (GHSA-hmq2-w58f-27jc) added Submodule._validated_name() to constrain the `name` field, and GitPython's own containment guard Submodule._to_relative_path() is applied in add() and move(), Submodule.update() derives the absolute checkout location from the raw `path` value without that guard. A .gitmodules entry containing directory traversal components (e.g., path = ../../../tmp/escaped) can therefore cause directories to be created via os.makedirs() outside the repository working tree, populated from the submodule URL on the clone path, and removed via shutil.rmtree() when force_remove is used. Exploitation requires an application flow that updates submodules at a non-HEAD commit (such as a historical-commit API); the common clone-then-update flow re-derives the path from a canonical tree lookup and is not affected. The issue is fixed in GitPython 3.1.62.

CVSS metrics

8 scores · 5 sources · 2 versions

EPSS trend

Probability

0.40%

Chance of exploitation in the next 30 days

Percentile

33%

Versus all other CVEs

30-day change

Change unavailable

Change unavailable

27-09-202619-10-2026
EPSS score
0.40%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Debian1 product
  • python-gitAll versions (No fix recorded) | < 3.1.62-1
Gitpython-developers1 product
Opensuse1 product
  • python-GitPython&distro=openSUSE Tumbleweed< 3.2.0-1.1
PyPI1 product
  • gitpython< 3.1.62
Ubuntu1 product
  • python-gitAll versions (No fix recorded)

5 vendors · 5 products

References

10 links