CVE-2026-100689
published high CVSS 4.0 · 8.7GitPython before 3.1.62 Path Traversal via gitmodules path
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| gitpython-developers | — | GitPython0 to < 3.1.62 (affected · semver) · 3.1.62 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
| Debian | bookworm | python-git | Advisory build | 3.1.30-1+deb12u3 | DLA-4872-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-GitPythonaarch64 | Advisory build | 3.2.0-1.1 | OPENSUSE-SU-2026:11971-1 |
| Debian | trixie | python-git | Advisory build | 3.1.44-1+deb13u1 | DSA-6594-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-GitPythonppc64le | Advisory build | 3.2.0-1.1 | OPENSUSE-SU-2026:11971-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-GitPythons390x | Advisory build | 3.2.0-1.1 | OPENSUSE-SU-2026:11971-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-GitPythonx86_64 | Advisory build | 3.2.0-1.1 | OPENSUSE-SU-2026:11971-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-GitPythonaarch64 | Advisory build | 3.2.0-1.1 | OPENSUSE-SU-2026:11971-1 |
Show 3 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-GitPythonppc64le | Advisory build | 3.2.0-1.1 | OPENSUSE-SU-2026:11971-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-GitPythons390x | Advisory build | 3.2.0-1.1 | OPENSUSE-SU-2026:11971-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-GitPythonx86_64 | Advisory build | 3.2.0-1.1 | OPENSUSE-SU-2026:11971-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.7 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 5.9 | medium | VulnCheck · cna | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| gitpython-developers | GitPython | 0 to < 3.1.62 (affected · semver)3.1.62 (unaffected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
2- GitHub Security Advisory (GHSA-59cr-6r3x-644w) https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-59cr-6r3x-644w
- VulnCheck Advisory: GitPython before 3.1.62 Path Traversal via gitmodules path https://www.vulncheck.com/advisories/gitpython-before-3.1.62-path-traversal-via-gitmodules-path
Provider assertions
2VulnCheck · cna
GitPython before 3.1.62 Path Traversal via gitmodules path
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- b0a24ab384f5eca3a0fd0bbca9914a15d18d2ae884bd241b13b8df54b26d2db7
- Ingested
- 09 Oct 2026, 16:25:58 UTC
- Source record
- Official CVE record