{"id":"GHSA-cjhf-76h2-4hwg","summary":"codebase-memory-mcp: Catastrophic backtracking in .gitignore glob matching lets a repository stall the indexer","details":"### Summary\n\nThe 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.\n\n### Impact\n\nIndexing a malicious repository hung the indexing job and, before the daemon isolated workers, the server. Availability only.\n\n### Patches\n\nFixed 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.\n\n### Workarounds\n\nUpgrade to a fixed release. codebase-memory-mcp recommends v0.12.1, which has been verified to contain this fix.\n\n### Credit\n\nReported privately by Aaron (@aaronjmars). codebase-memory-mcp thanks them for the report and careful follow-up.","aliases":["CVE-2026-114499"],"modified":"2026-12-01T01:00:04.475998016Z","published":"2026-12-01T00:49:36Z","database_specific":{"nvd_published_at":"2026-11-20T20:17:12Z","cwe_ids":["CWE-1333","CWE-400"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2026-12-01T00:49:36Z"},"references":[{"type":"WEB","url":"https://github.com/DeusData/codebase-memory-mcp/security/advisories/GHSA-cjhf-76h2-4hwg"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-114499"},{"type":"WEB","url":"https://github.com/DeusData/codebase-memory-mcp/pull/1464"},{"type":"WEB","url":"https://github.com/DeusData/codebase-memory-mcp/commit/886a8856a4e4a2ad3ba602d07e45c3b450117f6b"},{"type":"PACKAGE","url":"https://github.com/DeusData/codebase-memory-mcp"},{"type":"WEB","url":"https://github.com/DeusData/codebase-memory-mcp/releases/tag/v0.10.0"}],"affected":[{"package":{"name":"codebase-memory-mcp","ecosystem":"npm","purl":"pkg:npm/codebase-memory-mcp"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.10.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/12/GHSA-cjhf-76h2-4hwg/GHSA-cjhf-76h2-4hwg.json"}},{"package":{"name":"codebase-memory-mcp","ecosystem":"PyPI","purl":"pkg:pypi/codebase-memory-mcp"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.10.0"}]}],"versions":["0.8.1","0.9.0","0.9.1rc1"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/12/GHSA-cjhf-76h2-4hwg/GHSA-cjhf-76h2-4hwg.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"}]}