Gortexに任意のファイルを書き換えられる脆弱性、コード実行のおそれ
概要
Gortexのwrite_file・edit_file・move_inlineツールに、リポジトリ外のファイルへ書き込めてしまう脆弱性が見つかりました。0.55.0より前のバージョンが対象で、起動時やフックで実行されるファイルを書き換えられ、ホストでコードを実行されるおそれがあります。修正版の0.55.0に更新してください。
AI要約
SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。
Gortexのwrite_file・edit_file・move_inlineツールに、リポジトリ外のファイルへ書き込めてしまう脆弱性が見つかりました。0.55.0より前のバージョンが対象で、起動時やフックで実行されるファイルを書き換えられ、ホストでコードを実行されるおそれがあります。修正版の0.55.0に更新してください。
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| zzetgortex | — | 記載なし |
| Gogithub.com/zzet/gortex |
0.55.0 未満→ 0.55.0 |
0.55.0 |
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
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.
出典: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
参照URL
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- web github.com
- web github.com