codebase-memory-mcp: git option injection through base_branch in detect_changes allows writing a file outside the project
CVE-2026-114496 · GHSA-2vj2-hwgx-6f23 · published 2026-12-01
- Severity
- Medium
- CVSS score
- 5.5
- Chance of exploitation (EPSS)
- 0.29%
- Fixed in
- 0.9.0
- Exploitation No known exploitation
- Automatable No
- Technical impact Partial
- CISA SSVC
A caller of detect_changes can create or overwrite a file with Git diff output at a caller-chosen path, subject to the server process's permissions. This is the demonstrated integrity impact; arbitrary code execution was not demonstrated.
Upgrade codebase-memory-mcp to 0.9.0 or later, and codebase-memory-mcp to 0.9.0 or later. If you start it from an MCP config with npx or uvx, pin that version so an old cached copy is not used.
Fixed in stable 0.9.0. Option-like values are rejected before Git is invoked. In the verified v0.12.1 release, both since and its base_branch alias pass through the leading-dash check, and the regression verifies rejection.
Upgrade to a fixed release. codebase-memory-mcp recommends v0.12.1, which was verified to contain this fix.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| codebase-memory-mcp | npm | < 0.9.0 | 0.9.0 |
| codebase-memory-mcp | PyPI | < 0.9.0 | 0.9.0 |
- CriticalUnauthenticated Remote Code Execution in Langflow via Public Flow Build EndpointlangflowExploited
- CriticalRay is vulnerable to Critical RCE via Safari & Firefox Browsers through DNS Rebinding AttackrayExploited
- CriticalLangflow Unauth RCElangflow, langflow-baseExploited
- HighLiteLLM: Authenticated command execution via MCP stdio test endpointslitellmExploited
- Criticalmcp-server-git runs a repo's gpg.program via git_merge and git_branchmcp-server-git
- CriticalMLflow vulnerable to remote code execution on unauthenticated servers via third-party scorer deserialization importing caller-placed artifacmlflow
- Highcodebase-memory-mcp: Heap buffer overflow on artifact import via int-truncated decompression capacitycodebase-memory-mcp
- Highcodebase-memory-mcp: Stack out-of-bounds write in query_graph via a RETURN or WITH clause with more than 32 itemscodebase-memory-mcp
- Mediumcodebase-memory-mcp: Catastrophic backtracking in .gitignore glob matching lets a repository stall the indexercodebase-memory-mcp
- Mediumcodebase-memory-mcp: UI process-kill route skipped the ownership check on Windows, allowing termination of arbitrary processescodebase-memory-mcp
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.