CVE-2026-114496
codebase-memory-mcp: git option injection through base_branch in detect_changes allows writing a file outside the project
- CVSS
- 5.5
- EPSS
- 0.19% (p5)
- Published
- 2026-11-20
- Age
- 11d old
- Modified
- 2026-12-01
- Product
- DeusData codebase-memory-mcp
- Aliases
- GHSA-2vj2-hwgx-6f23
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
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.
Fixed in
0.9.0
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| PyPI | codebase-memory-mcp | < 0.9.0 | 0.9.0 |
| PyPI | codebase-memory-mcp | >=0, <0.9.0 | 0.9.0 |
| npm | codebase-memory-mcp | < 0.9.0 | 0.9.0 |
| npm | codebase-memory-mcp | >=0, <0.9.0 | 0.9.0 |
Sources
- NVD · first seen 11d ago · NVD terms of use
- OSV · first seen 11d ago · CC-BY 4.0
- GitHub Advisory Database · first seen 10h ago · CC-BY 4.0
- CVE List · first seen 11d ago · CVE Terms of Use
References
- https://github.com/DeusData/codebase-memory-mcp/security/advisories/GHSA-2vj2-hwgx-6f23 x_refsource_CONFIRM
- https://github.com/DeusData/codebase-memory-mcp/pull/941 x_refsource_MISC
- https://github.com/DeusData/codebase-memory-mcp/commit/72e6a14adb50a37a245eb6ec79c9eb31eee48951 x_refsource_MISC
- https://github.com/DeusData/codebase-memory-mcp/releases/tag/v0.9.0 x_refsource_MISC
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/114xxx/CVE-2026-114496.json advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-114496 advisory
- https://github.com/advisories/GHSA-2vj2-hwgx-6f23 other
- https://github.com/DeusData/codebase-memory-mcp package