{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-114496","id":"CVE-2026-114496","title":"codebase-memory-mcp: git option injection through base_branch in detect_changes allows writing a file outside the project","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, includ","descriptionLong":"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":"2026-11-20T19:52:27.866Z","updated":"2026-11-20T20:17:11.240Z","reserved":"2026-10-21T16:15:06.491Z","status":"Received","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","rating":"medium","source":"github.com"}],"rating":"medium","products":["DeusData codebase-memory-mcp"],"affectedProducts":[{"vendor":"DeusData","product":"codebase-memory-mcp","defaultStatus":null,"versions":[{"version":"< 0.9.0","status":"affected"}],"platforms":[]}],"packages":[],"cwes":["CWE-88"],"aliases":[],"references":[{"url":"https://github.com/DeusData/codebase-memory-mcp/security/advisories/GHSA-2vj2-hwgx-6f23","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/DeusData/codebase-memory-mcp/pull/941","tags":["x_refsource_MISC"]},{"url":"https://github.com/DeusData/codebase-memory-mcp/commit/72e6a14adb50a37a245eb6ec79c9eb31eee48951","tags":["x_refsource_MISC"]},{"url":"https://github.com/DeusData/codebase-memory-mcp/releases/tag/v0.9.0","tags":["x_refsource_MISC"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":null,"epssPercentile":null,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-114496","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-114496","ok":true,"note":"Received"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-114496","ok":false,"note":"no open-source package data"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-114496","ok":false,"note":"no score yet"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}