Vulnerability · Published Aug 19, 2026 · Assigned by VulnCheck

CVE-2026-76220GitPython before 3.1.58 Command Execution via split_single_char_options

High 8.8

In plain English

A high-severity argument injection in GitPython from gitpython-developers. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 48% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.8High
Exploit odds (30 days)0.6%top 51.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

GitPython before 3.1.58 contains a command execution vulnerability in the check_unsafe_options guard that can be bypassed by combining a single-character kwarg with split_single_char_options=False. Attackers can supply a crafted kwargs dictionary to guarded methods like clone_from to emit a joined token parsed as --upload-pack, enabling arbitrary OS command execution at default allow_unsafe_options=False.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.24py3-gitpython3.1.61-r0ALPINE-CVE-2026-76220
Debian:12python-git3.1.30-1+deb12u3DEBIAN-CVE-2026-76220
Debian:13python-git3.1.44-1+deb13u1DEBIAN-CVE-2026-76220
Debian:14python-git3.1.61-1DEBIAN-CVE-2026-76220
PyPIgitpython3.1.58PYSEC-2026-3843
PyPIgitpython3.1.58GHSA-wvpp-8hx9-p66j
Ubuntu:26.10python-gitno fix listedUBUNTU-CVE-2026-76220

Affected products (as reported)

VendorProductVersions
gitpython-developers GitPython 0 – before 3.1.58

Weakness: CWE-88 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

References