# CVE-2026-100689: GitPython before 3.1.62 Path Traversal via gitmodules path

- Priority: **Prioritise**
- Reason: Severe, CVSS 8.7 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 3.1.62 (CNA); fix release not confirmed
- Status: published
- Published: 2026-09-26 · Modified: 2026-10-08
- Aliases: GHSA-59cr-6r3x-644w, UBUNTU-CVE-2026-100689, DEBIAN-CVE-2026-100689, openSUSE-SU-2026:11971-1
- Record: https://cvemate.com/vulnerability/CVE-2026-100689 · JSON: https://cvemate.com/vulnerability/CVE-2026-100689/json

## Description

```text
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.
```

## Signals

- CVSS: 8.7 high (v4.0, CVE.org) 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
- EPSS: 0.401%, percentile 36.485%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian python-git (Debian): All versions (No fix recorded) \| \< 3.1.30-1+deb12u3 \| \< 3.1.44-1+deb13u1 \| \< 3.1.62-1
- ubuntu python-git (Ubuntu): All versions (No fix recorded)
- gitpython-developers gitpython: \< 3.1.62
- PyPI gitpython (PyPI): \< 3.1.62
- opensuse python-GitPython&distro=openSUSE Tumbleweed (openSUSE): \< 3.2.0-1.1

## References

- <https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-59cr-6r3x-644w>
- <https://www.vulncheck.com/advisories/gitpython-before-3.1.62-path-traversal-via-gitmodules-path>
- <https://github.com/gitpython-developers/GitPython/pull/2225>
- <https://github.com/gitpython-developers/GitPython/commit/1ed0ebc2f2e74d979cdc367a4864a7731fdcc093>
- <https://github.com/gitpython-developers/GitPython>
- <https://github.com/gitpython-developers/GitPython/releases/tag/3.1.62>
- <https://ubuntu.com/security/CVE-2026-100689>
- <https://www.cve.org/CVERecord?id=CVE-2026-100689>
- <https://security-tracker.debian.org/tracker/CVE-2026-100689>
- <https://www.suse.com/security/cve/CVE-2026-100689>

---

Data as of 2026-12-05T04:47:00.596Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
