Description (CNA)
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.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| gitpython-developers / GitPython | affected 0 before 3.2.0; unaffected 3.2.0 |
CWE
CWE-88
References
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-23mf-xhv8-69c2
- https://www.vulncheck.com/advisories/gitpython-before-3.2.0-arbitrary-file-read-via-head-checkout-branch-name
ADP enrichment
No English description supplied.