Vulnerability GHSA-cjhf-76h2-4hwg

Medium Risk
MEDIUM RISK
CVSS Score: 5.5
Score Range: 4.0–6.9
Medium severity vulnerabilities (CVSS 4.0–6.9). Important issues that meaningfully reduce security confidence.
7 hours ago
December 01, 2026 at 12:49 AM UTC
codebase-memory-mcp: Catastrophic backtracking in .gitignore glob matching lets a repository stall the indexer
<0.10.0
<0.10.0

Summary

codebase-memory-mcp: Catastrophic backtracking in .gitignore glob matching lets a repository stall the indexer

Details

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.

Timeline

Published
7 hours ago
December 01, 2026 at 12:49 AM UTC
Fixed (0.10.0)
3 months ago
August 10, 2026 at 05:43 PM UTC
Last Modified
7 hours ago
December 01, 2026 at 01:00 AM UTC