CVE-2026-76219
High · 8.1CVSS
8.1
EPSS
0.5%
Published
Aug 19, 2026
CISA due date
—
Cloudanix analysis
A bug in a popular Python tool for working with Git code repositories lets attackers replace important files on the computer with garbage data, which can break programs or destroy information.
- Exploitation
- Remote Authenticated
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Data Tampering
- Component
- Library
- Class
- Command Injection
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Arbitrary file overwrite via option injection into git read-tree calls within IndexFile.from_tree, IndexFile.reset, and IndexFile.merge_tree, allowing --index-output to redirect a valid git-index blob to any writable attacker-controlled path and destroy existing content.
Why it matters to the business
Attackers can corrupt or delete critical application and configuration files on systems using the vulnerable library, leading to data loss, service disruption, and potential downtime; the rising EPSS trend and public exploit availability increase urgency for organizations with Red Hat dependencies.
How an attack unfolds
An attacker supplies a malicious treeish string containing the --index-output flag to one of the affected IndexFile methods; the library appends this directly to the git read-tree command without validation or sanitization, causing Git to write an index blob that overwrites the target file.
How to fix it
Upgrade python3.12-gitpython on Red Hat Enterprise Linux 9 to version 3.1.59-1.el9pc or later as provided in RHSA-2026:63385; avoid passing untrusted values to the affected methods until patched.
How to confirm the fix worked
Verify installed package version meets or exceeds the fixed release; audit application code for calls to the three vulnerable IndexFile methods and confirm input sanitization or removal of the vulnerable library version.
Typical attack path
- Locate code paths or dependencies calling vulnerable IndexFile methods with untrusted input
- Craft a treeish argument that injects --index-output pointing to a desired writable file path
- Trigger execution of from_tree, reset, or merge_tree with the malicious argument
- Confirm overwrite of the target file contents with a valid git index blob
How to detect it
Review application and system logs for invocations of git read-tree that contain the --index-output flag; inspect file modification timestamps and contents for unexpected overwrites coinciding with GitPython method calls.
- --index-output
- git read-tree
- IndexFile.from_tree
- IndexFile.reset
- IndexFile.merge_tree
What your security team should do
- Apply the Red Hat advisory update to python3.12-gitpython immediately given the 66-day publication window and rising exploit probability
- Scan all Python environments for the vulnerable package and prioritize upgrades in internet-facing or high-value systems
- Implement runtime monitoring for unexpected file modifications in directories writable by the application process
The record
GitPython versions before 3.1.58 contain an arbitrary file overwrite vulnerability in IndexFile.from_tree, IndexFile.reset, and IndexFile.merge_tree methods that append caller-influenced treeish strings to git read-tree without option validation or argument separation. Attackers can inject the --index-output option to overwrite arbitrary files with a valid git-index blob, destroying existing file content at attacker-controlled writable paths.
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