CVE-2026-76219
GitPython versions before 3.1.58 contain an arbitrary file …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/gitpython-developers/GitPython/security/advisories/GHSA-4gmw-gg2m-w46p
- www.vulncheck.com/advisories/gitpython-before-arbitrary-file-overwrite-via-read-tree
- github.com/gitpython-developers/GitPython/pull/2204
- github.com/gitpython-developers/GitPython/commit/9b5dcaf85da5946dbf69dcd53f9edba08f760b32
- github.com/gitpython-developers/GitPython/releases/tag/3.1.58
- nvd.nist.gov/vuln/detail/CVE-2026-76219
- github.com/advisories/GHSA-4gmw-gg2m-w46p
- nvd.nist.gov/vuln/detail/CVE-2026-76219
- cve.org/CVERecord?id=CVE-2026-76219
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.