8.1High

CVE-2026-76219GitPython before 3.1.58 Arbitrary File Overwrite via read-tree

gitpython-developers GitPython Published: (3 months ago)

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.

Weakness (CWE): CWE-88

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
gitpython project gitpython < 3.1.58
gitpython-developers GitPython < 3.1.58, fixed 3.1.58

References and patches

CPE matches (NVD) (1)

  • cpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:python:*:* < 3.1.58