CVE-2026-67325
High · 8.8CVSS
8.8
EPSS
2.2%
Published
Aug 1, 2026
CISA due date
—
Cloudanix analysis
A bug in a widely used Python tool for working with Git code repositories can let attackers run their own programs on the computer if they can feed it certain inputs.
- 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
Incomplete blocklist in GitPython allows bypassing unsafe git option guards via long-option prefix abbreviation (e.g., upload_p for upload_pack), resulting in execution of arbitrary commands during git operations.
Why it matters to the business
Attackers can achieve remote code execution in systems relying on affected Red Hat packages for automation or development workflows, potentially leading to data compromise or operational disruption; low urgency due to stable low EPSS and no KEV listing, though widespread use in Red Hat ecosystems increases exposure risk.
How an attack unfolds
An attacker identifies a vulnerable application using GitPython to perform git operations, supplies crafted input containing abbreviated dangerous options such as upload_p, bypasses the incomplete blocklist, and causes git to resolve and execute arbitrary commands.
How to fix it
Upgrade to fixed versions listed in RHSA-2026:44416: python3.12-gitpython 3.1.59-1.el8ap or 3.1.59-1.el9ap, ansible-automation-platform hub-rhel9:1787220598, llvm21-main 21.1.8-8.hum1, llvm-main 22.1.8-4.1.hum1, or swift-lang-main 6.3.3-0.1.1.hum1.
How to confirm the fix worked
Verify installed package versions match or exceed the fixed releases from RHSA-2026:44416; test git operations with abbreviated options to confirm blocklist enforcement.
Typical attack path
- Identify application using vulnerable GitPython version
- Supply input containing abbreviated git long options (e.g., upload_p)
- Trigger the git operation via the library
- Bypass blocklist and execute arbitrary commands via git
How to detect it
Review application and system logs for git subprocess invocations containing abbreviated option prefixes; inspect Python process trees and command-line arguments for unexpected git activity or child process spawns.
- upload_p
- receive_p
- git .*upload_p
- git .*receive_p
What your security team should do
- Apply RHSA-2026:44416 updates to all affected Red Hat packages
- Audit code and dependencies for direct or indirect use of GitPython git operations
- Implement runtime monitoring for unexpected git subprocess executions
The record
GitPython before 3.1.51 contains an incomplete command injection blocklist that fails to account for git's long-option prefix abbreviation feature. Attackers can bypass the unsafe options guard by using abbreviated option names like upload_p instead of upload_pack, which git resolves to dangerous options and executes arbitrary commands.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-116651 Tanium addressed an unauthorized code execution vulnerability in Threat Response. CWE-78
- CVE-2026-116650 Tanium addressed an unauthorized code execution vulnerability in Threat Response. CWE-78
- CVE-2026-118865 An authenticated OS command injection vulnerability exists in the Offline Download… CWE-78
- CVE-2026-121621 A command injection vulnerability was found in Argo CD Image Updater, where a proxy URL… CWE-78
- CVE-2026-54161 Network UPS Tools is a collection of programs which provide a common interface for… CWE-78
- CVE-2026-121548 Jarun nnn through 5.3 contains an OS command injection vulnerability in plugins/togglex… CWE-78
- CVE-2026-121429 AzuraCast through 0.23.8 contains a command injection vulnerability that allows station… CWE-78
- CVE-2026-119742 Nagios XI before 2026R2 contains an OS command injection vulnerability in the MIB upload… CWE-78