CVE-2026-110857

GitPython before 3.2.0 Command Execution via ls_remote ext:: URLs

Published Oct 14, 2026 CVSS 4.0 · 7.7 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

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
Type Values Removed Values Added
First Time appeared Gitpython-developers
Gitpython-developers gitpython
Vendors & Products Gitpython-developers
Gitpython-developers gitpython
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses
  • CWE-1287

    Improper Validation of Specified Type of Input

  • CWE-88

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

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 15, 2026, 1:36 PM
Reserved
Oct 14, 2026, 10:16 PM
Status
Awaiting Analysis
Published
Oct 14, 2026, 11:17 PM
Modified
Oct 15, 2026, 8:33 PM
Severity
Important
Public date
Oct 14, 2026, 10:52 PM