Read the docs

Arbitrary file write in Gortex MCP file tools allows code execution

Priority LOW 35CWE-22Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.

Summary

Gortex before 0.55.0 (zzet gortex and the Go module github.com/zzet/gortex) lets its file-write MCP tools write outside the repository. Absolute paths are not checked against indexed repository roots and symlinks are not guarded, which is a CWE-22 path traversal. A local caller that can influence tool arguments, with user interaction, can create or overwrite files the daemon user can reach, such as startup or hook files that run code later, which leads to arbitrary code execution on the host.

Written with Claude Haiku 5.5 from the sources below · 2026-11-19

Description from the CNA

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.002 5th percentileScored 2026-11-30
Fix Fixed gortex (zzet): 0.55.0github.com/zzet/gortex (Go): 0.55.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
zzetgortexbefore 0.55.00.55.0Patch availableCNA
—github.com/zzet/gortex (Go)before 0.55.00.55.0Patch availableGHSA-w42c-h7hr-f67p
  • gortex Vendorzzet Affected before 0.55.0 Fixed in 0.55.0 Patch available CNA
  • github.com/zzet/gortex (Go) Vendor— Affected before 0.55.0 Fixed in 0.55.0 Patch available GHSA-w42c-h7hr-f67p

Remediation

Upgrade zzet gortex and the github.com/zzet/gortex Go module to version 0.55.0, which fixes the flaw.

Written with Claude Haiku 5.5 from the sources below · 2026-11-19

  • Fix · CNA gortex (zzet) Fixed in 0.55.0
  • Fix · GHSA-w42c-h7hr-f67p github.com/zzet/gortex (Go) Fixed in 0.55.0 Advisory →

Timeline

  1. 2026-11-18 Threatist record created from CVE-2026-62964
  2. 2026-11-19 CISA SSVC decision points changed
  3. 2026-11-19 Alias added: GHSA-w42c-h7hr-f67p
  4. 2026-11-19 Fix available: Go/github.com/zzet/[email protected] · GHSA-w42c-h7hr-f67p
  5. 2026-11-19 CVSS score added · GHSA-w42c-h7hr-f67p
  6. 2026-11-19 Weakness changed · GHSA-w42c-h7hr-f67p
  7. 2026-11-19 5 new references · GHSA-w42c-h7hr-f67p

References

Sources