SecurityContext

CVE-2026-76217: GitPython - Path Traversal

  • Cve: CVE-2026-76217
  • Name: GitPython - Path Traversal
  • Description: GitPython versions before 3.1.58 fail to validate options passed to git rm and git checkout commands in IndexFile.remove() and Head.checkout(). Attackers can supply --pathspec-from-file and --pathspec-file-nul parameters to read arbitrary files accessible to the process, with full file contents returned in GitCommandError.stderr.
  • Impact: Attackers can read arbitrary files accessible to the process, exposing sensitive file contents.
  • Remediation: Upgrade to version 3.1.58 or later.
  • Vulnerability type: path_traversal
  • Vulnerability impact: file_system_read, information_disclosure
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
  • Epss score: 0.00412
  • Epss percentile: 0.36221
  • Assignee: [email protected]
  • Published at: 2026-08-19T14:17:47Z
  • Age in days: 97
  • Modified at: 2026-09-03T15:01:08Z
  • 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-76217
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-73External Control of File Name or Path

Public exploits

UrlSourceAdded date
https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-hh9p-6wh2-4mfcnvd2026-08-19

References

UrlSourceTags
https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-hh9p-6wh2-4mfcnvdExploit, Vendor Advisory
https://www.vulncheck.com/advisories/gitpython-before-arbitrary-file-read-via-pathspec-from-filenvdThird 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