# CVE-2026-114496: codebase-memory-mcp: git option injection through base\_branch in detect\_changes allows writing a file outside the project

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.19% (percentile 5, 2026-11-28)
- **CWE:** CWE-88
- **Published:** 2026-11-20T19:52:27.866Z
- **Modified:** 2026-11-20T21:17:28.000Z

## Who should check

- Anyone running DeusData codebase-memory-mcp \< 0.9.0

## Description

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.

## Affected and fixed versions

- DeusData codebase-memory-mcp: \< 0.9.0 (cvelist)

## Mitigation

- Upgrade codebase-memory-mcp to 0.9.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-114496. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-114496.md
Affected: DeusData codebase-memory-mcp < 0.9.0
Fixed in: DeusData codebase-memory-mcp 0.9.0

Steps:
1. Search this machine and project for DeusData codebase-memory-mcp: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-114496 being exploited?

There is no confirmed exploitation: CVE-2026-114496 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.19% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-114496?

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-114496?

DeusData codebase-memory-mcp \< 0.9.0.

### Is there a fix for CVE-2026-114496?

Yes. Fixed in DeusData codebase-memory-mcp 0.9.0. Upgrade codebase-memory-mcp to 0.9.0 or later.

### How do I check if I'm affected by CVE-2026-114496?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/DeusData/codebase-memory-mcp/security/advisories/GHSA-2vj2-hwgx-6f23>
- patch: <https://github.com/DeusData/codebase-memory-mcp/pull/941>
- patch: <https://github.com/DeusData/codebase-memory-mcp/commit/72e6a14adb50a37a245eb6ec79c9eb31eee48951>
- other: <https://github.com/DeusData/codebase-memory-mcp/releases/tag/v0.9.0>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-114496>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-114496> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-114496>
