Upstream information
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.SUSE information
Overall state of this security issue: Pending
This issue is currently rated as having moderate severity.
| CVSS detail | CNA (VulnCheck) | SUSE |
|---|---|---|
| Base Score | 5.9 | 5.9 |
| Vector | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L |
| Attack Vector | Network | Network |
| Attack Complexity | High | High |
| Privileges Required | None | None |
| User Interaction | Required | Required |
| Scope | Unchanged | Unchanged |
| Confidentiality Impact | None | None |
| Integrity Impact | High | High |
| Availability Impact | Low | Low |
| CVSSv3 Version | 3.1 | 3.1 |
| CVSS detail | CNA (VulnCheck) |
|---|---|
| Base Score | 8.7 |
| Vector | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| Attack Vector | Network |
| Attack Complexity | Low |
| Attack Requirements | None |
| Privileges Required | None |
| User Interaction | None |
| Vulnerable System Confidentiality Impact | High |
| Vulnerable System Integrity Impact | None |
| Vulnerable System Availability Impact | None |
| Subsequent System Confidentiality Impact | None |
| Subsequent System Integrity Impact | None |
| Subsequent System Availability Impact | None |
| CVSSv4 Version | 4.0 |
Status of this issue by product and package
Please note that this evaluation state might be work in progress, incomplete or outdated. Also information for service packs in the LTSS phase is only included for issues meeting the LTSS criteria. If in doubt, feel free to contact us for clarification. The updates are grouped by state of their lifecycle. SUSE product lifecycles are documented on the lifecycle page.
| Product(s) | Source package | State |
|---|---|---|
| Products under general support and receiving all security fixes. | ||
| SUSE Linux Enterprise Desktop 15 SP7 | python-GitPython | Affected |
| SUSE Linux Enterprise Module for Python 3 15 SP7 | python-GitPython | Affected |
| SUSE Linux Enterprise Server 15 SP7 | python-GitPython | Affected |
| SUSE Linux Enterprise Server 16.0 | python-GitPython | Affected |
| SUSE Linux Enterprise Server 16.1 | python-GitPython | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP7 | python-GitPython | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.0 | python-GitPython | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.1 | python-GitPython | Affected |
| openSUSE Leap 16.0 | python-GitPython | Affected |
| Products under Long Term Service Pack support and receiving important and critical security fixes. | ||
| SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | python-GitPython | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5 | python-GitPython | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS | python-GitPython | Affected |
| SUSE Linux Enterprise Module for Python 3 15 SP4 | python-GitPython | Affected |
| SUSE Linux Enterprise Module for Python 3 15 SP5 | python-GitPython | Affected |
| SUSE Linux Enterprise Module for Python 3 15 SP6 | python-GitPython | Affected |
| SUSE Linux Enterprise Server 15 SP4 | python-GitPython | Affected |
| SUSE Linux Enterprise Server 15 SP4-LTSS | python-GitPython | Affected |
| SUSE Linux Enterprise Server 15 SP5 | python-GitPython | Affected |
| SUSE Linux Enterprise Server 15 SP5-LTSS | python-GitPython | Affected |
| SUSE Linux Enterprise Server 15 SP6 | python-GitPython | Affected |
| SUSE Linux Enterprise Server 15 SP6-LTSS | python-GitPython | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | python-GitPython | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | python-GitPython | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | python-GitPython | Affected |
| Products past their end of life and not receiving proactive updates anymore. | ||
| SUSE Linux Enterprise Desktop 15 SP4 | python-GitPython | Affected |
| SUSE Linux Enterprise Desktop 15 SP5 | python-GitPython | Affected |
| SUSE Linux Enterprise Desktop 15 SP6 | python-GitPython | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP4 | python-GitPython | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS | python-GitPython | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS | python-GitPython | Affected |
| SUSE Manager Proxy 4.3 | python-GitPython | Affected |
| SUSE Manager Retail Branch Server 4.3 | python-GitPython | Affected |
| SUSE Manager Server 4.3 | python-GitPython | Affected |
| openSUSE Leap 15.4 | python-GitPython | Affected |
| openSUSE Leap 15.5 | python-GitPython | Affected |
| openSUSE Leap 15.6 | python-GitPython | Affected |
SUSE Timeline for this CVE
CVE page created: Mon Sep 28 15:47:08 2026CVE page last modified: Tue Sep 29 17:47:55 2026