codebase-memory-mcp: git option injection through base_branch in detect_changes allows writing a file outside the project
CVE-2026-114496GHSA-2vj2-hwgx-6f23Published 20 Nov 2026, 19:52 UTC
Real-world risk
3.0/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
5.5
scored by the vendor (CNA), CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from GitHub_M)
codebase-memory-mcp provides local code intelligence for developers and AI agents through a persistent graph and MCP tools. Prior to 0.9.0, the detect_changes tool validated the base_branch argument for shell metacharacters but omitted the leading-dash check before placing the value in the revision position of a git diff command. Git therefore interpreted an option-shaped base_branch value, including --output, as a command option instead of a revision, allowing a caller to create or overwrite a caller-chosen file with Git diff output under the server process's permissions. Arbitrary code execution was not demonstrated. This issue is fixed in version 0.9.0.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| codebase-memory-mcpNiche | < 0.9.0 | 0.9.0 |
| codebase-memory-mcpNiche | < 0.9.0 | 0.9.0 |
| codebase-memory-mcpNiche | < 0.9.0 | 0.9.0 |
What to do
Update to a fixed version: 0.9.0.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Major data tamperingWrites or changes important data without gaining execution | From the CVSS vector | 0.70 |
| Attacker position | LocalMust already run code or have a shell on the machine | From the CVSS vector | 0.50 |
| Privileges needed | LowA real low-privileged account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.3% chance of exploitation in 30 days (percentile 24), as of 2026-12-03.
The arithmetic
- Prerequisites multiplied together0.500
- Threat T1: Nothing known0.850
- 10 × impact 0.7 × prerequisites 0.5 × threat 0.852.975
- Rounded to one decimal between 0.1 and 103.0
Exploitation and evidence timeline
- 20 Nov 2026 Published
- 2 Dec 2026 Risk 3.0 (cvss fallback)
Weakness
CWE-88
References
- https://github.com/DeusData/codebase-memory-mcp/security/advisories/GHSA-2vj2-hwgx-6f23vendor-advisory
- https://github.com/DeusData/codebase-memory-mcp/pull/941misc
- https://github.com/DeusData/codebase-memory-mcp/commit/72e6a14adb50a37a245eb6ec79c9eb31eee48951misc
- https://github.com/DeusData/codebase-memory-mcp/releases/tag/v0.9.0misc
- https://nvd.nist.gov/vuln/detail/CVE-2026-114496
- https://github.com/advisories/GHSA-2vj2-hwgx-6f23
- CVE-2026-114496 on CVE.org