CVE-2026-114145: Kimi cli · GitPython validates a submodule's ".git" path only after cloning into it (RCE)
Affects kimi-cliSource GCVE Database
Not known to be exploited · CVSS 7.5 High.
Data as of 26 Oct 2026, 19:41 UTC
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 21 Oct 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: 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 26 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewkimi-clipkg:brew/kimi-cliOther 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
The vulnerability arises because validation occurs after the clone operation, so applications should avoid passing untrusted or attacker-controlled paths to create_submodule. If using version 3.2.0 or later, be aware that the function raises a ValueError after cloning, but the malicious hook remains. Until an official fix is released, users should manually verify and clean the .git/hooks directory after submodule creation and avoid automated submodule creation from untrusted sources. Monitor vendor advisories for updates and patches addressing this issue.
Description
Kimi CLI's GitPython integration has a vulnerability where the submodule creation function clones a submodule into the repository's .git/hooks directory before validating the path. This allows an attacker to plant an executable hook file that runs on subsequent git operations, leading to arbitrary code execution. Versions from 3.1.x through 3.2.0+ are affected, with 3.1.x silently planting the hook and 3.2.0+ raising a ValueError only after the hook is already written to disk.
References
- github.com/gitpython-developers/GitPython/security/advisories/GHSA-83vg-56qc-22m7 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-114145 (opens in a new tab)
- github.com/gitpython-developers/GitPython/pull/2264 (opens in a new tab)
- github.com/gitpython-developers/GitPython/commit/97eadb888d2f99567e3113f4e455be4ca128f697 (opens in a new tab)
- github.com/gitpython-developers/GitPython (opens in a new tab)
- github.com/gitpython-developers/GitPython/releases/tag/3.2.1 (opens in a new tab)