CVE-2026-49986 Cortex has Untrusted Project Bootstrap Code Execution via `CLAUDE_PROJECT_DIR`
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
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 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.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| pypi neuro-cortex-memory(PyPI) | < 3.18.0; <= 3.17.0; = 2.0.0; = 2.1.0 +34 more | 3.18.0 | Fixed |
| cdeust Cortex | = < 3.17.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi neuro-cortex-memory(PyPI) | < 3.18.0 | 3.18.0 |
| pypi neuro-cortex-memory(PyPI) | = 2.0.0 | No fix listed |
| pypi neuro-cortex-memory(PyPI) | = 2.1.0 | No fix listed |
| pypi neuro-cortex-memory(PyPI) | = 2.4.1 | No fix listed |
| pypi neuro-cortex-memory(PyPI) | = 2.5.0 | No fix listed |
| pypi neuro-cortex-memory(PyPI) | = 2.5.1 | No fix listed |
| pypi neuro-cortex-memory(PyPI) | = 2.5.2 | No fix listed |
| pypi neuro-cortex-memory(PyPI) | = 2.6.0 | No fix listed |
| pypi neuro-cortex-memory(PyPI) | = 3.0.0 | No fix listed |
| pypi neuro-cortex-memory(PyPI) | = 3.1.0 | No fix listed |
| pypi neuro-cortex-memory(PyPI) | = 3.10.0 | No fix listed |
| pypi neuro-cortex-memory(PyPI) | = 3.10.1 | No fix listed |
| pypi neuro-cortex-memory(PyPI) | = 3.11.0 | No fix listed |
| pypi neuro-cortex-memory(PyPI) | = 3.12.0 | No fix listed |
| pypi neuro-cortex-memory(PyPI) | = 3.12.1 | No fix listed |
| pypi neuro-cortex-memory(PyPI) | = 3.12.2 | No fix listed |
| pypi neuro-cortex-memory(PyPI) | = 3.13.0 | No fix listed |
| pypi neuro-cortex-memory(PyPI) | = 3.13.1 | No fix listed |
| pypi neuro-cortex-memory(PyPI) | = 3.13.2 | No fix listed |
| pypi neuro-cortex-memory(PyPI) | = 3.14.0 | No fix listed |
| pypi neuro-cortex-memory(PyPI) | = 3.14.1 | No fix listed |
| pypi neuro-cortex-memory(PyPI) | = 3.14.2 | No fix listed |
| pypi neuro-cortex-memory(PyPI) | = 3.14.6 | No fix listed |
| pypi neuro-cortex-memory(PyPI) | = 3.14.7 | No fix listed |
| pypi neuro-cortex-memory(PyPI) | = 3.2.0 | No fix listed |
Show 14 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi neuro-cortex-memory(PyPI) | = 3.4.0 | No fix listed |
| pypi neuro-cortex-memory(PyPI) | = 3.4.2 | No fix listed |
| pypi neuro-cortex-memory(PyPI) | = 3.4.3 | No fix listed |
| pypi neuro-cortex-memory(PyPI) | = 3.5.0 | No fix listed |
| pypi neuro-cortex-memory(PyPI) | = 3.6.0 | No fix listed |
| pypi neuro-cortex-memory(PyPI) | = 3.7.0 | No fix listed |
| pypi neuro-cortex-memory(PyPI) | = 3.7.1 | No fix listed |
| pypi neuro-cortex-memory(PyPI) | = 3.7.2 | No fix listed |
| pypi neuro-cortex-memory(PyPI) | = 3.7.3 | No fix listed |
| pypi neuro-cortex-memory(PyPI) | = 3.8.0 | No fix listed |
| pypi neuro-cortex-memory(PyPI) | = 3.9.0 | No fix listed |
| pypi neuro-cortex-memory(PyPI) | = 3.9.1 | No fix listed |
| cdeust Cortex | = < 3.17.1 | No fix listed |
| pypi neuro-cortex-memory(PyPI) | <= 3.17.0 | No fix listed |
References
- https://github.com/cdeust/Cortex/security/advisories/GHSA-gvpp-v77h-5w8g exploit vendor-advisory
- github.com product
- https://github.com/cdeust/Cortex/releases/tag/v3.17.1
- pypi.org product
- github.com vendor-advisory
- nvd.nist.gov vendor-advisory
- https://github.com/pypa/advisory-database/tree/main/vulns/neuro-cortex-memory/PYSEC-2026-2676.yaml
- ENISA EUVD EUVD-2026-58715 third-party-advisory