Skip to main content
← All vulnerabilities
CVE-2026-110859GHSA-23MF-XHV8-69C2

GitPython before 3.2.0 Arbitrary File Read via Head.checkout() Branch Name

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

Summary

GitPython before 3.2.0 contains an argument injection vulnerability in Head.checkout() that allows remote attackers to read arbitrary files by supplying a branch name parsed as a git option. Attackers can host a repository whose default branch is named --pathspec-from-file=<path>, causing cloning applications that check out the active branch to leak file contents through GitCommandError messages.

Timeline

  1. CVE published
  2. CISA SSVC assessment

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

  3. Record last updated

Affected versions

  • gitpython-developers GitPython

    fixed in 3.2.0

  • gitpythonPyPI

    fixed in 3.2.0

References 2

GitHub · gitpython-developers/GitPython

vulncheck.com