PyPI
CVE-2026-110857
GitPython command wrappers omit unsafe protocol and option checks
- Severity
- High 7.5
- Published
- 27 Oct 2026
- Last changed
- 27 Oct 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 3.2.0
- Exploit chance
- 0.4% in the next 30 daysHigher than 36% of CVEs. EPSS by FIRST, 24 Nov 2026
- Weakness
- CWE-1287
- Attack
- Over the network · Only under certain conditions · No login needed · Needs someone to click or open something
- Attacker can
- Read data · Change data · Take it down
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H- Also known as
- GHSA-w8jc-g24h-crhw
- Sources
- OSV.dev and GitHub
Description
GitPython has spent 2022-2026 rolling out two reusable guards method-by-method: Git.check_unsafe_protocols(url) (raises UnsafeProtocolError for :: remote-helper URLs - CVE-2022-24439) and Git.check_unsafe_options(...) (raises UnsafeOptionError for denylisted option spellings - CVE-2023-40267, CVE-2026-42215, CVE-2026-67323). Three wrapper methods that build a git argv from caller-controlled values still have neither:
- Git.ls_remote (git/cmd.py:1128-1143) - checks options (:1139-1141) but forwards the URL positional unchecked; no allow_unsafe_protocols parameter exists. The same URL through clone_from raises UnsafeProtocolError.
- Repo.merge_base (git/repo/base.py:895-936) - forwards **kwargs/*rev to self.git.merge_base with no guard; guarded sibling iter_commits sits 12 lines up. Its exception handler additionally swallows every non-128 GitCommandError into [], masking the injection.
Affected software
| Software | Affected versions |
|---|---|
gitpythonPyPI · osv:PyPI:gitpython |
|
About gitpython
- Weekly downloads (PyPI)
- 34,365,891PyPI Stats, 23 Nov 2026
Vulnerabilities in gitpython
- In our list
- 6
- Published in the last 12 months
- 6
- Critical, last 12 months
- 0
- High, last 12 months
- 4
- Known exploited
- 0
- CVE-2026-110859GitPython: arbitrary file read via attacker-controlled branch name in `Head.checkout()` (incomplete fix of CVE-2026-78679)High 27 Oct 2026
- CVE-2026-110860GitPython: Submodule.move() follows an attacker-committed intermediate symlink outside the worktreeMedium 27 Oct 2026
- CVE-2026-110858GitPython Remote.pull() refspec bypasses the --upload-pack unsafe-option guard, enabling arbitrary command executionHigh 8.1 27 Oct 2026
- CVE-2026-110855GitPython: separate_git_dir leaks env vars via crafted .gitmodules submodule nameMedium 6.5 27 Oct 2026
- CVE-2026-110856GitPython parse_actor_and_date() is vulnerable to quadratic backtracking on malformed identity linesHigh 27 Oct 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-110857
- GitHub Advisory Database https://github.com/advisories/GHSA-w8jc-g24h-crhw