本文へ移動
English version →
中 5.5

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

CVE-2026-114499 SecPulse初出

影響パッケージ

パッケージ影響を受ける版 → 修正版
DeusDatacodebase-memory-mcp —
npmcodebase-memory-mcp
0.10.0 未満→ 0.10.0
PyPIcodebase-memory-mcp
0.10.0 未満→ 0.10.0
pipcodebase-memory-mcp
0.10.0 未満→ 0.10.0
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。

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.

出典: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

参照URL

当サイトでは、アクセス解析と広告の効果測定のためにCookieを使います。株式会社Gameのサイト共通の設定です。 詳しく