Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft repo with malicious .gitignore pattern
-
ExploitVictim initiates indexing of repository
-
ExecutionWildcard matcher enters catastrophic backtracking
-
ImpactIndexer job and server stall (denial of service)
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the victim to index an attacker-controlled repository that contains a .gitignore rule combining repeated wildcard groups (* and **) with a long path, triggering exponential backtracking in the indexer's own gitignore matcher. The vector is local (AV:L) and requires user interaction (UI:R): a developer or AI agent must actively point codebase-memory-mcp at the malicious repository - it is not reachable against a default idle service without someone initiating indexing. Impact is limited to availability (A:H, C:N/I:N); before the daemon isolated workers the hang could extend from the indexing job to the whole server, but in worker-isolated builds the stall is contained to the indexing job. The vendor notes the bounded matcher reduces but does not claim to eliminate every expensive input. |
| Impact | This is a genuine but modest-priority availability issue, not a high-severity emergency. The CVSS 3.1 base score is 5.5 (Medium) with vector AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - a local attack vector requiring user interaction, affecting availability only with no confidentiality or integrity impact. The vuln.today decision label is 'this_month' (routine patching cadence), consistent with the medium score. No EPSS probability was supplied and the CVE is not on CISA KEV, so there is no confirmed active exploitation. No verified working exploit code is referenced; the only links are the GHSA advisory, the fix PR #1464, the fix commit, and the v0.10.0 release - all remediation artifacts, not an exploit. The CWE is CWE-400 (Uncontrolled Resource Consumption), and the advisory adds CWE-1333 (inefficient regular-expression/backtracking complexity), which accurately describes the catastrophic-backtracking mechanism. The signals are internally consistent: a real, vendor-confirmed DoS that is bounded in impact (availability, no code execution or data exposure) and gated by the need for a victim to index an attacker-crafted repository. One nuance to flag: because the flaw is triggered through content the victim chooses to index, 'unauthenticated' (PR:N) does not mean effortless remote exploitation - the UI:R requirement is the real limiting factor. |
| Exploit ScenarioDerived | An attacker publishes or shares a repository containing a crafted .gitignore rule that combines repeated wildcard groups (* and **) with a long matching path. When a developer or AI agent points codebase-memory-mcp at that repository to index it, the backtracking matcher's work grows exponentially and the indexing job hangs; before the daemon isolated workers, this could stall the entire MCP server. No public exploit code is identified at time of analysis, though the advisory describes the triggering pattern class in enough detail to reproduce. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 20, 2026
Denial of service in codebase-memory-mcp before version 0.10.0: the indexer's own .gitignore matcher implements * and ** wildcards through unbounded recursive backtracking, so a repository whose ignore file pairs repeated wildcard groups with a long path can make match work grow exponentially and stall repository discovery. The stall begins in the indexing job and, in builds without worker isolation, can extend to the whole server; confidentiality and integrity are unaffected. Exploitation requires a developer or AI agent to actively point the tool at an attacker-controlled repository (local vector, user interaction required), so this is an availability-only issue rather than a remotely reachable one; no public exploit code was identified at time of analysis and the vendor states the bounded matcher reduces but does not eliminate every expensive input.
RemediationAI
Vendor-released patch: 0.10.0 (npm, pip and the other distribution of codebase-memory-mcp). The maintainers recommend v0.12.1, which they verified contains the fix and which uses a shared 20,000-step matching budget - upgrading to that release gives both the fix and the verified state. Upgrading is the vendor's stated workaround: the advisory explicitly says to upgrade to a fixed release and offers no alternative matcher-level mitigation. As a complementary reduction of exposure rather than a fix, setting CBM_ALLOWED_ROOT confines index_repository (and, per the accompanying documentation change, the graph UI's POST /api/index route) to paths inside a named directory, refusing a repo_path that resolves outside it; the trade-off is that anything under the allowed root - including files below the user's home directory and any non-denylisted credential directory - remains indexable, and leaving the variable unset imposes no containment restriction at all. Note also that the always-on refused-root list is a denylist covering filesystem/drive/UNC roots, top-level system trees, the home directory itself, and named credential directories such as .ssh, .aws and .gnupg; it raises the cost of a mistake but does not close the class. Full details are in the advisory at https://github.com/DeusData/codebase-memory-mcp/security/advisories/GHSA-cjhf-76h2-4hwg.
Affected VersionsENISA
Affected Packages
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
codebase-memory-mcp is a local code-intelligence server that builds a persistent graph of a codebase and exposes it to developers and AI agents through MCP tools. Before discovery can occur, the indexer must honour .gitignore semantics, and it implemented this with its own matcher rather than delegating to git. That matcher expressed the * and ** wildcards as recursive backtracking with no work bound - the classic catastrophic-backtracking shape tracked as CWE-1333, a specific instance of the resource-exhaustion class CWE-400. Work on a match can therefore grow exponentially in the size of the pattern/path combination, and a single crafted ignore rule is enough to consume the indexing job indefinitely. The GHSA notes that before the daemon isolated workers the hang propagated from the job to the server process; in worker-isolated deployments the effect is contained to the indexing job. The upstream fix in 0.10.0 bounds matching work; in the verified v0.12.1 release the matcher uses a shared 20,000-step budget, with the legacy matcher returning a non-match on exhaustion and the checked matcher reporting an explicit limit/exhaustion result rather than a partial matching decision. The trigger requires the crafted pattern and long path to be present in the repository being indexed; the advisory does not describe any other trigger path.
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
AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Triggered by content in a repository the victim chooses to index, so AV:L and UI:R; no auth needed (PR:N), availability-only DoS (A:H) with no confidentiality or integrity impact.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
codebase-memory-mcp provides local code intelligence for developers and AI agents through a persistent graph and MCP tools. Prior to 0.10.0, the indexer's .gitignore matcher implemented * and ** through recursive backtracking without a work bound. A repository containing a pattern with repeated wildcard groups and a long path could make matching work grow exponentially, allowing a single ignore rule to stall discovery indefinitely and, before worker isolation, stall the server. The impact is limited to availability, and the bounded matcher does not claim that every expensive input is eliminated. This issue is fixed in version 0.10.0.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
More in Codebase Memory Mcp
View allHeap memory corruption in codebase-memory-mcp before 0.9.0 lets a crafted repository artifact corrupt memory during auto
Stack memory corruption in codebase-memory-mcp before 0.9.0 allows any caller of the query_graph MCP tool to reliably cr
Git option injection in the codebase-memory-mcp MCP server before 0.9.0 lets a local, authenticated caller of the detect
Arbitrary process termination on Windows hosts running the optional graph UI of codebase-memory-mcp: the POST /api/proce
EUVD-2026-131806
NVD
CVE.org
EPSS
GitHub
Exploit-DB