{"id":"CVE-2026-114499","aliases":["CVE-2026-114499","GHSA-cjhf-76h2-4hwg"],"related":[],"kind":"vulnerability","state":"published","title":"codebase-memory-mcp: Catastrophic backtracking in .gitignore glob matching lets a repository stall the indexer","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### 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.","format":"markdown","source":"ghsa"}],"published":"2026-11-20T19:56:05.376Z","modified":"2026-12-01T01:00:04.475Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-400","CWE-1333"],"affected":[{"ranges":[{"version":"< 0.10.0","status":"affected"}],"vendor":"DeusData","product":"codebase-memory-mcp","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.10.0"}],"ecosystem":"npm","package":"codebase-memory-mcp","purl":"pkg:npm/codebase-memory-mcp","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.10.0"}],"ecosystem":"PyPI","package":"codebase-memory-mcp","purl":"pkg:pypi/codebase-memory-mcp","source":"ghsa"}],"references":[{"url":"https://github.com/DeusData/codebase-memory-mcp/security/advisories/GHSA-cjhf-76h2-4hwg","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/DeusData/codebase-memory-mcp/pull/1464","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/DeusData/codebase-memory-mcp/commit/886a8856a4e4a2ad3ba602d07e45c3b450117f6b","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/DeusData/codebase-memory-mcp/releases/tag/v0.10.0","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-114499","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/DeusData/codebase-memory-mcp","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-23T19:12:09.060Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-114499","url":"https://www.cve.org/CVERecord?id=CVE-2026-114499","licence":"CVE Terms of Use","modified":"2026-11-23T19:14:05.635Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-cjhf-76h2-4hwg","url":"https://github.com/advisories/GHSA-cjhf-76h2-4hwg","licence":"CC-BY-4.0","modified":"2026-12-01T01:00:04.475Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-114499","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-114499","licence":"Public domain","modified":"2026-11-23T20:17:58.847Z"}],"updatedAt":"2026-12-01T01:27:26.136Z","epss":{"score":0.0029,"percentile":0.23158,"date":"2026-12-01T12:00:22.000Z"}}