{"id":"CVE-2026-62964","state":"PUBLISHED","title":"Gortex: Arbitrary file write / repo-confinement escape in `write_file` / `edit_file` / `move_inline` MCP tools → code execution","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.","publishedAt":"2026-11-18T21:20:20.308Z","updatedAt":"2026-11-19T15:57:25.263Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["zzet gortex"],"affected":[{"vendor":"zzet","product":"gortex","versions":[{"version":"< 0.55.0","status":"affected"}]}],"references":["https://github.com/zzet/gortex/security/advisories/GHSA-w42c-h7hr-f67p","https://github.com/zzet/gortex/commit/5ba2f066dd6dcd726c4e61b74851862dc596d994","https://github.com/zzet/gortex/releases/tag/v0.55.0"],"weaknesses":["CWE-73","CWE-22"],"ingestedAt":"2026-11-19T16:20:05.370Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/62xxx/CVE-2026-62964.json","commit":"f864b399b7f6ed483deb45b07aadd937553f0511","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-62964","state":"PUBLISHED","datePublished":"2026-11-18T21:20:20.308Z","dateUpdated":"2026-11-19T15:57:25.263Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-07-14T22:32:17.732Z"},"containers":{"cna":{"title":"Gortex: Arbitrary file write / repo-confinement escape in `write_file` / `edit_file` / `move_inline` MCP tools → code execution","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"zzet","product":"gortex","versions":[{"version":"< 0.55.0","status":"affected"}]}],"references":[{"url":"https://github.com/zzet/gortex/security/advisories/GHSA-w42c-h7hr-f67p","name":"https://github.com/zzet/gortex/security/advisories/GHSA-w42c-h7hr-f67p","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/zzet/gortex/commit/5ba2f066dd6dcd726c4e61b74851862dc596d994","name":"https://github.com/zzet/gortex/commit/5ba2f066dd6dcd726c4e61b74851862dc596d994","tags":["x_refsource_MISC"]},{"url":"https://github.com/zzet/gortex/releases/tag/v0.55.0","name":"https://github.com/zzet/gortex/releases/tag/v0.55.0","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-73","lang":"en","description":"CWE-73: External Control of File Name or Path","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-22","lang":"en","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-11-18T21:20:20.308Z"},"source":{"advisory":"GHSA-w42c-h7hr-f67p","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-11-19T15:47:26.601076Z","id":"CVE-2026-62964","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-11-19T15:57:25.263Z"}}]}}}