CVE-2026-114499
JSON

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 packageVersionsReported by
DeusData codebase-memory-mcp< 0.10.0CVE List
codebase-memory-mcp (npm)before 0.10.0GitHub Advisory Database
codebase-memory-mcp (PyPI)before 0.10.0GitHub Advisory Database

All scores

GitHub_M5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
GitHub5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Classification

CWE-400CWE-1333

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

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

SourceRecordLicence
CVE ListCVE-2026-114499 changed 2026-11-23CVE Terms of Use
GitHub Advisory DatabaseGHSA-cjhf-76h2-4hwg changed 2026-12-01CC-BY-4.0
NVDCVE-2026-114499 changed 2026-11-23Public domain