CVE-2026-114496

codebase-memory-mcp: git option injection through base_branch in detect_changes allows writing a file outside the project

State
Published
Severity
5.5 Medium
Published
Nov 20, 2026
Updated
Nov 20, 2026
Reserved
Oct 21, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.15.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:NGitHub_M

Weaknesses

  • CWE-88 Improper Neutralization of Argument Delimiters in a Command

Affected Products

ProductVersions
codebase-memory-mcpDeusData
  • < 0.9.0Affected

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.