Gortex fixes file-write vulnerability in version 0.55.0

  • Gortex
  • MCP
  • code execution

Update 0.55.0 fixes arbitrary file write flaw

Absolute paths previously bypassed security checks

Fix prevents potential unauthorized code execution

Gortex developer zzet fixed an arbitrary-file-write vulnerability in the server’s write_file, edit_file and move_inline tools in version 0.55.0. The flaw affected versions before 0.55.0 and could let an attacker write files outside indexed repositories.

Gortex is a server that provides tools for agents using the Model Context Protocol (MCP) to work with files. Its path-resolution function did not confine absolute paths to indexed repositories, and the three write tools lacked a symlink check that other file-reading tools used.

As a result, an attacker able to influence an agent could make it write files the server process was permitted to access, including shell startup files or Git hooks. Those files could enable code execution on the machine running the server. The issue was fixed in version 0.55.0 by adding the repository check to the write path and rejecting absolute paths outside indexed repositories.