MEDIUM · CVSS 3.1 5.5 EPSS 0.2% · 4th percentile CWE-1333CWE-400

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

Published 2026-12-01 · Updated 2026-12-01 · Also known as GHSA-cjhf-76h2-4hwg

Summary

A catastrophic backtracking vulnerability in the .gitignore glob matcher of codebase-memory-mcp allows a malicious repository to cause denial of service by stalling the indexer. Engineering and security teams managing deployments of codebase-memory-mcp should upgrade immediately.

Who is affected

Local deployments indexing untrusted repositories are affected, where a crafted .gitignore pattern with many wildcards matched against a long path causes exponential growth in matching work. This hung the indexing job and potentially the entire server before daemon isolation was implemented, impacting availability only.

Exploitability

The vulnerability requires local access and user interaction to index a malicious repository, resulting in high availability impact with no confidentiality or integrity compromise. The current EPSS score is 0.002, and it is not listed in the CISA Known Exploited Vulnerabilities database.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-12-01. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
PyPI codebase-memory-mcp >= 0, < 0.10.0 0.10.0 python -m pip install 'codebase-memory-mcp>=0.10.0'
npm codebase-memory-mcp >= 0, < 0.10.0 0.10.0 npm install [email protected]

CVSS 3.1 vector

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Attack vectorLocal
Attack complexityLow
Privileges requiredNone
User interactionRequired
ScopeUnchanged
ConfidentialityNone
IntegrityNone
AvailabilityHigh

FAQ

What causes the vulnerability in codebase-memory-mcp?

The vulnerability is caused by unbounded backtracking in the indexer's .gitignore implementation when handling '*' and '**' wildcards.

What is the security impact of this flaw?

It leads to a denial of service by hanging indexing jobs and potentially the server, affecting availability without compromising confidentiality or integrity.

How can I fix the issue?

Upgrade the codebase-memory-mcp package on PyPI or npm to version 0.10.0 or later, with v0.12.1 explicitly recommended.

Original advisory description
### 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

Source records: GHSA-cjhf-76h2-4hwg (OSV.dev) · EPSS by FIRST, 2026-12-01.