CVE-2026-76220
High · 8.8CVSS
8.8
EPSS
0.6%
Published
Aug 19, 2026
CISA due date
—
Cloudanix analysis
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.
- 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
- Locate an application or service that imports and calls GitPython methods with default unsafe-options settings
- Craft a kwargs dictionary using a single-character key and split_single_char_options=False
- Invoke a protected method such as clone_from or similar with the malicious dictionary
- Trigger emission of a forged --upload-pack token that Git interprets as an OS command
- 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
- CVE-2026-97350 Securepoint SSL VPN Client v2 on Windows contains vulnerabilities in the handling of… CWE-88
- CVE-2026-91909 Dell OpenManage Enterprise, versions prior to 4.8.0, contains an Improper Neutralization… CWE-88
- CVE-2026-62968 Dream Displays provides in-game screens for streaming videos in Minecraft. CWE-88
- CVE-2026-116252 pgAdmin 4's materialized view refresh passed the target database's name to psql's… CWE-88
- CVE-2026-111504 Dell OpenManage Enterprise, versions prior to 4.8.0, contains an Improper Neutralization… CWE-88
- CVE-2026-119282 Nx is a monorepo solution for TypeScript and polyglot codebases. CWE-88
- CVE-2026-90868 An OS command injection vulnerability in Progress Software WS_FTP Server versions prior… CWE-88
- CVE-2026-90865 An OS command injection vulnerability in Progress Software WS_FTP Server versions prior… CWE-88