GitPython before 3.2.0 contains an argument injection...
High severity
Unreviewed
Published
Oct 15, 2026
to the GitHub Advisory Database
•
Updated Oct 15, 2026
Description
Published by the National Vulnerability Database
Oct 14, 2026
Published to the GitHub Advisory Database
Oct 15, 2026
Last updated
Oct 15, 2026
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=, causing cloning applications that check out the active branch to leak file contents through GitCommandError messages.
References