# CVE-2026-100689: python-git: GitPython before 3.1.62 does not validate the `path` field read from an untrusted .gitmodules file when updating subm...

CVE-2026-100689 is fixed in python-git on 1 platform, first by DEBIAN-CVE-2026-100689, released September 27, 2026. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2026-100689
- Priority: Routine
- CVSS: n/a
- EPSS: 0.0040
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Sep 26, 2026

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

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | python-git Debian 12.15 (bookworm) | 3.1.30-1+deb12u3 | [DEBIAN-CVE-2026-100689](https://patchblox.com/security/data/fix/linux/debian-cve-2026-100689.md) | Sep 27, 2026 |
| Linux | python-git Debian 13.5 (trixie) | 3.1.44-1+deb13u1 | [DEBIAN-CVE-2026-100689](https://patchblox.com/security/data/fix/linux/debian-cve-2026-100689.md) | Sep 27, 2026 |
| Linux | python-git Debian 14 | 3.1.62-1 | [DEBIAN-CVE-2026-100689](https://patchblox.com/security/data/fix/linux/debian-cve-2026-100689.md) | Sep 27, 2026 |

---

Data as of 2026-11-08T19:12:23Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
