CVE Catalog

CVE-2026-76219

HighCVSS 8.1
Published: Translated: NVD NIST

Summary

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.

Risk Assessment

An attacker can overwrite arbitrary files, potentially leading to data corruption or privilege escalation.

Recommendation

Upgrade GitPython to version 3.1.58 or later. Restrict access to methods that manipulate the index.

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS