codebase-memory-mcp: Catastrophic backtracking in .gitignore glob matching lets a repository stall the indexer
DeusData codebase-memory-mcp
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| DeusData codebase-memory-mcp |
| No fix yet |
Original 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.
From the CVE record · GitHub_M