Description
GitPython before 3.2.0 contains a remote code execution vulnerability that allows attackers to run commands because Git.ls_remote forwards URLs without check_unsafe_protocols validation. Attackers can supply ext:: remote-helper URLs to execute commands when git permits the ext transport, while merge_base and IndexFile.move also accept unguarded option injection.
Published: 2026-10-14
Score: 7.7 High
EPSS: < 1% Very Low
KEV: No
Impact: Remote Code Execution
Action: Patch ASAP
AI Analysis

Impact

GitPython releases prior to 3.2.0 contain a flaw that can lead to remote code execution. The vulnerability arises because the Git.ls_remote function forwards URLs through the ext:: transport without validating against unsafe protocols, and merge_base and IndexFile.move also allow unguarded option injection. By providing a specially crafted ext:: remote‑helper URL, an attacker can trigger arbitrary command execution within the environment where the Python process runs, compromising confidentiality, integrity, and availability of the system.

Affected Systems

Vulnerable versions are all GitPython releases older than 3.2.0 distributed by the GitPython developers. No other specific releases or patches are identified.

Risk and Exploitability

The CVSS base score is 7.7, indicating substantial severity. No EPSS score could be retrieved and the vulnerability is not yet listed in CISA KEV. The attack can be carried out remotely when the affected application or service provides an attacker with the ability to invoke GitPython, for example by executing a Python script that calls ls_remote with a malicious ext:: URL. It could also be exploited locally by any user able to run arbitrary Python code that imports GitPython. Successful exploitation would give the attacker the same privileges as the Python process running GitPython.

Generated by OpenCVE AI on October 15, 2026 at 12:05 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to GitPython 3.2.0 or later
  • If an upgrade is not immediately possible, disable the ext transport in Git configuration or set check_unsafe_protocols to true to block ext:: URLs
  • Restrict the execution environment of the Python process, limiting PATH or running it within a container that omits dangerous system utilities

Generated by OpenCVE AI on October 15, 2026 at 12:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4872-1 python-git security update
History

Sat, 17 Oct 2026 12:45:00 +0000

Type Values Removed Values Added
First Time appeared Gitpython-developers
Gitpython-developers gitpython
Vendors & Products Gitpython-developers
Gitpython-developers gitpython

Thu, 15 Oct 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 15 Oct 2026 13:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-88
References
Metrics threat_severity

None

threat_severity

Important


Wed, 14 Oct 2026 23:00:00 +0000

Type Values Removed Values Added
Description GitPython before 3.2.0 contains a remote code execution vulnerability that allows attackers to run commands because Git.ls_remote forwards URLs without check_unsafe_protocols validation. Attackers can supply ext:: remote-helper URLs to execute commands when git permits the ext transport, while merge_base and IndexFile.move also accept unguarded option injection.
Title GitPython before 3.2.0 Command Execution via ls_remote ext:: URLs
First Time appeared Gitpython Project
Gitpython Project gitpython
Weaknesses CWE-1287
CPEs cpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:*:*:*
Vendors & Products Gitpython Project
Gitpython Project gitpython
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 7.7, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

Gitpython-developers Gitpython
Gitpython Project Gitpython
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-15T13:36:14.066Z

Reserved: 2026-10-14T22:16:22.734Z

Link: CVE-2026-110857

cve-icon Vulnrichment

Updated: 2026-10-15T13:36:10.292Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-10-14T23:17:26.903

Modified: 2026-10-15T20:33:06.527

Link: CVE-2026-110857

cve-icon Redhat

Severity : Important

Publid Date: 2026-10-14T22:52:40Z

Links: CVE-2026-110857 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-17T12:30:08Z

Weaknesses
  • CWE-1287

    Improper Validation of Specified Type of Input

  • CWE-88

    Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')