PyPI
CVE-2026-110860
GitPython: Submodule.move() follows an attacker-committed intermediate symlink outside the worktree
- Severity
- Medium
- Published
- 27 Oct 2026
- Last changed
- 27 Oct 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 3.2.0
- Exploit chance
- 0.2% in the next 30 daysHigher than 8% of CVEs. EPSS by FIRST, 24 Nov 2026
- Also known as
- GHSA-gq48-pqfc-9p58
- Sources
- OSV.dev and GitHub
Description
GitPython's public Submodule.move() API verifies that its destination is lexically inside the parent repository, but it does not reject symbolic links in the destination's intermediate components before filesystem operations. On systems that check out Git symlinks, an untrusted repository can therefore redirect a fixed, application-selected move destination outside the parent worktree.
The reporter reproduced this on the latest release, GitPython 3.1.62, and current main. In the strict scenario, the repository commits vendor -> ../outside, while the consuming application independently passes the fixed literal vendor/module. Submodule.move() follows vendor, moves the initialized submodule checkout to outside/module, rewrites .gitmodules and the index to the symlinked path, and leaves the index unable to produce a tree.
The same result occurs when the committed symlink contains an absolute path to an external directory.
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-110858GitPython Remote.pull() refspec bypasses the --upload-pack unsafe-option guard, enabling arbitrary command executionHigh 8.1 27 Oct 2026
- CVE-2026-110857GitPython command wrappers omit unsafe protocol and option checksHigh 7.5 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-110860
- GitHub Advisory Database https://github.com/advisories/GHSA-gq48-pqfc-9p58