codebase-memory-mcp: git option injection through base_branch
Affects codebase-memory-mcpSource GCVE Database
Not known to be exploited · CVSS 5.5 Medium : upgrade to 0.9.0 when convenient.
Data as of 1 Dec 2026, 01:47 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 5.5 |
|---|
- Patch
- Available – fixed in 0.9.0
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:NExploitation evidence
Disclosed: evidence found.
CVE published 20 Nov 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 30 Nov 2026.
What to do
Upgrade codebase-memory-mcp to 0.9.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmcodebase-memory-mcp | Affected
| Fixed in
|
| PyPIcodebase-memory-mcp | 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
Upgrade to codebase-memory-mcp version 0.9.0 or later. The vulnerability is fixed in these versions by rejecting option-like base_branch values before invoking git. The recommended version is 0.12.1, which has been verified to contain the fix. No other workarounds are necessary.
Description
A vulnerability in codebase-memory-mcp before version 0.9.0 allows an attacker to inject git options via the base_branch argument in the detect_changes tool. This flaw permits writing or overwriting files at arbitrary paths with git diff output, constrained by the server process's permissions. The issue was fixed in version 0.9.0 by rejecting option-like values before invoking git.
References
- github.com/DeusData/codebase-memory-mcp/security/advisories/GHSA-2vj2-hwgx-6f23 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-114496 (opens in a new tab)
- github.com/DeusData/codebase-memory-mcp/pull/941 (opens in a new tab)
- github.com/DeusData/codebase-memory-mcp/commit/72e6a14adb50a37a245eb6ec79c9eb31eee48951 (opens in a new tab)
- github.com/DeusData/codebase-memory-mcp (opens in a new tab)
- github.com/DeusData/codebase-memory-mcp/releases/tag/v0.9.0 (opens in a new tab)