Skip to main content
← All vulnerabilities
CVE-2026-76217GHSA-HH9P-6WH2-4MFCPYSEC-2026-3841

GitPython before 3.1.58 Arbitrary File Read via pathspec-from-file

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.1.58
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • gitpython-developers GitPython

    fixed in 3.1.58

  • gitpythonPyPI

    fixed in 3.1.58

References 2

GitHub · gitpython-developers/GitPython

vulncheck.com