# 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:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 23% of CVEs (2026-12-01)
- Published: 2026-11-20T19:52:27.866Z
- Modified: 2026-12-01T01:00:04.490Z
- Also known as: GHSA-2vj2-hwgx-6f23
- Weaknesses: CWE-88
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- DeusData codebase-memory-mcp: < 0.9.0
- codebase-memory-mcp (npm): before 0.9.0
- codebase-memory-mcp (PyPI): before 0.9.0

## Every score

- GitHub_M: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/DeusData/codebase-memory-mcp/security/advisories/GHSA-2vj2-hwgx-6f23> (web)
- <https://github.com/DeusData/codebase-memory-mcp/pull/941> (web)
- <https://github.com/DeusData/codebase-memory-mcp/commit/72e6a14adb50a37a245eb6ec79c9eb31eee48951> (web)
- <https://github.com/DeusData/codebase-memory-mcp/releases/tag/v0.9.0> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-114496> (advisory)
- <https://github.com/DeusData/codebase-memory-mcp> (package)

## Sources

- CVE List: [CVE-2026-114496](https://www.cve.org/CVERecord?id=CVE-2026-114496), CVE Terms of Use, modified 2026-11-20
- GitHub Advisory Database: [GHSA-2vj2-hwgx-6f23](https://github.com/advisories/GHSA-2vj2-hwgx-6f23), CC-BY-4.0, modified 2026-12-01
- NVD: [CVE-2026-114496](https://nvd.nist.gov/vuln/detail/CVE-2026-114496), Public domain, modified 2026-11-20

---

Page: https://cve.day/CVE-2026-114496 · Whole record: https://cve.day/CVE-2026-114496.json · Rebuilt by cve.day 2026-12-01T01:27:25.968Z
