codebase-memory-mcp detect_changes git option injection allows file write (CVE-2026-114496)
Summary
Per the vendor advisory, before 0.9.0 the base_branch argument of the detect_changes tool in codebase-memory-mcp was not checked for a leading dash, so a git option could be passed through. A caller could create or overwrite a file with Git diff output at a chosen path, within the server process's permissions. The advisory says arbitrary code execution was not demonstrated. It lists 0.9.0 as the fix and recommends v0.12.1.
Severity
Timeline
The vendor security advisory GHSA-2vj2-hwgx-6f23 was published by DeusData.
The GitHub advisory record for CVE-2026-114496 shows a publication time of 2026-12-01. (per the vendor advisory)
How it happened
Per the vendor advisory, base_branch was checked for shell metacharacters but not for a leading dash. The value was placed in the revision position of a git diff call, so git honoured a value shaped like an option, and an output option made git write its diff to a caller-chosen file. The GitHub advisory record gives CVSS 5.5 with the label medium; the vendor security advisory labels the same score Moderate.
How to check your app
- Before 0.9.0: Check whether the installed codebase-memory-mcp package, npm or pip, is older than 0.9.0.
- All affected versions: Note that the advisory describes the impact as file creation or overwrite limited by the server process's permissions.
Sources
Corrections and updates
Cite this entry
- Title
- codebase-memory-mcp detect_changes git option injection allows file write (CVE-2026-114496)
- Added
- Dec 1, 2026
- URL
- https://vibeincidents.com/incidents/codebase-memory-mcp-cve-2026-114496/
- Suggested citation
VibeIncidents. "codebase-memory-mcp detect_changes git option injection allows file write (CVE-2026-114496)." Dec 1, 2026. https://vibeincidents.com/incidents/codebase-memory-mcp-cve-2026-114496/