CVE-2026-77604
Description
Code Graph RAG is an AI-powered knowledge graph and retrieval system for querying, understanding, and editing multi-language codebases. Prior to 0.0.345, the MCPToolsRegistry.read_file implementation in codebase_rag/mcp/tools.py joins attacker-controlled file_path input to project_root without resolving and verifying containment when offset or limit selects the paginated branch. An absolute path causes pathlib to discard the configured root, while relative traversal can also resolve outside it. The protected non-paginated branch uses validate_project_path, but the paginated branch bypasses that validation before opening the path. An unauthenticated caller of a network-exposed HTTP MCP server can therefore read arbitrary UTF-8-readable files available to the server process, including credentials, environment data, private keys, source, and configuration; local callers through the stdio transport can reach the same vulnerable code path. This issue is fixed in version 0.0.345.
Weakness
- CWE-22: Improper Limitation of a Pathname to a Restricted Directory
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | yes |
| Technical impact | partial |
| Scored | 2026-11-09 |
Timeline
- 2026-11-05Published by the CNA20:10 UTC
- 2026-11-09GitHub advisory published (GHSA-vvr2-h2jp-838m)4 days after publication
- 2026-11-09CISA SSVC decision recorded4 days after publication
Exploit and advisory records
GitHub advisory GHSA-vvr2-h2jp-838m, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| PyPI code-graph-rag | before 0.0.345 | 0.0.345 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| vitali87 code-graph-rag |
References
- https://github.com/openemr/openemr/security/advisories/GHSA-5h9g-m7q2-pv45
- https://github.com/vitali87/code-graph-rag/commit/6541e920a27961fa8f3ff49ef38c0e0bd09cd626
- https://github.com/vitali87/code-graph-rag/releases/tag/v0.0.345
- https://github.com/vitali87/code-graph-rag/security/advisories/GHSA-vvr2-h2jp-838m
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-77604'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-77604'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-77604'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-77604'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).