SecurityContext

CVE-2026-76219: GitPython - Arbitrary File Overwrite

  • Cve: CVE-2026-76219
  • Name: GitPython - Arbitrary File Overwrite
  • 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.
  • Impact: Attackers can overwrite arbitrary files, leading to destruction of existing file content and potential system compromise.
  • Remediation: Update to version 3.1.58 or later.
  • Vulnerability impact: file_system_write
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.1
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
  • Epss score: 0.00543
  • Epss percentile: 0.46506
  • Assignee: [email protected]
  • Published at: 2026-08-19T14:17:48Z
  • Age in days: 97
  • Modified at: 2026-09-03T15:03:51Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-76219
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: vulnerability type, requirements, hackerone

Cwe

IdName
CWE-88Improper Neutralization of Argument Delimiters in a Command

Public exploits

UrlSourceAdded date
https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-4gmw-gg2m-w46pnvd2026-08-19

References

UrlSourceTags
https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-4gmw-gg2m-w46pnvdExploit, Vendor Advisory
https://www.vulncheck.com/advisories/gitpython-before-arbitrary-file-overwrite-via-read-treenvdThird Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
gitpython_project:gitpython< 3.1.58nonvd/v1/products/gitpython_project/gitpython

Projects

RepositoryLink kindsIndexedUrl
gitpython-developers/gitpythoncommit, package, pull, releases, security_advisoryyes/v1/repositories/gitpython-developers/gitpython

Index

  • Repositories: 839
  • Repositories high signal: 443
  • Packages: 1

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2026-08-19
  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts