{"id":"CVE-2026-114496","aliases":["GHSA-2vj2-hwgx-6f23"],"title":"codebase-memory-mcp: git option injection through base_branch in detect_changes allows writing a file outside the project","originalDescription":"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.","severity":{"cvss":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","label":"medium"},"exploitation":{"kev":null,"epss":{"score":0.00194,"percentile":0.05197},"exploitDb":null},"affected":[{"ecosystem":"PyPI","name":"codebase-memory-mcp","range":"< 0.9.0","fixed":"0.9.0"},{"ecosystem":"PyPI","name":"codebase-memory-mcp","range":">=0, <0.9.0","fixed":"0.9.0"},{"ecosystem":"npm","name":"codebase-memory-mcp","range":"< 0.9.0","fixed":"0.9.0"},{"ecosystem":"npm","name":"codebase-memory-mcp","range":">=0, <0.9.0","fixed":"0.9.0"}],"references":[{"url":"https://github.com/DeusData/codebase-memory-mcp/security/advisories/GHSA-2vj2-hwgx-6f23","type":"x_refsource_CONFIRM"},{"url":"https://github.com/DeusData/codebase-memory-mcp/pull/941","type":"x_refsource_MISC"},{"url":"https://github.com/DeusData/codebase-memory-mcp/commit/72e6a14adb50a37a245eb6ec79c9eb31eee48951","type":"x_refsource_MISC"},{"url":"https://github.com/DeusData/codebase-memory-mcp/releases/tag/v0.9.0","type":"x_refsource_MISC"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/114xxx/CVE-2026-114496.json","type":"advisory"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-114496","type":"advisory"},{"url":"https://github.com/advisories/GHSA-2vj2-hwgx-6f23","type":"other"},{"url":"https://github.com/DeusData/codebase-memory-mcp","type":"package"}],"sources":[{"name":"nvd","at":"2026-11-20T21:22:14.421Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-114496","license":"NVD terms of use","firstSeenAt":"2026-11-20T20:49:02.362Z"},{"name":"osv","at":"2026-12-01T01:25:30.079Z","url":"https://osv.dev/vulnerability/GHSA-2vj2-hwgx-6f23","license":"CC-BY 4.0","firstSeenAt":"2026-11-20T21:22:43.913Z"},{"name":"ghsa","at":"2026-12-01T11:19:24.775Z","url":"https://github.com/advisories/GHSA-2vj2-hwgx-6f23","license":"CC-BY 4.0","firstSeenAt":"2026-12-01T00:52:03.188Z"},{"name":"cvelistV5","at":"2026-11-23T21:31:18.003Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-114496","license":"CVE Terms of Use","firstSeenAt":"2026-11-20T20:13:34.293Z"}],"firstSeenAt":"2026-11-20T20:13:34.293Z","publishedAt":"2026-11-20T19:52:27.866Z","modifiedAt":"2026-12-01T01:00:04.490Z"}