CVE-2026-114496
MEDIUM 5.5CVSS 3.1codebase-memory-mcp: git option injection through base_branch in detect_changes allows writing a file outside the project
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.
- Published
- 20 Nov 2026
- Last modified
- 1 Dec 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Received
- Weakness
- CWE-88
- Also known as
- GHSA-2vj2-hwgx-6f23
- Sources
- NVDJSONCVE ListJSONOSV GHSA-2vj2-hwgx-6f23JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
| CVE List | GitHub_M | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
| CVE List | CISA-ADP | SSVC | Exploitation: none; Automatable: no; Technical Impact: partial |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| CVE List | DeusData | codebase-memory-mcp | = < 0.9.0 | |
| OSV | npm | codebase-memory-mcp | < 0.9.0 | 0.9.0 |
| OSV | PyPI | codebase-memory-mcp | < 0.9.0 | 0.9.0 |
References
- https://github.com/DeusData/codebase-memory-mcp/commit/72e6a14adb50a37a245eb6ec79c9eb31eee48951 · x_refsource_MISC, WEB
- https://github.com/DeusData/codebase-memory-mcp/pull/941 · x_refsource_MISC, WEB
- https://github.com/DeusData/codebase-memory-mcp/releases/tag/v0.9.0 · x_refsource_MISC, WEB
- https://github.com/DeusData/codebase-memory-mcp/security/advisories/GHSA-2vj2-hwgx-6f23 · x_refsource_CONFIRM, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-114496 · ADVISORY
- https://github.com/DeusData/codebase-memory-mcp · PACKAGE
History
- 1 Dec 2026 01:28 UTC · OSV: first stored (published 1 Dec 2026)
- 25 Nov 2026 20:33 UTC · CVE List: first stored (published 20 Nov 2026)
- 25 Nov 2026 20:11 UTC · NVD: first stored (published 20 Nov 2026)