{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-49986","id":"CVE-2026-49986","title":"Cortex has Untrusted Project Bootstrap Code Execution via `CLAUDE_PROJECT_DIR`","description":"The Cortex MCP server (`neuro-cortex-memory`), a cross-platform persistent memory MCP, prior to version 3.17.1 treats the `CLAUDE_PROJECT_DIR` environment variable — automatically set by Claude Code to the currently open project directory — as a trusted Cortex developer checkout. When the `open_visualization` tool is invoked, `_find_dev_source()` resolves the user's active project directory as a c","descriptionLong":"The Cortex MCP server (`neuro-cortex-memory`), a cross-platform persistent memory MCP, prior to version 3.17.1 treats the `CLAUDE_PROJECT_DIR` environment variable — automatically set by Claude Code to the currently open project directory — as a trusted Cortex developer checkout. When the `open_visualization` tool is invoked, `_find_dev_source()` resolves the user's active project directory as a candidate Cortex source root. The only validation performed by `_is_cortex_root()` is a check for the presence of an `mcp_server/` subdirectory and a `ui/unified-viz.html` file. An attacker who places these two marker files in a malicious repository can cause Cortex to execute an arbitrary `mcp_server/server/visualize_bootstrap.py` from that directory via `subprocess.run([sys.executable, ...])`, achieving code execution with the privileges of the victim's local user process. Version 3.17.1 fixes the issue.","published":"2026-08-14T16:21:39.125Z","updated":"2026-10-28T02:30:43.393162062Z","reserved":"2026-06-02T18:30:51.282Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"4.0","score":7.1,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P","rating":"high","source":"GitHub_M"},"metrics":[{"version":"4.0","score":7.1,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P","rating":"high","source":"GitHub_M"},{"version":"4.0","score":7.1,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"high","source":"github.com"},{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P","rating":"high","source":"GitHub"}],"rating":"high","products":["cdeust Cortex"],"affectedProducts":[{"vendor":"cdeust","product":"Cortex","defaultStatus":null,"versions":[{"version":"< 3.17.1","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"neuro-cortex-memory","purl":"pkg:pypi/neuro-cortex-memory","ranges":["<3.18.0"],"fixed":["3.18.0"],"advisory":"GHSA-gvpp-v77h-5w8g"}],"cwes":["CWE-829"],"aliases":["GHSA-gvpp-v77h-5w8g","PYSEC-2026-2676"],"references":[{"url":"https://github.com/cdeust/Cortex/security/advisories/GHSA-gvpp-v77h-5w8g","tags":["x_refsource_CONFIRM","exploit","advisory","web"]},{"url":"https://github.com/cdeust/Cortex/releases/tag/v3.17.1","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/neuro-cortex-memory/PYSEC-2026-2676.yaml","tags":["x_refsource_MISC","advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/49xxx/CVE-2026-49986.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-49986","tags":["advisory"]},{"url":"https://github.com/cdeust/Cortex","tags":["package"]},{"url":"https://pypi.org/project/neuro-cortex-memory","tags":["package"]},{"url":"https://github.com/advisories/GHSA-gvpp-v77h-5w8g","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total"},"epss":0.0016,"epssPercentile":0.05232,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-49986","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-49986","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-49986","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-gvpp-v77h-5w8g","ok":true,"note":"GHSA-gvpp-v77h-5w8g"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-49986","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}