Go
CVE-2026-62964
Gortex: Arbitrary file write / repo-confinement escape in `write_file` / `edit_file` / `move_inline` MCP tools → code execution
- Severity
- High 7.8
- Published
- 19 Nov 2026
- Last changed
- 19 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 0.55.0
- Exploit chance
- 0.3% in the next 30 daysHigher than 20% of CVEs. EPSS by FIRST, 24 Nov 2026
- Weakness
- Path traversal (CWE-22)CWE-73
- Attack
- Needs local access · No login needed · Needs someone to click or open something
- Attacker can
- Read data · Change data · Take it down
- CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H- Also known as
- GHSA-w42c-h7hr-f67p
- Sources
- OSV.dev and GitHub
Description
Gortex is an MCP server exposing write_file, edit_file, and move_inline tools. resolveFilePath exempts absolute paths from confinement, and the write handlers — unlike read_file / get_symbol_source — never call guardSymlinkWithinRepo. A single MCP write_file call with an absolute path writes any file the daemon user can, outside every indexed repo root (AtomicWriteFile's MkdirAll auto-creates missing parents). Writing ~/.zshrc, ~/.bashrc, .git/hooks/pre-commit, or a cron/systemd unit yields code execution on the next shell/commit. This directly violates the project's own SECURITY.md invariant "File-path resolution is confined to indexed repository roots"
write_file / edit_file are MCP tools driven by an LLM agent. A prompt-injected or adversarial agent (the standard MCP threat model) writes any file the daemon user can — startup/hook/cron files → arbitrary code execution on the host running the daemon.
Affected software
| Software | Affected versions |
|---|---|
github.com/zzet/gortexGo · osv:Go:github.com/zzet/gortex |
|
About github.com/zzet/gortex
This is the only vulnerability in github.com/zzet/gortex in our list.
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-62964
- GitHub Advisory Database https://github.com/advisories/GHSA-w42c-h7hr-f67p