AI Stack Alert High CVE-2026-77604 For CISO, SOC / IR, AppSec, AI Eng AI-assisted
CVE-2026-77604: Code Graph RAG MCP read_file path containment bypass (fixed in 0.0.345)
Code Graph RAG versions before 0.0.345 contain a path traversal flaw in MCPToolsRegistry.read_file in codebase_rag/mcp/tools.py. The paginated branch, selected when offset or limit is set, skips validate_project_path, so absolute or relative file paths can read files outside the project root. The issue is fixed in version 0.0.345.
Why it matters
An unauthenticated caller of a network-exposed HTTP MCP server can read any UTF-8 file the server process can access, such as credentials, private keys, and environment data. Local stdio callers can reach the same code path.
Do this
- Upgrade Code Graph RAG to version 0.0.345 or later.
- If upgrade is delayed, do not expose the HTTP MCP server to untrusted networks, and restrict access with network controls or authentication.
- Review server logs for read_file calls that include offset or limit parameters with absolute paths or '..' segments.
- Check the server process for readable secrets (cloud credentials, .env files, SSH keys) and rotate any that may have been exposed.
- Run the server under a least-privilege account with access limited to the project directory.
Exploit Clock
Exploitation unlikely (for now)
- EPSS 0.38%
Signals
- NoCISA KEV
- 7.5CVSS
- 0.38%EPSS
- NoPublic PoC
- 36/100Priority
- 80%Confidence
Evidence
“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”
“This issue is fixed in version 0.0.345.”
Sources
Affected / related
Code Graph RAG, Code Graph RAG MCP server, path traversal
Published 2026-11-05 20:18 UTC · updated 2026-11-08 02:28 UTC · AI-assisted summary, checked against quoted sources · How we score