Security fix · GHSA-gq48-pqfc-9p58
GitPython: Submodule.move() follows an attacker-committed intermediate symlink outside the worktree
Published Oct 27, 2026 · catalog updated Oct 27, 2026 · GitPython: Submodule.move() follows an
Last checked Oct 27, 2026, 12 days ago.
Open the advisory
Exploitation likelihood is not on this record for GHSA-gq48-pqfc-9p58. A missing EPSS score is not a low risk. Compare GitPython: Submodule.move() follows an with the linked advisory before you change production.
Gaps on this record
- The stored product name is a package slug. The name on this page is taken from the title (GitPython: Submodule.move() follows an).
- No vendor fix or required action is stored. Compare the linked advisory before you change production.
- EPSS is missing. A missing score is not a low risk.
- Severity
- Medium—
- Known exploitation
- Not in CISA/VulnCheck KEV
- EPSS
- Awaiting synchronization with FIRST
- Remediation
- Version ranges on file
- Affected products
- pip GitPython
## Summary GitPython's public 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 . In the strict scenario, the repository commits , while the consuming application independently passes the fixed literal . follows , moves the initialized submodule checkout to , rewrites 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. No attacker-controlled API argument, local symlink planting, race, Git hook, unsafe-option flag, or network access during the proof is required. ## Trust boundary and preconditions The attacker controls: - an untrusted Git repository that the application clones; - a mode- tracked symlink named ; - the initialized submodule's content. The consuming application controls the call and uses a fixed layout rule: The trigger requires the application to initialize the submodule and later call with a path below the attacker-committed symlink. Ordinary clone or submodule update does not automatically make this call. Windows was not tested. The primitive applies where Git materializes the tracked entry as a real symlink; on Windows that generally requires with Developer Mode or sufficient privilege. Configurations that materialize it as an ordinary file do not take this path. ## Product and directly verified revisions - Package: ( ecosystem) - Latest release: 3.1.62, tag commit - Current : - Relevant SHA-256 in both revisions: - Upstream state rechecked: 2026-09-10 KST Only these two revisions were directly tested. ## Severity and weakness The demonstra
Are you affected?
Enter the version you run. The result uses only the ranges stored on this record.
The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.
- pip GitPython< 3.2.0
How to fix GHSA-gq48-pqfc-9p58
Upgrade
GHSA-gq48-pqfc-9p58 lists a fix boundary at 3.2.0. Compare the installed build with that boundary before you change production.
Version check
Affected < 3.2.0
Official advisories
What to do
Three questions, each answered from this record only. Confirm the vendor advisory before you patch.
Should you patch?
Exploitation likelihood is not on this record for GHSA-gq48-pqfc-9p58. A missing EPSS score is not a low risk. Compare GitPython: Submodule.move() follows an with the linked advisory before you change production.
Which versions are affected?
Compare what you have installed with GitPython < 3.2.0. Compare the installed version with the linked vendor advisory before you change production.
What should an analyst verify?
CWE-22: Path Traversal; CWE-59: Link Following. EPSS is not on this record yet. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.
Code
The project this record applies to. Exploit listings stay in References.
Timeline
Detection, updates, and resolution for this record.
Oct 27, 2026 · GitHub Advisory Database
Detected
## Summary GitPython's public 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 repr
Oct 27, 2026 · GitHub Advisory Database
Updated
## Summary GitPython's public 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 repr
Sources
- GitHub Advisory DatabasePackage advisoryGHSA-gq48-pqfc-9p58
GitPython: Submodule.move() follows an attacker-committed intermediate symlink outside the worktree
github.com
References
Freshness
Last verified in this catalog Oct 27, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.
- GitHub Advisory DatabaseOct 27, 2026