Impact
GitPython before version 3.1.62 fails to sanitize the `path` field read from an untrusted .gitmodules file during a submodule update. The vulnerability allows directories and files to be created or removed outside the repository working tree via traversal components, enabling arbitrary file writes or deletions that could lead to code execution by an attacker controlling the .gitmodules data. This is a path traversal weakness (CWE‑22).
Affected Systems
The problem affects the GitPython library maintained by the GitPython developers. Any deployment using GitPython versions earlier than 3.1.62 that performs submodule updates without restricting the .gitmodules source is potentially vulnerable.
Risk and Exploitability
The CVSS score of 8.7 indicates high severity. Exploitation requires an application that updates submodules at a non‑HEAD commit, which is a less common but still possible workflow. The EPSS score is not available and the vulnerability is not listed in CISA’s KEV catalog, but the high CVSS suggests a significant risk should an attacker achieve the necessary state. Operators should treat this as a serious threat to confidentiality, integrity, and availability of affected systems.
OpenCVE Enrichment