ZeroDay Brief
CVE-2026-76219

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 stri…

CVSS
8.1High
Chance of exploitation (EPSS)
—
Published
Aug 19, 2026
In the news
Not yet
Vendor advisory More from this vendor

What to do

A serious security flaw in Gitpython that can be attacked over the network by someone with an account. No attacks are reported yet; it can go in your normal patch cycle.

Action: Apply the vendor's update or follow its advisory.

Fixed in: 3.1.58

Affected versions
Gitpython
Before 3.1.58

Description

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.

CWE-88

Affected products

Get alerts for these →

Timeline 6

Latest change: Tenable Cloud Security plugin 483102: Alpine: multiple py3-gitpython packages: security update to 3.1.61-r0 (Dec 3, 2026)

News, advisories, exploit code, scanner detection and exploitation, newest first.

References 2

  • github.com ExploitVendor Advisory /gitpython-developers/GitPython/security/advisories/GHSA-4gmw-gg2m-w46p
  • www.vulncheck.com /advisories/gitpython-before-arbitrary-file-overwrite-via-read-tree

You are leaving ZeroDay Brief

This link goes to exploit code on a third-party site. We find these links automatically and do not test, review or vouch for them. They may contain malware or fake exploits.

We are not responsible for anything that happens if you open the page or run its code. Never run exploit code on systems you care about.

↑ ↓ moveEnter openEsc closeTry “CVE-2026”, “fortinet” or “ivanti”