Code Graph RAG: MCP paginated read_file path traversal / arbitrary file read
CVE-2026-77604 · GHSA-vvr2-h2jp-838m · published 2026-11-09
- Severity
- High
- CVSS score
- 7.5
- Chance of exploitation (EPSS)
- 0.60%
- Fixed in
- 0.0.345
- Exploitation Public proof of concept
- Automatable Yes
- Technical impact Partial
- CISA SSVC
This is a path traversal / arbitrary file read vulnerability. Any network-accessible instance of the MCP HTTP server is impacted; no authentication is required in the default configuration. An unauthenticated remote attacker can read any file on the server filesystem that is readable by the process running cgr mcp-server. Exploitable targets include: /etc/passwd, /etc/shadow — credential disclosure. Application secrets, API keys, .env files, or private keys stored anywhere on the host. Source code or configuration outside the intended project repository. Cloud instance metadata endpoints reachable via the local file path (e.g., /proc/self/environ for environment variable leakage). …
Upgrade code-graph-rag to 0.0.345 or later.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| code-graph-rag | PyPI | < 0.0.345 | 0.0.345 |
- CriticalMCP Path Traversal Allows Full-Filesystem Read and JWT Secret Exfiltration Leading to Account Takeoverlangflow, langflow-base
- CriticalVibe-Trading FastAPI endpoints permit unauthenticated access, file upload, and an RCE chainvibe-trading-ai
- Critical@zereight/mcp-gitlab: Unauthenticated arbitrary file read via `upload_markdown` enables PAT exfiltration and full account takeover@zereight/mcp-gitlab
- CriticalFlowise RCE via SQL Database Chain Nodeflowise, flowise-components
- CriticalLangroid: SQLChatAgent dangerous-function blocklist can be bypassed with quoted or schema-qualified pg_read_file callslangroid
- Criticalfast-mcp-telegram: Bearer token path traversal bypasses reserved Telegram session protectionfast-mcp-telegram
- HighCode Graph RAG structural tools follow out-of-root symlinkscode-graph-rag
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.