5.5medium
codebase-memory-mcp: Catastrophic backtracking in .gitignore glob matching lets a repository stall the indexer
- Severity
- 5.5medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.29% (higher than 23% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-cjhf-76h2-4hwg
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| DeusData codebase-memory-mcp | < 0.10.0 | CVE List |
| codebase-memory-mcp (npm) | before 0.10.0 | GitHub Advisory Database |
| codebase-memory-mcp (PyPI) | before 0.10.0 | GitHub Advisory Database |
All scores
| GitHub_M | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| GitHub | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
Summary
The indexer's own .gitignore matcher implemented * and ** by backtracking without a bound. A pattern crafted with many wildcards, matched against a long path, made the matcher's work grow exponentially, so a repository could stall discovery indefinitely with a single ignore rule.
Impact
Indexing a malicious repository hung the indexing job and, before the daemon isolated workers, the server. Availability only.
Patches
Fixed in stable 0.10.0 by bounding matching work. In the verified v0.12.1 release, matching uses a shared 20,000-step budget. On exhaustion, the legacy matcher returns a non-match; the checked matcher reports an explicit limit/exhaustion result rather than a partial matching decision. The deterministic exhaustion regression passed. This bounds the matching work; it does not claim that every expensive input is eliminated.
Workarounds
Upgrade to a fixed release. codebase-memory-mcp recommends v0.12.1, which has been verified to contain this fix.
Credit
Reported privately by Aaron (@aaronjmars). codebase-memory-mcp thanks them for the report and careful follow-up.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-114499 changed 2026-11-23 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-cjhf-76h2-4hwg changed 2026-12-01 | CC-BY-4.0 |
| NVD | CVE-2026-114499 changed 2026-11-23 | Public domain |