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.

Routine
CVSS
n/a
No vendor severity
Exploitation
None reported
No vendor assessment
CISA KEV
Not listed
Not in the Known Exploited Vulnerabilities catalog
EPSS
0.0040
34th percentile

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

ProductFixed inFixReleased
Linux
python-git · Debian 12.15 (bookworm) 3.1.30-1+deb12u3 DEBIAN-CVE-2026-100689 Sep 27, 2026
python-git · Debian 13.5 (trixie) 3.1.44-1+deb13u1 DEBIAN-CVE-2026-100689 Sep 27, 2026
python-git · Debian 14 3.1.62-1 DEBIAN-CVE-2026-100689 Sep 27, 2026

Patch Radar data is free to use with attribution. Terms and how to credit it.

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.