Git option injection in codebase-memory-mcp lets attackers write files
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- None · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-88.
Summary
codebase-memory-mcp versions from 0 before 0.9.0 are affected. The detect_changes tool checks the base_branch argument for shell metacharacters but does not reject values that start with a dash, so Git reads an option-shaped value as a command option instead of a revision (CWE-88). A caller can create or overwrite a file of their choice with Git diff output under the server process's permissions. Arbitrary code execution was not demonstrated.
Written with Claude Haiku 5.5 from the sources below · 2026-12-01
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| DeusData | codebase-memory-mcp | before 0.9.0 | 0.9.0 | Patch available | CNA |
| — | codebase-memory-mcp (npm) | before 0.9.0 | 0.9.0 | Patch available | GHSA-2vj2-hwgx-6f23 |
| — | codebase-memory-mcp (PyPI) | before 0.9.0 | 0.9.0 | Patch available | GHSA-2vj2-hwgx-6f23 |
- codebase-memory-mcp VendorDeusData Affected before 0.9.0 Fixed in 0.9.0 Patch available CNA
- codebase-memory-mcp (npm) Vendor— Affected before 0.9.0 Fixed in 0.9.0 Patch available GHSA-2vj2-hwgx-6f23
- codebase-memory-mcp (PyPI) Vendor— Affected before 0.9.0 Fixed in 0.9.0 Patch available GHSA-2vj2-hwgx-6f23
Remediation
Update codebase-memory-mcp to version 0.9.0 or later, which fixes this issue for the DeusData, npm and PyPI packages. The sources list no advisory identifiers for this fix.
Written with Claude Haiku 5.5 from the sources below · 2026-12-01
- Fix · CNA codebase-memory-mcp (DeusData) Fixed in 0.9.0
- Fix · GHSA-2vj2-hwgx-6f23 codebase-memory-mcp (npm) Fixed in 0.9.0 Advisory →
- Fix · GHSA-2vj2-hwgx-6f23 codebase-memory-mcp (PyPI) Fixed in 0.9.0 Advisory →
Timeline
- 2026-11-20 Threatist record created from CVE-2026-114496
- 2026-11-20 CISA SSVC decision points changed
- 2026-12-01 Alias added: GHSA-2vj2-hwgx-6f23
- 2026-12-01 Fix available: PyPI/[email protected], npm/[email protected] · GHSA-2vj2-hwgx-6f23
- 2026-12-01 CVSS score added · GHSA-2vj2-hwgx-6f23
- 2026-12-01 Weakness changed · GHSA-2vj2-hwgx-6f23
- 2026-12-01 6 new references · GHSA-2vj2-hwgx-6f23
References
Other 5
- https://github.com/DeusData/codebase-memory-mcp/security/advisories/GHSA-2vj2-hwgx-6f23
- https://github.com/DeusData/codebase-memory-mcp/pull/941
- https://github.com/DeusData/codebase-memory-mcp/commit/72e6a14adb50a37a245eb6ec79c9eb31eee48951
- https://github.com/DeusData/codebase-memory-mcp/releases/tag/v0.9.0
- https://github.com/DeusData/codebase-memory-mcp
More DeusData vulnerabilities
- TI-2026-96051 Heap buffer overflow in codebase-memory-mcp artifact import CVSS 3.1HIGH 7.8
- TI-2026-96050 Stack out-of-bounds write in codebase-memory-mcp query_graph CVSS 3.1HIGH 7.8
- TI-2026-96054 Catastrophic backtracking in .gitignore matching stalls indexing CVSS 3.1MEDIUM 5.5
- TI-2026-96053 Missing authorization in codebase-memory-mcp UI on Windows CVSS 3.1MEDIUM 5.5
Sources
- CVE-2026-114496 · CVE Program
- CVE-2026-114496 · NVD
- FIRST EPSS
- GHSA-2vj2-hwgx-6f23 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences