CVE-2026-110855: GitPython · separate_git_dir leaks env vars via crafted .gitmodules submodule name
Affects ternSource GCVE Database
Not known to be exploited · CVSS 7.1 High.
Data as of 30 Oct 2026, 06:59 UTC
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 21% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 14 Oct 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewternpkg:brew/ternOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
As of the provided data, no explicit patch or fix is confirmed. Users should check the vendor advisory for current remediation guidance. Until a fix is applied, avoid cloning and updating submodules from untrusted or malicious repositories, especially in environments where sensitive environment variables are set. Additionally, avoid enabling DEBUG-level logging for GitPython subprocess calls in CI or verbose environments to reduce exposure of leaked secrets in logs.
Description
GitPython's _clone() method improperly expands environment variables in the separate_git_dir parameter derived from attacker-controlled .gitmodules submodule names. This leads to leakage of environment variable values as directory names on disk and in debug logs when cloning and updating submodules from a malicious repository. The flaw arises because Git.polish_url() is called without disabling variable expansion on untrusted input. This vulnerability affects GitPython versions starting from 2.12.0 and has a CVSS score of 6.5.
References
- github.com/gitpython-developers/GitPython/security/advisories/GHSA-fx3j-rwgx-fr94 (opens in a new tab)
- github.com/gitpython-developers/GitPython/pull/2255 (opens in a new tab)
- github.com/gitpython-developers/GitPython/commit/9349ff58ee00c9fb14d515c8e693f33b2144b238 (opens in a new tab)
- github.com/gitpython-developers/GitPython (opens in a new tab)
- github.com/gitpython-developers/GitPython/releases/tag/3.2.0 (opens in a new tab)