Cloudanix VulnDB

CVE-2026-76219

High · 8.1

CVSS

8.1

EPSS

0.5%

Published

Aug 19, 2026

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

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.

Exploit Available
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

  1. Locate code paths or dependencies calling vulnerable IndexFile methods with untrusted input
  2. Craft a treeish argument that injects --index-output pointing to a desired writable file path
  3. Trigger execution of from_tree, reset, or merge_tree with the malicious argument
  4. 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