CVE-2026-62964
Gortex: Arbitrary file write / repo-confinement escape in `write_file` / `edit_file` / `move_inline` MCP tools → code execution
- CVSS
- 7.8
- EPSS
- 0.28% (p22)
- Published
- 2026-11-18
- Age
- 16d old
- Modified
- 2026-11-25
- Product
- zzet gortex
- Aliases
- GHSA-w42c-h7hr-f67p, GO-2026-7003
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Description
Gortex is a high-performance code-intelligence engine for AI agents and integrated development environments. Prior to 0.55.0, resolveFilePath in internal/mcp/tools_fileops.go accepts absolute paths without checking indexed repository roots, while write_file, edit_file, and move_inline in internal/mcp/tools_move_inline.go omit guardSymlinkWithinRepo before reaching AtomicWriteFile and related write sinks. A caller that can influence MCP tool arguments can therefore create or overwrite files anywhere the daemon user can access, including startup or hook files that execute code on a later trigger. The flaw violates Gortex's repository-confinement invariant and can lead to arbitrary host code execution. This issue is fixed in version 0.55.0.
Fixed in
0.55.0
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| Go | github.com/zzet/gortex | < 0.55.0 | 0.55.0 |
Sources
- NVD · first seen 16d ago · NVD terms of use
- OSV · first seen 16d ago · CC-BY 4.0
- GitHub Advisory Database · first seen 15d ago · CC-BY 4.0
- CVE List · first seen 16d ago · CVE Terms of Use
References
- https://github.com/zzet/gortex/security/advisories/GHSA-w42c-h7hr-f67p x_refsource_CONFIRM
- https://github.com/zzet/gortex/commit/5ba2f066dd6dcd726c4e61b74851862dc596d994 x_refsource_MISC
- https://github.com/zzet/gortex/releases/tag/v0.55.0 x_refsource_MISC
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/62xxx/CVE-2026-62964.json advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-62964 advisory
- https://github.com/advisories/GHSA-w42c-h7hr-f67p other