Advisory record · GHSA-4gmw-gg2m-w46p

GitPython: Unguarded git read-tree option forwarding in IndexFile.from_tree/reset/merge_tree enables arbitrary file overwrite

CVSS 7.2 HighEPSS 0.0054 · 46th percentile

Published by the GitHub Advisory Database at 7 Aug 2026, 15:33 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
gitpythonPyPI<3.1.583.1.58
Identifiers
GHSA-4gmw-gg2m-w46p · CVE-2026-76219 · PYSEC-2026-3838
Weakness (CWE)
CWE-88
Published
7 Aug 2026
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

GitPython versions before 3.1.58 are vulnerable. In IndexFile.from_tree, IndexFile.reset and IndexFile.merge_tree, caller-supplied treeish strings are passed to git read-tree without an unsafe-option check, so an attacker who controls that input can inject the --index-output option. An attacker who can supply that input can overwrite an arbitrary writable file with a git index file, destroying its existing content. Upgrade to GitPython 3.1.58 or later.

Written 1 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
7.2 High 4.0 CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N CNA (VulnCheck)
  • CISA KEV Not listed.
  • EPSS 0.0054, the 46th percentile, on 12 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:10 UTC First seen by agentprime
  2. 31 Oct 2026, 14:10 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.