Cloudanix VulnDB

CVE-2026-76220

High · 8.8

CVSS

8.8

EPSS

0.6%

Published

Aug 19, 2026

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A bug in a popular Python library used for Git operations lets attackers run their own commands on the computer if they can reach the affected code.

Exploit Available
Exploitation
Remote Authenticated
Attacker needs
Low Privilege
Complexity
Low
Impact
Remote Code Execution
Component
Library
Class
Command Injection
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Bypass of the check_unsafe_options guard in GitPython via a single-character kwarg combined with split_single_char_options=False, allowing crafted kwargs dictionaries passed to methods such as clone_from to produce tokens parsed as --upload-pack and execute arbitrary OS commands even when allow_unsafe_options=False.

Why it matters to the business

Attackers can achieve remote code execution on systems running affected GitPython versions, leading to potential full system compromise, data theft, or supply-chain attacks; the vulnerability has an available exploit, rising exploitation probability, and affects widely used Red Hat packages with a CISA-style remediation window implied by the 66-day publication age.

How an attack unfolds

An attacker identifies a target using a vulnerable GitPython release, prepares a malicious kwargs dictionary containing a single-character key that bypasses the guard when split_single_char_options=False, invokes a guarded method such as clone_from, and causes the library to emit a joined token interpreted as --upload-pack, resulting in arbitrary command execution on the host.

How to fix it

Upgrade python3.12-gitpython on Red Hat Enterprise Linux 9 to version 3.1.59-1.el9pc (RHSA-2026:63385) or later; set allow_unsafe_options=True only where strictly necessary and validate all caller-supplied kwargs; apply equivalent patches or newer releases in other distributions as soon as they become available.

How to confirm the fix worked

Confirm the installed GitPython version is at least 3.1.59, review application code for direct calls to clone_from or other guarded methods, and test that single-character kwarg bypass attempts no longer result in command execution; monitor package-manager output for the RHSA advisory.

Typical attack path

  1. Locate an application or service that imports and calls GitPython methods with default unsafe-options settings
  2. Craft a kwargs dictionary using a single-character key and split_single_char_options=False
  3. Invoke a protected method such as clone_from or similar with the malicious dictionary
  4. Trigger emission of a forged --upload-pack token that Git interprets as an OS command
  5. Execute arbitrary shell commands under the privileges of the calling process

How to detect it

Search application and system logs for Git subprocess calls containing unexpected --upload-pack arguments, review process creation events around GitPython method invocations, and inspect network or file-access logs for unusual repository operations that coincide with the vulnerable library version.

  • --upload-pack
  • split_single_char_options=False
  • check_unsafe_options
  • clone_from.*kwargs

What your security team should do

  • Immediately upgrade all instances of GitPython to the fixed release 3.1.59-1.el9pc or newer
  • Audit codebases for use of clone_from and related methods and enforce strict input validation on kwargs
  • Enable logging of Git subprocess invocations to detect anomalous --upload-pack usage
  • Prioritize patching within the next 7 days given available exploit and rising EPSS trend
  • Review downstream dependents and update any internal packages that embed vulnerable GitPython

The record

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

Ecosystem Package Introduced Fixed

Related vulnerabilities