CVE-2026-76220
Received Received - Intake

GitPython Command Injection via Kwargs Bypass

Vulnerability report for CVE-2026-76220, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-19

Last updated on: 2026-08-19

Assigner: VulnCheck

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-19
Last Modified
2026-08-19
Generated
2026-08-19
AI Q&A
2026-08-19
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
gitpython gitpython to 3.1.58 (exc)
gitpython_developers gitpython to 3.1.58 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-88 The product constructs a string for a command to be executed by a separate component in another control sphere, but it does not properly delimit the intended arguments, options, or switches within that command string.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-76220 is a command execution vulnerability in GitPython versions before 3.1.58. It allows attackers to bypass the check_unsafe_options guard by combining a single-character keyword argument with split_single_char_options=False. This causes the system to emit a joined token like --upload-pack=<cmd>, enabling arbitrary OS command execution even when allow_unsafe_options is set to False.

Detection Guidance

Check GitPython version with pip show GitPython. If version is <= 3.1.57, the system is vulnerable. Review code using GitPython for methods like clone_from, fetch, or push that accept user-controlled keyword arguments with split_single_char_options=False.

Impact Analysis

This vulnerability can allow attackers to execute arbitrary commands on your system if you are using a vulnerable version of GitPython. Attackers could create files, modify data, or take control of your system by exploiting methods like clone_from, fetch, or push with crafted arguments.

Compliance Impact

This vulnerability could lead to unauthorized access and data breaches, violating GDPR and HIPAA requirements for data protection and confidentiality. Organizations using vulnerable GitPython versions may face compliance violations, legal penalties, and reputational damage due to potential exposure of sensitive data.

Mitigation Strategies

Upgrade GitPython to version 3.1.58 or higher immediately. Review and update any code using GitPython to avoid passing user-controlled arguments to guarded methods. Set allow_unsafe_options=True only when absolutely necessary and validate all inputs.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-76220. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart