SUSE VEX
SUSEVEX-CVE-2026-100689
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| SUSE:Linux Enterprise Desktop 15 SP7 | python-GitPython | All versions, no fix yet |
| SUSE:Linux Enterprise Desktop 15 SP7 | python311-GitPython | All versions, no fix yet |
| SUSE:Linux Enterprise High Performance Computing 15 SP4 | python-GitPython | All versions, no fix yet |
| SUSE:Linux Enterprise High Performance Computing 15 SP4 | python311-GitPython | All versions, no fix yet |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | python-GitPython | All versions, no fix yet |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | python311-GitPython | All versions, no fix yet |
| SUSE:Linux Enterprise High Performance Computing 15 SP5 | python-GitPython | All versions, no fix yet |
| SUSE:Linux Enterprise High Performance Computing 15 SP5 | python311-GitPython | All versions, no fix yet |
| SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS | python-GitPython | All versions, no fix yet |
| SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS | python311-GitPython | All versions, no fix yet |
| SUSE:Linux Enterprise Module for Python 3 15 SP7 | python-GitPython | All versions, no fix yet |
| SUSE:Linux Enterprise Module for Python 3 15 SP7 | python311-GitPython | All versions, no fix yet |
| SUSE:Linux Enterprise Server 15 SP4 | python-GitPython | All versions, no fix yet |
| SUSE:Linux Enterprise Server 15 SP4 | python311-GitPython | All versions, no fix yet |
| SUSE:Linux Enterprise Server 15 SP4-LTSS | python-GitPython | All versions, no fix yet |
| SUSE:Linux Enterprise Server 15 SP4-LTSS | python311-GitPython | All versions, no fix yet |
| SUSE:Linux Enterprise Server 15 SP5 | python-GitPython | All versions, no fix yet |
| SUSE:Linux Enterprise Server 15 SP5 | python311-GitPython | All versions, no fix yet |
| SUSE:Linux Enterprise Server 15 SP5-LTSS | python-GitPython | All versions, no fix yet |
| SUSE:Linux Enterprise Server 15 SP5-LTSS | python311-GitPython | All versions, no fix yet |
| SUSE:Linux Enterprise Server 15 SP6 | python-GitPython | All versions, no fix yet |
| SUSE:Linux Enterprise Server 15 SP6 | python311-GitPython | All versions, no fix yet |
| SUSE:Linux Enterprise Server 15 SP6-LTSS | python-GitPython | All versions, no fix yet |
| SUSE:Linux Enterprise Server 15 SP6-LTSS | python311-GitPython | All versions, no fix yet |
| SUSE:Linux Enterprise Server 15 SP7 | python-GitPython | All versions, no fix yet |
| SUSE:Linux Enterprise Server 15 SP7 | python311-GitPython | All versions, no fix yet |
| SUSE:Linux Enterprise Server 16.0 | python-GitPython | All versions, no fix yet |
| SUSE:Linux Enterprise Server 16.0 | python313-GitPython | All versions, no fix yet |
| SUSE:Linux Enterprise Server 16.1 | python-GitPython | All versions, no fix yet |
| SUSE:Linux Enterprise Server 16.1 | python313-GitPython | All versions, no fix yet |
| SUSE:Linux Enterprise Server Teradata 15 SP4 | python-GitPython | All versions, no fix yet |
| SUSE:Linux Enterprise Server for NVIDIA 16.1 | python-GitPython | All versions, no fix yet |
| SUSE:Linux Enterprise Server for NVIDIA 16.1 | python313-GitPython | All versions, no fix yet |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP4 | python-GitPython | All versions, no fix yet |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP4 | python311-GitPython | All versions, no fix yet |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP5 | python-GitPython | All versions, no fix yet |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP5 | python311-GitPython | All versions, no fix yet |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP6 | python-GitPython | All versions, no fix yet |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP6 | python311-GitPython | All versions, no fix yet |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP7 | python-GitPython | All versions, no fix yet |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP7 | python311-GitPython | All versions, no fix yet |
| SUSE:Linux Enterprise Server for SAP applications 16.0 | python-GitPython | All versions, no fix yet |
| SUSE:Linux Enterprise Server for SAP applications 16.0 | python313-GitPython | All versions, no fix yet |
| SUSE:Linux Enterprise Server for SAP applications 16.1 | python-GitPython | All versions, no fix yet |
| SUSE:Linux Enterprise Server for SAP applications 16.1 | python313-GitPython | All versions, no fix yet |
| openSUSE:Leap 16.0 | python-GitPython | All versions, no fix yet |
| openSUSE:Leap 16.1 | python-GitPython | All versions, no fix yet |