GitPython before 3.2.0 Command Execution via ls_remote ext:: URLs
gitpython-developers GitPython
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| gitpython PyPI |
|
|
Original description
GitPython before 3.2.0 contains a remote code execution vulnerability that allows attackers to run commands because Git.ls_remote forwards URLs without check_unsafe_protocols validation. Attackers can supply ext:: remote-helper URLs to execute commands when git permits the ext transport, while merge_base and IndexFile.move also accept unguarded option injection.
From the CVE record · VulnCheck
References
- github.com/gitpython-developers/GitPython/security/advisories/GHSA-w8jc-g24h-crhw
- vulncheck.com/advisories/gitpython-before-3.2.0-command-execution-via-ls-remote-ext-urls
- github.com/CVEProject/cvelistV5/tree/main/cves/2026/110xxx/CVE-2026-110857.json
- nvd.nist.gov/vuln/detail/CVE-2026-110857
- github.com/gitpython-developers/GitPython/pull/2251
- github.com/gitpython-developers/GitPython/commit/9ad28cc4c7176d22cd6181d69805058a719dd03b
- github.com/gitpython-developers/GitPython
- github.com/gitpython-developers/GitPython/releases/tag/3.2.0