Skip to content
GitHub Security Advisories·Indexed by this site · Originally published· Event →· Its place in the scan record →SelectedAttention36

Gortex MCP server versions before 0.55.0 have an arbitrary file write vulnerability that can escape repository restrictions to execute code

Gortex: Arbitrary file write / repo-confinement escape in `write_file` / `edit_file` / `move_inline` MCP tools → code execution

AI summary

Gortex is an MCP server that exposes the write_file, edit_file, and move_inline tools; versions before 0.55.0 have a repository restriction escape vulnerability (GHSA-w42c-h7hr-f67p / CVE-2026-62964). resolveFilePath exempts absolute paths, and the write handler, unlike read_file and get_symbol_source, does not call guardSymlinkWithinRepo; a single write_file call with an absolute path can write any file writable by the daemon user outside the roots of all indexed repositories; writing to ~/.zshrc, .git/hooks/pre-commit, or cron/systemd units can execute code on the next shell or commit. These tools are driven by LLM agents, so a prompt-injected agent can trigger this.

Why it was selected

The root cause is that the write path lacks the boundary validation already present in the read path; teams building their own MCP file-write tools can check whether read and write guards are symmetric.

Read originalgithub.com