A vulnerability in codebase-memory-mcp before version 0.9.0 allows an attacker to inject git options via the base_branch argument in the detect_changes tool. This flaw permits writing or overwriting files at arbitrary paths with git diff output, constrained by the server process's permissions. The issue was fixed in version 0.9.0 by rejecting option-like values before invoking git.