Skip to main content

codebase-memory-mcp CVE-2026-114496

| EUVDEUVD-2026-131799 MEDIUM
Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') (CWE-88)
2026-11-20 GitHub_M
5.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Invoke detect_changes MCP tool
  2. Delivery
    Supply option-shaped base_branch (--output=path)
  3. Exploit
    Git honours it as an option not a revision
  4. Execution
    Git writes diff to caller-chosen file
  5. Impact
    Create or overwrite target file as server process

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Argument sanitization
Exploitation Conditions

Exploitation requires a caller able to invoke the detect_changes tool and supply the base_branch argument with an option-shaped value (e.g. --output=<path>) that git interprets as a command option in the revision position of its git diff invocation. It is limited by the server process's filesystem permissions (writes occur only where that process can write), by needing caller access to the MCP tool (PR:L), and by being a local vector against the running server; arbitrary code execution was not demonstrated, so the outcome is confined to creating/overwriting a file with Git diff output. Versions before 0.9.0 are affected; 0.9.0 (and verified v0.12.1) reject option-like values before git is invoked.

Impact

This is a medium-severity, local-access integrity flaw rather than a high-priority emergency. The supplied CVSS vector (AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N = 5.5) indicates an attacker who can already invoke the detect_changes MCP tool (PR:L) against the local server, with no user interaction and low complexity, achieving a high integrity impact but no confidentiality or availability loss. No EPSS score and no KEV listing were provided, and no public exploit was identified at time of analysis - only vendor fix references (GHSA advisory, PR #941, fix commit, v0.9.0 release) are present. The vuln.today decision label is 'this_month', consistent with a real but non-urgent issue. A key conflict: the input Tags assert 'RCE', but the GHSA advisory explicitly states arbitrary code execution was NOT demonstrated - the real impact is creating or overwriting a caller-chosen file with Git diff output under the server process's permissions. Treat this as a scoped file-write/overwrite primitive, not code execution; the RCE label overstates it.

Exploit ScenarioDerived

A caller able to invoke the detect_changes tool passes a base_branch value shaped like a Git option, such as '--output=/path/to/target', which pre-0.9.0 passed the shell-metacharacter check but not a leading-dash check. Git honours the option and writes its diff output to the attacker-chosen path, letting the caller create or overwrite a file (e.g. a config or script the server can write) with permissions of the server process. No public exploit code was identified; arbitrary code execution was not demonstrated, so impact is limited to attacker-influenced file write/overwrite.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 20, 2026

Git option injection in the codebase-memory-mcp MCP server before 0.9.0 lets a local, authenticated caller of the detect_changes tool create or overwrite a file of their choosing with Git diff output, subject to the permissions of the server process. The base_branch argument was screened for shell metacharacters but not for a leading dash, so an option-shaped value such as --output=<path> was consumed by git as a command option once it was placed in the revision position of the git diff invocation. The demonstrated impact is integrity only (no confidentiality or availability effect) and stays within the writable scope of the server process; arbitrary code execution was not demonstrated, and no public exploit has been identified at time of analysis.

RemediationAI

Upgrade to codebase-memory-mcp 0.9.0 or later, the release in which option-like base_branch values are rejected before Git is invoked; the vendor specifically recommends v0.12.1, which was re-verified to contain the fix with the leading-dash check applied to both since and its base_branch alias. The advisory documents no alternative workaround beyond upgrading to a fixed release, so deployments that cannot move off a pre-0.9.0 build should restrict which callers can reach the detect_changes MCP tool and run the server under an account whose filesystem write scope is as narrow as possible, accepting that this only limits where an injected --output=<path> can write rather than removing the flaw. Fix references: advisory https://github.com/DeusData/codebase-memory-mcp/security/advisories/GHSA-2vj2-hwgx-6f23, patch https://github.com/DeusData/codebase-memory-mcp/pull/941 and commit https://github.com/DeusData/codebase-memory-mcp/commit/72e6a14adb50a37a245eb6ec79c9eb31eee48951, release https://github.com/DeusData/codebase-memory-mcp/releases/tag/v0.9.0.

Affected VersionsENISA

codebase-memory-mcp < 0.9.0

Affected Packages

euvd codebase_memory_mcp fix: 0.9.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is a classic argument-injection bug (CWE-88) in an MCP server that exposes local code intelligence to developers and AI agents. codebase-memory-mcp's detect_changes tool builds a git diff command and inserts the caller-supplied base_branch value into the revision positional argument. The prior validation filtered shell metacharacters, which addresses shell-level injection but does nothing about git's own option parser: a value beginning with a dash is parsed by git as an option rather than a revision, and git's --output=<file> option redirects diff output to an arbitrary path. Because the write happens with the server process's privileges, reachability is bounded by that process's filesystem permissions. The packaging CPE cpe:2.3:a:deusdata:codebase-memory-mcp:*:*:*:*:*:*:*:* applies to all releases before 0.9.0, which the advisory lists across npm, pip and other distribution channels. The fix rejects option-like values before Git is invoked; the advisory notes that in the verified v0.12.1 release both since and its base_branch alias pass through the leading-dash check and the regression test verifies rejection. The linked pull request and commit bundle this leading-dash rejection together with other hardening changes, and the upstream advisory is the authoritative source for the vulnerability mechanics.

Know when Codebase Memory Mcp gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
vuln.today AI 5.5 MEDIUM

A caller must invoke the local detect_changes tool (PR:L, AV:L); no metacharacters or race are needed (AC:L); impact is attacker-chosen file write (I:H) with no confidentiality or availability loss.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None

Lifecycle Timeline

1
Patch available
Nov 20, 2026 - 21:04 EUVD

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.3%
Top 78% exploitable
Prevalence
Low
niche developer/AI-agent MCP tool, limited production footprint
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy