## GitPython: Submodule.move() follows an attacker-committed intermediate symlink outside the worktree

- 種別: advisory
- 重大度: medium
- 関連技術: python
- 公開日時: 2026-10-27T15:26:57.000Z
- 情報源: GitHub Advisory Database (https://github.com/advisories/GHSA-gq48-pqfc-9p58)
- パーマリンク: https://vulnpulse.app/items/ghsa-ghsa-gq48-pqfc-9p58

影響: pip:GitPython < 3.2.0 → 3.2.0
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…